]> git.eshelyaron.com Git - emacs.git/commitdiff
Work around reader limitations for old-style backquotes.
authorPhilipp Stephani <phst@google.com>
Sun, 15 Oct 2017 19:32:17 +0000 (21:32 +0200)
committerPhilipp Stephani <phst@google.com>
Sat, 9 Dec 2017 20:05:41 +0000 (21:05 +0100)
See Bug#28759.

* admin/grammars/make.by: Escape ,@ to avoid old-style backquote
detection

admin/grammars/make.by

index d3a03ead472f8fcfeb74426687287fb85e3379ab..4d029186d8660451db27c9de205d862a0ce01bf3 100644 (file)
 
 %%
 
+;; Escape the ,@ below because the reader doesn't correctly detect
+;; old-style backquotes for this case.  The backslashes can be removed
+;; once old-style backquotes are completely gone (probably in
+;; Emacs 28).
+
 Makefile : bol newline (nil)
         | bol variable
-          ( ,@$2 )
+          ( \,@$2 )
         | bol rule
-          ( ,@$2 )
+          ( \,@$2 )
         | bol conditional
-          ( ,@$2 )
+          ( \,@$2 )
         | bol include
-          ( ,@$2 )
+          ( \,@$2 )
         | whitespace ( nil )
         | newline ( nil )
         ;
@@ -125,13 +130,13 @@ colons: COLON COLON ()
       ;
 
 element-list: elements newline
-             ( ,@$1 )
+             ( \,@$1 )
            ;
 
 elements: element some-whitespace elements
-         ( ,@$1 ,@$3 )
+         ( \,@$1 ,@$3 )
        | element
-         ( ,@$1 )
+         ( \,@$1 )
        | ;;EMPTY
        ;