bug#81441: [PATCH] Have 'toggle-rot13-mode' behave buffer locally
Philip Kaludercic <[email protected]>
| Newsgroups | gmane.emacs.bugs |
|---|---|
| Message-ID | <[email protected]> |
Eli Zaretskii <[email protected]> writes: >> From: Philip Kaludercic <[email protected]> >> Cc: [email protected] >> Date: Sun, 09 Aug 2026 08:38:57 +0000 >> >> Eli Zaretskii <[email protected]> writes: >> >> > Ping! How should we make further progress in this matter? >> >> I would suggest adding a new minor mode that changes the display table >> of the buffer, and not the frame. > > Sorry, I don't understand. You mean to have a minor mode (which by > definition is per-buffer) in addition to the command, which will stay > per-window? Yes, so basically just add (define-minor-mode rot13-buffer-mode "Toggle the use of ROT13 encoding for the current buffer." :global nil (setq buffer-display-table (and rot13-buffer-mode rot13-display-table))) to the file. > > If so, wouldn't the lack of symmetry be confusing? Why > not have a user option that would determine what the existing command > does? That is also a viable option, I thought your position was that it could be useful to have both options at the same time.