From: "Drew Adams" <drew.adams@oracle.com>
To: "'martin rudalics'" <rudalics@gmx.at>,
"'Juanma Barranquero'" <lekktu@gmail.com>
Cc: 1121@emacsbugs.donarmstrong.com
Subject: bug#1121: 23.0.60; `buffer-list' returns buffers in wrong order
Date: Fri, 10 Oct 2008 08:36:44 -0700 [thread overview]
Message-ID: <004701c92aee$001ec790$0200a8c0@us.oracle.com> (raw)
In-Reply-To: <48EF6FFB.8010806@gmx.at>
> > Yes, I get the same result as you do:
> >
> > (#<buffer *Minibuf-1*> #<buffer *Minibuf-2*> #<buffer buf002.txt>
> > #<buffer buf001.txt> #<buffer *scratch*> #<buffer
> *Minibuf-0*> ...)
>
> I checked in a fix. Could you please try whether it changes anything?
> Drew. Could you try the attached patch?
Hi Martin; thanks for working on this.
I put the following in a file foo.el:
---------8<----------------------
(defun pop-to-buffer (buffer-or-name &optional other-window norecord)
(let ((buffer
(if (null buffer-or-name) (other-buffer (current-buffer))
(or (get-buffer buffer-or-name)
(let ((buf (get-buffer-create buffer-or-name)))
(set-buffer-major-mode buf)
buf))))
(old-window (selected-window))
(old-frame (selected-frame))
new-window new-frame)
(set-buffer buffer)
;; REMOVED norecord <===================
(setq new-window (display-buffer buffer other-window))
(unless (eq new-window old-window)
;; `display-buffer' has chosen another window, select it.
;; ADDED norecord <===================
(select-window new-window norecord)
(setq new-frame (window-frame new-window))
(unless (eq new-frame old-frame)
;; `display-buffer' has chosen another frame, make sure it gets
;; input focus and is risen.
(select-frame-set-input-focus new-frame)))
buffer))
(setq enable-recursive-minibuffers t)
(find-file "c:/dir/buf001.txt")
(find-file-other-frame "c:/dir/buf002.txt")
(switch-to-buffer-other-frame "buf001.txt")
---------8<----------------------
I did emacs -Q, C-x C-f foo.el
I did M-x M-: (buffer-list) in buffer buf001.txt.
I got this (same as before):
(#<buffer *Minibuf-1*> #<buffer *Minibuf-2*> #<buffer buf002.txt> #<buffer
buf001.txt> #<buffer testcase.el> #<buffer drews-lisp-20> #<buffer *tip*>
#<buffer *scratch*> #<buffer *Minibuf-0*> #<buffer *Messages*> #<buffer
*code-conversion-work*> #<buffer *Echo Area 0*> ...)
IOW, there was no change; the problem is as before. Did it work for you?
Let me know if I'm not testing it correctly.
next prev parent reply other threads:[~2008-10-10 15:36 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <49214515.6090300@gmx.at>
2008-10-08 19:00 ` bug#1121: 23.0.60; `buffer-list' returns buffers in wrong order Drew Adams
2008-10-09 7:55 ` Juanma Barranquero
2008-10-09 16:10 ` Drew Adams
2008-10-09 18:23 ` Juanma Barranquero
2008-10-10 15:08 ` martin rudalics
2008-10-10 15:36 ` Drew Adams [this message]
2008-10-10 15:42 ` martin rudalics
2008-10-10 16:03 ` Drew Adams
2008-10-10 18:22 ` martin rudalics
2008-11-04 7:49 ` martin rudalics
2008-11-04 9:16 ` Juanma Barranquero
2008-11-04 9:56 ` martin rudalics
2008-11-04 14:32 ` Drew Adams
2008-11-17 10:30 ` bug#1121: marked as done (23.0.60; `buffer-list' returns buffers in wrong order) Emacs bug Tracking System
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='004701c92aee$001ec790$0200a8c0@us.oracle.com' \
--to=drew.adams@oracle.com \
--cc=1121@emacsbugs.donarmstrong.com \
--cc=lekktu@gmail.com \
--cc=rudalics@gmx.at \
/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.