From: anhnmncb <anhnmncb@sina.com>
To: emacs-devel@gnu.org
Subject: Re: Bug: appt-display makes point back to buffer.
Date: Mon, 24 Nov 2008 17:59:38 +0800 [thread overview]
Message-ID: <87bpw5igvp.fsf@sina.com> (raw)
In-Reply-To: 492999C4.50703@gmx.at
martin rudalics <rudalics@gmx.at> writes:
>> emacs -Q
>>
>> eval (appt-activate 1) in *scratch* buffer.
>>
>> Use M-x appt-add to add a time to appt. Then C-x C-f to enter the
>> minibuf area, waits for the appt activates.
>>
>> When activates, the point moves from minibuf to buffer(maybe call
>> window?). Now I have to C-x o to enter the minibuf.
>
> I suppose the attached patch should fix this. But it might break
> something else. Glenn?
>
> martin
>
>
> *** calendar/appt.el.~1.92.~ 2008-08-31 09:48:52.453125000 +0200
> --- calendar/appt.el 2008-11-23 18:55:59.125000000 +0100
> ***************
> *** 410,420 ****
> message APPT-MSG in a separate buffer."
> ;; Make sure we're not in the minibuffer before splitting the window.
> ;; FIXME this seems needlessly complicated?
> - (when (minibufferp)
> - (other-window 1)
> - (and (minibufferp) (display-multi-frame-p) (other-frame 1)))
> (let ((this-window (selected-window))
> ! (appt-disp-buf (set-buffer (get-buffer-create appt-buffer-name))))
> (if (cdr (assq 'unsplittable (frame-parameters)))
> ;; In an unsplittable frame, use something somewhere else.
> (display-buffer appt-disp-buf)
> --- 410,420 ----
> message APPT-MSG in a separate buffer."
> ;; Make sure we're not in the minibuffer before splitting the window.
> ;; FIXME this seems needlessly complicated?
> (let ((this-window (selected-window))
> ! (appt-disp-buf (get-buffer-create appt-buffer-name)))
> ! (when (minibufferp)
> ! (other-window 1)
> ! (and (minibufferp) (display-multi-frame-p) (other-frame 1)))
> (if (cdr (assq 'unsplittable (frame-parameters)))
> ;; In an unsplittable frame, use something somewhere else.
> (display-buffer appt-disp-buf)
Thank you too, but I don't know how to install it, so I will wait for
the offical beta version :)
prev parent reply other threads:[~2008-11-24 9:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-22 7:12 Bug: appt-display makes point back to buffer anhnmncb
2008-11-22 13:11 ` martin rudalics
2008-11-22 14:08 ` anhnmncb
2008-11-23 17:58 ` martin rudalics
2008-11-24 8:17 ` Glenn Morris
2008-11-24 9:59 ` martin rudalics
2008-11-24 17:44 ` Glenn Morris
2008-11-24 19:57 ` martin rudalics
2008-11-24 9:59 ` anhnmncb [this message]
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=87bpw5igvp.fsf@sina.com \
--to=anhnmncb@sina.com \
--cc=emacs-devel@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.