From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Ian Zimmerman Newsgroups: gmane.emacs.bugs Subject: server buffer killing Date: Fri, 10 Oct 2003 09:41:40 -0700 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1065804242 24192 80.91.224.253 (10 Oct 2003 16:44:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Oct 2003 16:44:02 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 10 18:44:00 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A80My-0002a3-00 for ; Fri, 10 Oct 2003 18:44:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A80LR-0000kU-57 for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Oct 2003 12:42:25 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A80LN-0000jU-C5 for bug-gnu-emacs@gnu.org; Fri, 10 Oct 2003 12:42:21 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A80Kr-0000by-Mh for bug-gnu-emacs@gnu.org; Fri, 10 Oct 2003 12:42:20 -0400 Original-Received: from [208.54.142.105] (helo=proradius03) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A80Kr-0000bb-C3 for bug-gnu-emacs@gnu.org; Fri, 10 Oct 2003 12:41:49 -0400 Original-Received: from homage ([10.253.128.74]) by proradius03 (8.11.6+Sun/8.11.6) with ESMTP id h9AGSTm00747 for ; Fri, 10 Oct 2003 09:28:30 -0700 (PDT) Original-Received: from itz by homage with local (Exim 3.36 #1 (Debian)) id 1A80Ki-0000J3-00 for ; Fri, 10 Oct 2003 09:41:40 -0700 Original-To: bug-gnu-emacs@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:5957 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5957 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.