From 0ec08b38001ff9e3f8ec59133a70b217330a3763 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Wed, 26 Mar 2008 03:32:46 +0000 Subject: [PATCH] (mode-line-change-eol): Use with-selected-window. --- lisp/ChangeLog | 2 ++ lisp/bindings.el | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b97c37f1f9b..97e59b46f25 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,7 @@ 2008-03-26 Stefan Monnier + * bindings.el (mode-line-change-eol): Use with-selected-window. + * apropos.el (apropos-command): Include macros. 2008-03-26 Glenn Morris diff --git a/lisp/bindings.el b/lisp/bindings.el index b2f051cf030..7e24013b699 100644 --- a/lisp/bindings.el +++ b/lisp/bindings.el @@ -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)))))) -- 2.39.5