unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: juri@jurta.org, rms@gnu.org, emacs-devel@gnu.org
Subject: Re: Jumping to C source from *Help*
Date: 11 Apr 2004 19:17:01 -0400	[thread overview]
Message-ID: <m18yh29kif.fsf-monnier+emacs@empanada.iro.umontreal.ca> (raw)
In-Reply-To: <m3smfbu0n1.fsf@kfs-l.imdomain.dk>

>> switch-to-buffer means "I specifically want the buffer in THIS window."
>> It should get an error if it can't do that.  To display the buffer
>> in another window would be failing to do the intended job.

Obviously we need to distinguish between "switch-to-buffer the command"
and "switch-to-buffer" the function.  I don't care about the behavior
of the command, but of the function.

> Doc string for set-window-dedicated-p says this:
>         If it is dedicated, Emacs will not automatically change
>         which buffer appears in it.

The problem is not only with dedicated windows but also with
minibuffer-windows.

In my experience most uses of switch-to-buffer inside code
(i.e. as a function) lead to problems in setups such as mine
(i.e. with a separate minibuffer-only frame and with many dedicated
windows).

And the problem is made worse because there is currently no function that
does what we want in such case, i.e. "show buffer B, preferably in the
current window".


        Stefan

  reply	other threads:[~2004-04-11 23:17 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-06 22:35 Jumping to C source from *Help* Stefan Monnier
2004-04-07  1:01 ` Juanma Barranquero
2004-04-07 19:44   ` Stefan Monnier
2004-04-08  0:35     ` Kim F. Storm
2004-04-08  6:12     ` Juri Linkov
2004-04-08 16:10       ` Kim F. Storm
2004-04-09 22:44         ` Richard Stallman
2004-04-08 16:46       ` Stefan Monnier
2004-04-08 17:27         ` switch-buffer to use other window if dedicated window (was: Jumping to C source from *Help*) Drew Adams
2004-04-09 22:44         ` Jumping to C source from *Help* Richard Stallman
2004-04-10 18:51           ` Kim F. Storm
2004-04-11 23:17             ` Stefan Monnier [this message]
2004-04-12 17:34               ` Glenn Morris
2004-04-14 18:01                 ` Richard Stallman
2004-04-15 17:36                   ` Glenn Morris
2004-04-19 18:20                     ` Richard Stallman
2004-04-19 23:59                       ` Kim F. Storm
2004-04-20  0:41                       ` Glenn Morris
2004-04-20 16:05                         ` Drew Adams
2004-04-20 20:47                         ` Richard Stallman
2004-04-20 23:33                           ` Glenn Morris
2004-04-20 23:48                             ` Miles Bader
2004-04-20 22:04                         ` Nick Roberts
2004-04-20 23:40                           ` Glenn Morris
2004-04-21 10:21                             ` Kim F. Storm
2004-04-21 15:38                               ` Stefan Monnier
2004-04-13 17:44               ` Richard Stallman
2004-04-13 18:12                 ` Stefan Monnier
2004-04-14 22:53                   ` Richard Stallman
2004-04-15 13:58                     ` Stefan Monnier
2004-04-15 16:27                       ` Kim F. Storm
2004-04-15 16:08                         ` Drew Adams
2004-04-16 18:08                         ` Richard Stallman
2004-04-16 18:37                           ` David Kastrup
2004-04-16 18:08                       ` Richard Stallman
2004-04-16 18:39                         ` Stefan Monnier
2004-04-17 19:46                           ` Richard Stallman
2004-04-19 14:09                             ` Stefan Monnier
2004-04-18 21:47             ` Richard Stallman
2004-04-19 14:12               ` Stefan Monnier
2004-04-08  6:19     ` Juri Linkov
2004-04-08 16:07       ` Kim F. Storm
2004-04-09 22:43       ` Richard Stallman

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=m18yh29kif.fsf-monnier+emacs@empanada.iro.umontreal.ca \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=juri@jurta.org \
    --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).