From: Samuel Wales <samologist@gmail.com>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-show-following-heading shows even when nil
Date: Sun, 23 May 2010 18:58:43 -0700 [thread overview]
Message-ID: <AANLkTinHSNGjQc6PllnAEQ3ys_YrQWc_0PEEXcbHOq_q@mail.gmail.com> (raw)
In-Reply-To: <AANLkTil793kCgO8aPLYAKxHQyqJYcE6RSI7CxtOPHzrZ@mail.gmail.com>
i.e. this:
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 93334b6..4bbaefc 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -2764,6 +2764,7 @@ bind it in the options section.")
(org-set-local 'org-agenda-name name)))
(setq buffer-read-only nil))
+(eval-when-compile (defvar org-agenda-overriding-columns-format))
(defun org-finalize-agenda ()
"Finishing touch for the agenda buffer, called just before displaying it."
(unless org-agenda-multi
@@ -6129,10 +6130,7 @@ and by additional input from the age of a
schedules or deadline entry."
(push-mark)
(goto-char pos)
(when (org-mode-p)
- (org-show-context 'agenda)
- (save-excursion
- (and (outline-next-heading)
- (org-flag-heading nil)))) ; show the next heading
+ (org-show-context 'agenda))
(recenter (/ (window-height) 2))
(run-hooks 'org-agenda-after-show-hook)
(and highlight (org-highlight (point-at-bol) (point-at-eol)))))
@@ -6315,10 +6313,7 @@ at the text of the entry itself."
(widen)
(goto-char pos)
(when (org-mode-p)
- (org-show-context 'agenda)
- (save-excursion
- (and (outline-next-heading)
- (org-flag-heading nil))))))) ; show the next heading
+ (org-show-context 'agenda)))))
(defun org-agenda-goto-mouse (ev)
"Go to the Org-mode file which contains the item at the mouse click."
On 2010-05-22, Samuel Wales <samologist@gmail.com> wrote:
> Hi Carsten,
>
> Could it be the following in org-agenda-switch-to?
>
> (save-excursion
> (and (outline-next-heading)
> (org-flag-heading nil))))))) ; show the next heading
>
> I wonder if it will cause any problems to remove that whole sexp.
>
> Thanks.
>
> Samuel
>
> On 2010-05-19, Carsten Dominik <carsten.dominik@gmail.com> wrote:
>> Hi Samuel,
>>
>> thanks for your feedback - I do not know what else could be wrong
>> here.....
>>
>> - Carsten
>>
>> On May 18, 2010, at 6:17 AM, Samuel Wales wrote:
>>
>>> Hi Carsten,
>>>
>>> On 2010-05-14, Carsten Dominik <carsten.dominik@gmail.com> wrote:
>>>> for some reason I do not remember, I enforce showing the next
>>>> headline
>>>> in this special case. Please try the following patch and run with if
>>>> for a while, to see if it causes any problems.
>>>
>>> The patch did not apply for some reason, but I manually applied it,
>>> and it seemed in trivial testing to work perfectly. Strangely,
>>> however, today the behavior is as if I did not apply the patch. I did
>>> eval the function, so it must be some other piece of code that is
>>> involved. I don't get it. (Not physically able to investigate now,
>>> unfortunately.)
>>>
>>> Samuel
>>>
>>> --
>>> Q: How many CDC "scientists" does it take to change a lightbulb?
>>> A: "You only think it's dark." [CDC has denied a deadly disease for
>>> 25 years]
>>> ==========
>>> Retrovirus: http://www.wpinstitute.org/xmrv/index.html
>>
>> - Carsten
>>
>>
>>
>>
>
>
> --
> Q: How many CDC "scientists" does it take to change a lightbulb?
> A: "You only think it's dark." [CDC has denied a deadly disease for 25
> years]
> ==========
> Retrovirus: http://www.wpinstitute.org/xmrv/index.html
>
--
Q: How many CDC "scientists" does it take to change a lightbulb?
A: "You only think it's dark." [CDC has denied a deadly disease for 25 years]
==========
Retrovirus: http://www.wpinstitute.org/xmrv/index.html
next prev parent reply other threads:[~2010-05-24 1:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-07 5:32 org-show-following-heading shows even when nil Samuel Wales
2010-05-14 22:45 ` Samuel Wales
2010-05-15 6:41 ` Carsten Dominik
2010-05-18 4:17 ` Samuel Wales
2010-05-19 9:56 ` Carsten Dominik
2010-05-22 18:13 ` Samuel Wales
2010-05-24 1:58 ` Samuel Wales [this message]
2010-07-09 20:27 ` Samuel Wales
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTinHSNGjQc6PllnAEQ3ys_YrQWc_0PEEXcbHOq_q@mail.gmail.com \
--to=samologist@gmail.com \
--cc=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.