From: Sam Steingold <sds@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Emacs server without emacsserver.
Date: 20 Oct 2002 18:51:06 -0400 [thread overview]
Message-ID: <m3smz0hgh1.fsf@loiso.podval.org> (raw)
In-Reply-To: <200210201957.g9KJvTd12809@rum.cs.yale.edu>
> * In message <200210201957.g9KJvTd12809@rum.cs.yale.edu>
> * On the subject of "Re: Emacs server without emacsserver. "
> * Sent on Sun, 20 Oct 2002 15:57:29 -0400
> * Honorable "Stefan Monnier" <monnier+gnu/emacs@rum.cs.yale.edu> writes:
>
> > I have a question about `server-switch-buffer'.
> > most of it
> > (after ";; OK, we know next-buffer is live, let's display and select it.")
> > is just `pop-to-buffer' modified to support `server-window' and avoid
> > at all costs creating a new frame (I am being sloppy here, I know).
>
> I know what you mean, since it's exactly what I use ;-)
> Most of the fixes I've installed recently have been made to help
> in this kind of situation. Right now, I get more-or-less the behavior
> I want with the following customization:
>
> (defun sm-server-visit-hook () (pop-to-buffer (current-buffer)))
> (add-hook 'server-visit-hook 'sm-server-visit-hook)
>
> I've been reluctant to change the default behavior because of the
> effort to justify it. But I do hope we can provide a cutomization
> that would be eaiser than my hook while providing the same kind of
> behavior.
the "offending code" (after ";; Ok, ...") should be abstracted to the
function `server-switch-buffer-default' of one argument (the buffer to
be displayed), and `server-switch-buffer' should call the function
which is the value of the variable `server-display-function', which is
by default set to `server-switch-buffer-default'.
You and I will set `server-display-function' to `pop-to-buffer' and
people who like the default will keep the default.
--
Sam Steingold (http://www.podval.org/~sds) running RedHat8 GNU/Linux
<http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/>
<http://www.mideasttruth.com/> <http://www.palestine-central.com/links.html>
C combines the power of assembler with the portability of assembler.
next prev parent reply other threads:[~2002-10-20 22:51 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-17 20:10 Emacs server without emacsserver Stefan Monnier
[not found] ` <E17s34A-0006oU-00@fencepost.gnu.org>
[not found] ` <200209191632.g8JGWV408480@rum.cs.yale.edu>
[not found] ` <E17sEim-00081r-00@fencepost.gnu.org>
2002-09-20 18:41 ` Stefan Monnier
2002-09-21 0:58 ` Kim F. Storm
2002-09-21 19:39 ` Richard Stallman
2002-09-22 22:30 ` Stefan Monnier
2002-09-23 15:59 ` Richard Stallman
2002-10-16 21:50 ` Sam Steingold
2002-10-20 5:34 ` Richard Stallman
2002-10-20 19:57 ` Stefan Monnier
2002-10-20 22:51 ` Sam Steingold [this message]
2002-10-21 12:55 ` Stefan Monnier
2002-10-21 14:11 ` Sam Steingold
2002-12-27 19:10 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3smz0hgh1.fsf@loiso.podval.org \
--to=sds@gnu.org \
--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.