[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: kill-buffer-if-not-modified: Wrong type argument: bufferp, t
From: |
martin rudalics |
Subject: |
Re: kill-buffer-if-not-modified: Wrong type argument: bufferp, t |
Date: |
Tue, 22 Jan 2008 14:57:59 +0100 |
User-agent: |
Mozilla Thunderbird 1.0 (Windows/20041206) |
> Please disregard this comment. Having slept over it, I now realize that
> C-x C-q should _not_ enter view mode, since Emacs was already told to
> exit view mode before.
By default C-x C-q _should_ re-enter view-mode when the buffer was in
view-mode before:
((and (not buffer-read-only) view-read-only
;; If view-mode is already active, `view-mode-enter' is a nop.
(not view-mode)
(not (eq (get major-mode 'mode-class) 'special)))
(view-mode-enter))
But note that Emacs 22.1 resets `view-exit-action' to nil when leaving
`view-mode' and `view-mode-enter' without argument does _not_ set it
again.
Re: kill-buffer-if-not-modified: Wrong type argument: bufferp, t, Stefan Monnier, 2008/01/21