unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: switch-to-buffer: for interactive use only
@ 2011-07-13 22:13 grischka
  0 siblings, 0 replies; 47+ messages in thread
From: grischka @ 2011-07-13 22:13 UTC (permalink / raw)
  To: rudalics; +Cc: emacs-devel

> I think that we want two types of `switch-to-buffer' functions:
> 
> (1) [...] C-x b [...] set-window-buffer' based [...] not callable
>     from Elisp.
> 
> (2) [...] callable from Elisp.
> 
> Anything wrong with this approach?

Yes.  I've observed this elsewhere earlier. It means that emacs to
support its native UI, uses tricks that aren't available for the
mere mortals.  However if there is anything that actually flies
then it's the built-in always existing UI's such as completion or
help.

Only naturally that people will want their thing work equally well,
sooner or later learn the necessary tricks and then you are back in
the situation where you have zero control for consistency because
your freshly designed interface is consequently bypassed by, which
is only worse, those who actually care for good UI.

--- grischka

> 
> martin




^ permalink raw reply	[flat|nested] 47+ messages in thread
* switch-to-buffer: for interactive use only
@ 2011-07-05 21:40 Glenn Morris
  2011-07-05 23:23 ` Juanma Barranquero
  2011-07-06  1:18 ` Stefan Monnier
  0 siblings, 2 replies; 47+ messages in thread
From: Glenn Morris @ 2011-07-05 21:40 UTC (permalink / raw)
  To: emacs-devel


Was it really necessary to mark switch-to-buffer "for interactive use
only"? It's a pretty basic command that was used in ~ 800 places in the
Emacs 23.3 sources. The Emacs 23.3 Lisp manual also says "The
@code{switch-to-buffer} function is often used interactively... It is
also used frequently in programs". Isn't there a better way to handle
this than replacing hundreds of calls with `pop-to-buffer-same-window'?



^ permalink raw reply	[flat|nested] 47+ messages in thread

end of thread, other threads:[~2011-07-13 22:13 UTC | newest]

Thread overview: 47+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-13 22:13 switch-to-buffer: for interactive use only grischka
  -- strict thread matches above, loose matches on Subject: below --
2011-07-05 21:40 Glenn Morris
2011-07-05 23:23 ` Juanma Barranquero
2011-07-05 23:32   ` Glenn Morris
2011-07-05 23:34     ` Juanma Barranquero
2011-07-05 23:41     ` Juanma Barranquero
2011-07-06  1:18 ` Stefan Monnier
2011-07-06  1:49   ` Glenn Morris
2011-07-06  2:27     ` Glenn Morris
2011-07-06  5:55     ` Andreas Röhler
2011-07-06 21:10   ` Chong Yidong
2011-07-07  9:19     ` Štěpán Němec
2011-07-07 19:52     ` Stefan Monnier
2011-07-07 20:50       ` Chong Yidong
2011-07-07 21:11         ` Stefan Monnier
2011-07-07 23:39           ` Chong Yidong
2011-07-08  0:09             ` Juanma Barranquero
2011-07-08  1:12               ` Chong Yidong
2011-07-08  6:44               ` martin rudalics
2011-07-08  6:44             ` martin rudalics
2011-07-08  6:43           ` martin rudalics
2011-07-08 12:57             ` Stefan Monnier
2011-07-08 14:03               ` martin rudalics
2011-07-08 15:46                 ` Stefan Monnier
2011-07-08 16:45                   ` martin rudalics
2011-07-08 18:46                     ` Stefan Monnier
2011-07-08 20:12                       ` Chong Yidong
2011-07-08 20:34                         ` Juanma Barranquero
2011-07-08 20:50                           ` Chong Yidong
2011-07-08 23:16                             ` Juanma Barranquero
2011-07-09  2:35                               ` Chong Yidong
2011-07-09  3:09                                 ` Stefan Monnier
2011-07-09  8:45                                   ` martin rudalics
2011-07-11  3:41                                     ` Stefan Monnier
2011-07-11  9:43                                       ` martin rudalics
2011-07-09 19:25                                   ` Chong Yidong
2011-07-10  9:00                                     ` martin rudalics
2011-07-10 13:09                                       ` Chong Yidong
2011-07-10 13:31                                         ` martin rudalics
2011-07-11  3:45                                     ` Stefan Monnier
2011-07-11 14:56                                       ` Chong Yidong
2011-07-12  4:25                                         ` Stefan Monnier
2011-07-12  8:36                                           ` martin rudalics
2011-07-13 15:42                                             ` Chong Yidong
2011-07-13 17:18                                               ` martin rudalics
2011-07-13 21:53                                                 ` Chong Yidong
2011-07-09  8:45                                 ` martin rudalics

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).