emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#20895: closed ([patch] lexical binding broke part


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#20895: closed ([patch] lexical binding broke part of sgml-mode.el)
Date: Fri, 24 Jul 2015 18:29:03 +0000

Your message dated Fri, 24 Jul 2015 21:28:09 +0300
with message-id <address@hidden>
and subject line Re: bug#20386: 25.0.50; error when calling sgml-attributes and 
sgml-tag
has caused the debbugs.gnu.org bug report #20386,
regarding [patch] lexical binding broke part of sgml-mode.el
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
20386: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20386
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: [patch] lexical binding broke part of sgml-mode.el Date: Thu, 25 Jun 2015 12:42:35 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)
The following change broke some functionality in sgml-mode.el:

   commit 84e0b7dad6f1a8e53261f9b96f5a9080fea681a4
   Author: Stefan Monnier <address@hidden>
   Date:   Mon Apr 13 15:51:15 2015 -0400
   [...]
       * lisp/textmodes/sgml-mode.el: Use lexical-binding.

To see the bug, visit an (X)HTML file and insert a tag (`C-c C-t') that
takes an attribute, such `p' or `a'.

The following patch fixes the problems I have encountered, but I'm not
sure if further adjustments are needed, so I'll defer to whoever knows
the code better about whether to commit it as is.


2015-06-25  Stephen Berman  <address@hidden>

        * sgml-mode.el (sgml-attributes, sgml-value): Make them work with
        lexical binding.


diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el
index 2ffe9c1..dbb9662 100644
--- a/lisp/textmodes/sgml-mode.el
+++ b/lisp/textmodes/sgml-mode.el
@@ -759,9 +759,9 @@ If QUIET, do not print a message when there are no 
attributes for TAG."
            (insert ?\s)
            (insert (funcall skeleton-transformation-function
                             (setq attribute
-                                  (skeleton-read '(completing-read
+                                  (skeleton-read `(completing-read
                                                    "Attribute: "
-                                                   alist)))))
+                                                   ',alist)))))
            (if (string= "" attribute)
                (setq i 0)
              (sgml-value (assoc (downcase attribute) alist))
@@ -1177,13 +1177,13 @@ See `sgml-tag-alist' for info about attribute rules."
     (if (and (eq (car alist) t) (not sgml-xml-mode))
        (when (cdr alist)
          (insert "=\"")
-         (setq alist (skeleton-read '(completing-read "Value: " (cdr alist))))
+         (setq alist (skeleton-read `(completing-read "Value: " (cdr 
',alist))))
          (if (string< "" alist)
              (insert alist ?\")
            (delete-char -2)))
       (insert "=\"")
       (if (cdr alist)
-          (insert (skeleton-read '(completing-read "Value: " alist)))
+          (insert (skeleton-read `(completing-read "Value: " ',alist)))
         (when (null alist)
           (insert (skeleton-read '(read-string "Value: ")))))
       (insert ?\"))))




--- End Message ---
--- Begin Message --- Subject: Re: bug#20386: 25.0.50; error when calling sgml-attributes and sgml-tag Date: Fri, 24 Jul 2015 21:28:09 +0300 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0
On 07/24/2015 07:55 PM, Harald Hanche-Olsen wrote:

Great. The message looks fine to me.

Please try to follow its format in future patches (see CONTRIBUTE for details).


--- End Message ---

reply via email to

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