all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Why won't this command kill a buffer?
@ 2011-02-11 22:48 Joe Fineman
  2011-02-12  4:15 ` B. T. Raven
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Joe Fineman @ 2011-02-11 22:48 UTC (permalink / raw)
  To: help-gnu-emacs

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


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

end of thread, other threads:[~2011-02-16 14:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-11 22:48 Why won't this command kill a buffer? Joe Fineman
2011-02-12  4:15 ` B. T. Raven
2011-02-12  4:19   ` B. T. Raven
2011-02-12 22:50   ` Joe Fineman
2011-02-15  2:23     ` B. T. Raven
2011-02-16 14:27       ` B. T. Raven
2011-02-12  7:47 ` Le Wang
     [not found] ` <mailman.1.1297496838.19060.help-gnu-emacs@gnu.org>
2011-02-12 23:05   ` Joe Fineman
2011-02-13  7:07     ` Le Wang

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.