emacs-devel
[Top][All Lists]
Advanced

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

RE: [External] : Re: master ff4de1b: Fix quoting style in Lisp comments


From: Drew Adams
Subject: RE: [External] : Re: master ff4de1b: Fix quoting style in Lisp comments
Date: Sat, 18 Sep 2021 16:02:51 +0000

> At a glance I find them incredibly difficult to distinguish (if these
> characters were used for lisp quote and backquote, for instance, it
> would be absolutely awful).

Exactly.  Their use in natural-language text
isn't problematic, in general.  Their use in
contexts where their meanings are important
is problematic.  For example use in regexps:

(defvar info-quotation-regexp
  (concat
   "\"\\(?:[^\"\\]\\|\\\\\\(?:.\\|\n\\)\\)*\"\\|" ; "..."
   "`\\(?:[^']\\|\\\\\\(?:.\\|\n\\)\\)+'\\|"      ; `...'
   "‘\\(?:[^’]\\|\\\\\\(?:.\\|\n\\)\\)+’\\|"      ; ‘...’
   "“\\(?:[^”]\\|\\\\\\(?:.\\|\n\\)\\)+”"         ; “...”
   )
  "Regexp to match `...', ‘...’, “...”, \"...\".
If ... contains an end char then that char must be backslashed.")

reply via email to

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