[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BUG REPORT: `kill-buffer-query-functions'

From: Le Wang
Subject: Re: BUG REPORT: `kill-buffer-query-functions'
Date: Fri, 28 Feb 2003 22:08:53 -0500
User-agent: KNode/0.7.1

Richard Stallman wrote:

>     When making this hook buffer local, the 't add at the end is called as a
>     function, and of course it's not a function.
> Would you please send a precise test case?

Sure thing.

1. emacs -q

2. paste this code in scratch

(defun test-query ()
  (if (and (buffer-modified-p)
           (not (y-or-n-p (format "Abandon changes to %s? (y/n) "

(add-hook 'kill-buffer-query-functions 'test-query nil t)

3. eval it.

4. <M-x> kill-this-buffer

5. answer `y' when prompted.

6. Error: Symbol's function definition is void: t


reply via email to

[Prev in Thread] Current Thread [Next in Thread]