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

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

bug#25517: 25.1.91; print-format specifier mistaken as comment


From: Andreas Röhler
Subject: bug#25517: 25.1.91; print-format specifier mistaken as comment
Date: Tue, 24 Jan 2017 16:35:01 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Icedove/45.6.0



On 24.01.2017 14:19, address@hidden wrote:
Andreas Röhler <address@hidden> writes:

See also png attached

It looks like the problem is that octave-mode-syntax-table sets single
quotes as punctuation even though GNU Octave's manual says single quotes
are string syntax [1].

[1]:
https://www.gnu.org/software/octave/doc/interpreter/String-Objects.html

Does this fix it?

--- i/lisp/progmodes/octave.el
+++ w/lisp/progmodes/octave.el
@@ -165,7 +165,7 @@ octave-mode-syntax-table
      (modify-syntax-entry ?| "."   table)
      (modify-syntax-entry ?! "."   table)
      (modify-syntax-entry ?\\ "."  table)
-    (modify-syntax-entry ?\' "."  table)
+    (modify-syntax-entry ?\' "\""  table)
      (modify-syntax-entry ?\` "."  table)
      (modify-syntax-entry ?. "."   table)
      (modify-syntax-entry ?\" "\"" table)


Thanks. That should be a useful cure in octave-mode.

A resp. fix seems needed in inferior-octave-mode-map.





reply via email to

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