[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unrecoverable data loss
From: |
Stefan Monnier |
Subject: |
Re: Unrecoverable data loss |
Date: |
Mon, 19 May 2008 21:33:42 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
> (defun help-buffer ()
> (buffer-name ;for with-output-to-temp-buffer
> (if help-xref-following
> (current-buffer)
> (get-buffer-create "*Help*"))))
> hence turning your current buffer into a help buffer thus clearing its
> contents and undo-list, making it read-only, ...
> Maybe `help-buffer' should refuse to return a buffer if it is not
> read-only, `buffer-undo-list' is not t, ...
Yes, I guess we should sanity-check before obeying help-xref-following.
Stefan