GNU bug report logs - #20385
Support curved quotes in doc strings

Previous Next

Package: emacs;

Reported by: Paul Eggert <eggert <at> cs.ucla.edu>

Date: Mon, 20 Apr 2015 18:40:04 UTC

Severity: wishlist

Tags: patch

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Drew Adams <drew.adams <at> oracle.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>, Nicolas Petton <nicolas <at> petton.fr>
Cc: 20385 <at> debbugs.gnu.org, Dmitry Gutov <dgutov <at> yandex.ru>
Subject: bug#20385: [PROPOSED PATCH] Support quoting 'like this' in doc strings
Date: Thu, 23 Apr 2015 08:32:18 -0700 (PDT)
I said this, which is not clear:

> If this were HTML or XML (or even JSON) then we would not be trying
> to sacrifice one of the first two for the third.  We would simply
> adopt an unmistakable tag for code quoting.

No doubt we do have a similarly unmistakable tag for code quoting,
in TexInfo.

That tag is transformed to `...' in Emacs Info.  If it were transformed
to ‘...’ instead then we would lose the distinction between single-quoted
ordinary text and quoted code.  That's all.

And of course in help (e.g. `C-h f') and in Emacs-Lisp comments and doc
strings, there is no TexInfo representation.

Users should be able to search for a code term foo and not also hit
ordinary text occurrences of foo.  That is approximately possible
today.  And it is simple today to (reasonably, if imperfectly) tell
font-lock to highlight `...' occurrences (as it would be for ‘...’).

In some XML-based editors that provide a WSIWYG view, users can
search specially for a given element (e.g. <CodeInline>) or one with
a given attribute value, while remaining in WYSIWYG.  But that is
a separate search capability from regexp or simple text search in
the same editors.  In Emacs you can easily search for `...' occurrences
and pretty much find what you are looking for.




This bug report was last modified 9 years and 364 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.