mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(mode-line-change-eol): Use with-selected-window.
This commit is contained in:
parent
554fde6ed7
commit
0ec08b3800
2 changed files with 3 additions and 2 deletions
|
|
@ -138,8 +138,7 @@ corresponding to the mode line clicked."
|
|||
(defun mode-line-change-eol (event)
|
||||
"Cycle through the various possible kinds of end-of-line styles."
|
||||
(interactive "e")
|
||||
(save-selected-window
|
||||
(select-window (posn-window (event-start event)))
|
||||
(with-selected-window (posn-window (event-start event))
|
||||
(let ((eol (coding-system-eol-type buffer-file-coding-system)))
|
||||
(set-buffer-file-coding-system
|
||||
(cond ((eq eol 0) 'dos) ((eq eol 1) 'mac) (t 'unix))))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue