unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* server buffer killing
@ 2003-10-10 16:41 Ian Zimmerman
  0 siblings, 0 replies; only message in thread
From: Ian Zimmerman @ 2003-10-10 16:41 UTC (permalink / raw)


This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.2.1 (i386-debian-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2002-03-22 on raven, modified by Debian
configured using `configure  i386-debian-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --with-x=yes --with-x-toolkit=athena --without-gif'
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

There seems to be a small but crucial typo in server.el which makes the documentation of
server-kill-new-buffers wrong:

  If non-nil, kill a buffer unless it already existed before editing
  it with Emacs server. If nil, kill only buffers as specified by
  `server-temp-file-regexp'.

*** /usr/share/emacs/21.2/lisp/server.el	Sun Oct 21 18:25:57 2001
--- ./server.el	Fri Oct 10 09:37:25 2003
***************
*** 401,407 ****
  			 server-kill-new-buffers
  			 (save-excursion
  			   (set-buffer buffer)
! 			   server-existing-buffer))
  		(setq killed t)
  		(bury-buffer buffer)
  		(kill-buffer buffer))
--- 401,407 ----
  			 server-kill-new-buffers
  			 (save-excursion
  			   (set-buffer buffer)
! 			   (not server-existing-buffer)))
  		(setq killed t)
  		(bury-buffer buffer)
  		(kill-buffer buffer))


As it is, server buffers for non-temporary files _never_ get killed
with C-x #.  Not really a big deal, as I can always kill them with C-x
k and answer the prompt, but the inconsistency with documentation is
jarring :-)

-- 
Wer Schoenheit angeschaut mit Augen, hat dem Tode schon Anheim gegeben.
Von Platen.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-10-10 16:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-10 16:41 server buffer killing Ian Zimmerman

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