[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: MPUZ.el trouble : sort of a bug.
From: |
Daniel Pfeiffer |
Subject: |
Re: MPUZ.el trouble : sort of a bug. |
Date: |
Thu, 2 May 2002 21:51:16 +0200 |
kawabata@exa.onlab.ntt.co.jp (KAWABATA, Taichi) skribis:
> I forgot to mention one thing.
>
> > But the major difference with these program from mpuz is that they do
> > not invoke toggle-read-only to make the buffer read-only.
>
> DOCSTRING of toggle-read-only says :
>
> toggle-read-only is an interactive compiled Lisp function in
> `files'.(toggle-read-only &optional ARG)
>
> Change whether this buffer is visiting its file read-only.
> With arg, set read-only iff arg is positive.
> If visiting file read-only and `view-read-only' is non-nil, enter
> view mode.
>
> I think this function is inappropriate to use in mpuz.el.
Ah, ok, you seem to be right after all! I didn't invent that, it was already
in the old mpuz. Anyway, here's a little patch to achieve the same effect
harmlessly:
--- play/mpuz.el~ Tue Mar 5 11:02:57 2002
+++ play/mpuz.el Thu May 2 21:44:56 2002
@@ -368,7 +368,7 @@
(let ((buf (mpuz-get-buffer)))
(or buf (setq buf (mpuz-create-buffer)))
(switch-to-buffer buf)
- (or buffer-read-only (toggle-read-only))
+ (setq buffer-read-only t)
(mpuz-mode)))
best regards
Daniel
--
-- NEW site: http://dapfy.bei.t-online.de/sawfish/
-- KDE menu, smooth viewport scrolling, pager, window-snooper
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: MPUZ.el trouble : sort of a bug.,
Daniel Pfeiffer <=