emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Either zero or two newlines with org-agenda-block-separator, cannot seem to get one?
@ 2020-10-25 22:09 TRS-80
  2023-02-09 16:53 ` TRS-80
  0 siblings, 1 reply; 3+ messages in thread
From: TRS-80 @ 2020-10-25 22:09 UTC (permalink / raw)
  To: emacs-orgmode

Hallo,

I tried to change the value of org-agenda-block-separator variable to
many things (including characters and strings, in accordance with the
documentation) however I could not seem to achieve the desired result.

I was trying to make one blank line between agenda blocks in my custom
agenda (defined via org-agenda-custom-commands).  However I could only
seem to either make two, or zero!  :/

Searching for org-agenda-block-separator in org-agenda.el led me to
org-agenda-prepare function, where it appears to me that there is no
way to accomplish what I want, at least by simply changing a variable.

Therefore I ended up commenting out one of the newlines in that
function here in my local source, and re-loaded the file.  And now I
have one blank line between my agenda blocks, just as desired.  :)

But I thought this would be a good idea to bring to the attention of
the mailing list.

Cheers!

TRS-80


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Either zero or two newlines with org-agenda-block-separator, cannot seem to get one?
  2020-10-25 22:09 Either zero or two newlines with org-agenda-block-separator, cannot seem to get one? TRS-80
@ 2023-02-09 16:53 ` TRS-80
  2023-02-10  8:25   ` Detlef Steuer
  0 siblings, 1 reply; 3+ messages in thread
From: TRS-80 @ 2023-02-09 16:53 UTC (permalink / raw)
  To: emacs-orgmode

Hello List,

I had sent original email to the list some time ago, never received a
reply.

Hopefully I have set the correct headers for proper threading; if not
the OP can be found at (either of) these URLs:

https://yhetil.org/orgmode/33fe6d20c0591fedbdd8c6ea78e34370@isnotmyreal.name/

https://list.orgmode.org/33fe6d20c0591fedbdd8c6ea78e34370@isnotmyreal.name/

I just looked at latest master(main) and It looks like this part of the
function `org-agenda-prepare' (in org-agenda.el) remains the same:

#+begin_src emacs-lisp
		(insert "\n"
			(if (stringp org-agenda-block-separator)
			    org-agenda-block-separator
			  (make-string (window-max-chars-per-line) org-agenda-block-separator))
			"\n"))
#+end_src

This results in problem mentioned in title.

I guess no one else is affected/bothered by this?

I have been patching it locally, it would be nice not to have to manage
that any longer.

-- 
Cheers,
TRS-80



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Either zero or two newlines with org-agenda-block-separator, cannot seem to get one?
  2023-02-09 16:53 ` TRS-80
@ 2023-02-10  8:25   ` Detlef Steuer
  0 siblings, 0 replies; 3+ messages in thread
From: Detlef Steuer @ 2023-02-10  8:25 UTC (permalink / raw)
  To: emacs-orgmode

Am Thu, 09 Feb 2023 11:53:16 -0500
schrieb TRS-80 <lists.trs-80@isnotmyreal.name>:

> Hello List,
> 
> I had sent original email to the list some time ago, never received a
> reply.
> 
> Hopefully I have set the correct headers for proper threading; if not
> the OP can be found at (either of) these URLs:
> 
> https://yhetil.org/orgmode/33fe6d20c0591fedbdd8c6ea78e34370@isnotmyreal.name/
> 
> https://list.orgmode.org/33fe6d20c0591fedbdd8c6ea78e34370@isnotmyreal.name/
> 
> I just looked at latest master(main) and It looks like this part of
> the function `org-agenda-prepare' (in org-agenda.el) remains the same:
> 
> #+begin_src emacs-lisp
> 		(insert "\n"
> 			(if (stringp org-agenda-block-separator)
> 			    org-agenda-block-separator
> 			  (make-string (window-max-chars-per-line)
> org-agenda-block-separator)) "\n"))
> #+end_src
> 
> This results in problem mentioned in title.
> 
> I guess no one else is affected/bothered by this?
> 
> I have been patching it locally, it would be nice not to have to
> manage that any longer.
> 

FWIW, I'm bothered, too. Would like to see that in main!

Detlef



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-02-10  8:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-25 22:09 Either zero or two newlines with org-agenda-block-separator, cannot seem to get one? TRS-80
2023-02-09 16:53 ` TRS-80
2023-02-10  8:25   ` Detlef Steuer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).