emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 16ca258b1fc: Repair mistake in a previous edmacro-sanitize-stri


From: Mattias Engdegård
Subject: emacs-29 16ca258b1fc: Repair mistake in a previous edmacro-sanitize-string change
Date: Tue, 21 Feb 2023 04:32:24 -0500 (EST)

branch: emacs-29
commit 16ca258b1fcf46ecf4e9d04ce950ed286984fad1
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>

    Repair mistake in a previous edmacro-sanitize-string change
    
    * lisp/edmacro.el (edmacro-sanitize-for-string):
    This condition should not have been 'repaired' but removed altogether.
    Do so now, fixing bug#61647.
    
    Reported by Eduardo Ochs.
    
    (cherry picked from commit 4eefadad0670ad1c3da2505d734e528d54c76bef)
---
 lisp/edmacro.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lisp/edmacro.el b/lisp/edmacro.el
index c995e2f89d7..8734f7cbebe 100644
--- a/lisp/edmacro.el
+++ b/lisp/edmacro.el
@@ -626,8 +626,7 @@ The string represents the same events; Meta is indicated by 
bit 7.
 This function assumes that the events can be stored in a string."
   (setq seq (copy-sequence seq))
   (cl-loop for i below (length seq) do
-           (when (/= (logand (aref seq i) 128) 0)
-             (setf (aref seq i) (logand (aref seq i) 127))))
+           (setf (aref seq i) (logand (aref seq i) 127)))
   seq)
 
 ;; These are needed in a --without-x build.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]