From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Fineman Newsgroups: gmane.emacs.help Subject: Why won't this command kill a buffer? Date: Fri, 11 Feb 2011 17:48:22 -0500 Organization: A noiseless patient Spider Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1297467974 4663 80.91.229.12 (11 Feb 2011 23:46:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 11 Feb 2011 23:46:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 12 00:46:10 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Po2gi-0003vV-7t for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Feb 2011 00:46:08 +0100 Original-Received: from localhost ([127.0.0.1]:36561 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Po2bB-0003zY-M9 for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Feb 2011 18:40:25 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Injection-Info: mx03.eternal-september.org; posting-host="hinwbbzSY007FxHv2ksyJA"; logging-data="32728"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Oz3HMMmkc2J/n3NI/Zkio" User-Agent: Gnus/5.101 (Gnus v5.10.10) Emacs/22.3 (windows-nt) Cancel-Lock: sha1:TpdqQRV5BFbMJTJijZwWZof6Hcc= sha1:mlNkgqIdLfZebJwfxfrDUfBJ6SM= Original-Xref: usenet.stanford.edu gnu.emacs.help:184899 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:79072 Archived-At: I am using Emacs 22.3.1 under Windows XP. I have used the following kluge for many years: (defun marklog () "Insert a backslash into the Log file for the current directory, and into Today if it is in /b." (interactive) (save-window-excursion (let ((dir default-directory) (require-final-newline)) (find-file "~/timing/Logmark") (write-region 1 2 (concat dir "Log") t 0) (if (equal (substring dir 0 15) "c:/usr/own/f/b/") (write-region 1 2 "~/b/Today" t 0)) (kill-this-buffer)) )) The Logmark file consists of a single backslash. The command kill-this-buffer does not work, and neither do attempts to use kill-buffer with an argument. The buffer hangs around and is sometimes a nuisance. And, incidentally, is there any simpler way to tell Emacs to append a character to a file? -- --- Joe Fineman joe_f@verizon.net ||: In other words, uninteresting immature ideas undergo violent :|| ||: conflict during their latency. :||