unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: set_window_buffer
Date: Fri, 12 Sep 2008 23:23:21 +0200	[thread overview]
Message-ID: <48CADDC9.5080607@gmx.at> (raw)
In-Reply-To: <jwvabedgmw2.fsf-monnier+emacs@gnu.org>

 >> IMHO we should mention it in NEWS.  I suppose a couple of applications
 >> not distributed with Emacs might rely on the faulty behavior.
 >
 > I'd be really impressed if that's the case.

I probably can't impress you but in one routine I originally wrote for
Emacs 21 I found

;;; (defsubst set-window-buffer-only (window buffer &optional keep-margins)
;;;   "As `set-window-buffer' but don't change current buffer."
;;;   (let ((current-buffer (current-buffer)))
;;;     (set-window-buffer window buffer keep-margins)
;;;     (set-buffer current-buffer)))

so this already was a problem for me.  Later I apparently changed my
mind, used `set-window-buffer' instead, and had to fix this today again.
I recall a similar problem with `save-selected-window' which in certain
cases refused to restore the current buffer.

martin




      reply	other threads:[~2008-09-12 21:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-12 16:39 set_window_buffer Richard M. Stallman
2008-09-12 17:14 ` set_window_buffer Stefan Monnier
2008-09-12 18:05   ` set_window_buffer martin rudalics
2008-09-12 19:55     ` set_window_buffer Stefan Monnier
2008-09-12 21:23       ` martin rudalics [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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48CADDC9.5080607@gmx.at \
    --to=rudalics@gmx.at \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=rms@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.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).