unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* Request for highlighting back-quote/quote pair notation.
       [not found]         ` <DCF4DB0A2DF54F4695EAFF12A63778BD@us.oracle.com>
@ 2012-12-19 17:15           ` Oleksandr Gavenko
  2012-12-19 17:49             ` Drew Adams
  2021-05-31  7:47             ` bug#13228: " Lars Ingebrigtsen
  0 siblings, 2 replies; 7+ messages in thread
From: Oleksandr Gavenko @ 2012-12-19 17:15 UTC (permalink / raw)
  To: help-gnu-emacs; +Cc: bug-gnu-emacs

From:

  Subject: RE: backquote quote pair notation: What does it mean in Emacsdocument?
  Newsgroups: gmane.emacs.help
  Cc: help-gnu-emacs@gnu.org
  Date: 2012-12-19 02:40:13+0200 Wed
  Archived-At: <http://permalink.gmane.org/gmane.emacs.help/88208>

On 2012-12-19, Drew Adams wrote:

> >> Compare the two attached screenshots, for instance.  See 
> >> how the quoted text stands out more when it is highlighted,
> >> and how that can help readability.
> >
> > How can I add such highlighting for Info buffers in my config?
> >
> > I think that it is done through some standard configuration...
> > Please share!

> No, there is no standard configuration that does this.  I offered it to Emacs
> Dev several times starting a long time ago (and it is still offered), but there
> has never been insufficient interest.

From "info texinfo":

> 14.2 Inserting Quote Characters
> ===============================

> As explained in the early section on general Texinfo input conventions
> (*note Conventions::), Texinfo source files use the ASCII character ``'
> (96 decimal) to produce a left quote (`), and ASCII `'' (39 decimal) to
> produce a right quote (').  Doubling these input characters (```' and
> `''') produces double quotes (" and ").  These are the conventions used
> by TeX.

So `' quoting style is common for info files. I checked it was used for
function selection in libc and readline info files. Also it was used in GNU
Make, R, Autotool and other manuals.

So having highlighting for `' in info mode is good thing for Emacs user
(compare with emacs-lisp-mode, where it was highlighted).

This is my vote up.

-- 
Best regards!




^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: Request for highlighting back-quote/quote pair notation.
  2012-12-19 17:15           ` Request for highlighting back-quote/quote pair notation Oleksandr Gavenko
@ 2012-12-19 17:49             ` Drew Adams
  2021-05-31  7:47             ` bug#13228: " Lars Ingebrigtsen
  1 sibling, 0 replies; 7+ messages in thread
From: Drew Adams @ 2012-12-19 17:49 UTC (permalink / raw)
  To: 'Oleksandr Gavenko', help-gnu-emacs; +Cc: bug-gnu-emacs

> So `' quoting style is common for info files. I checked it 
> was used for function selection in libc and readline info files.
> Also it was used in GNU Make, R, Autotool and other manuals.
> 
> So having highlighting for `' in info mode is good thing for 
> Emacs user (compare with emacs-lisp-mode, where it was highlighted).
> 
> This is my vote up.

Here is a 2004 thread about this, for reference:
http://lists.gnu.org/archive/html/emacs-devel/2004-10/msg00045.html

Be aware that it is not feasible for such highlighting to be foolproof.  There
are sometimes isolated occurrences of characters such as ` and " that do not
indicate quotation bounds, for instance.  And some nested or overlapping
quotations are not handled correctly, such as this from `(eintr) else':

  `"It's a tiger!"'; but when you evaluate `(type-of-animal 'zebra)',
  you will see `"It's not fierce!"'.

However, last time (2004) I checked in detail, there were "only *4* nodes of the
Elisp Manual that exhibit any highlighting problem at all, and those pbs are
minor.  This is a big manual."  That's not bad.
http://lists.gnu.org/archive/html/emacs-devel/2004-10/msg00197.html

At that time I also checked other manuals, with the findings detailed here:
http://lists.gnu.org/archive/html/emacs-devel/2004-10/msg00206.html
http://lists.gnu.org/archive/html/emacs-devel/2004-10/msg00234.html

A subsequent version of the code fixed some of those problems.
Here is my last message in that thread:
http://lists.gnu.org/archive/html/emacs-devel/2004-10/msg00301.html

Among other things, this highlighting can be helpful in finding certain bugs in
the manuals.  During that thread several such bugs were found and corrected.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#13228: Request for highlighting back-quote/quote pair notation.
  2012-12-19 17:15           ` Request for highlighting back-quote/quote pair notation Oleksandr Gavenko
  2012-12-19 17:49             ` Drew Adams
@ 2021-05-31  7:47             ` Lars Ingebrigtsen
  2021-07-02 11:15               ` Lars Ingebrigtsen
  1 sibling, 1 reply; 7+ messages in thread
From: Lars Ingebrigtsen @ 2021-05-31  7:47 UTC (permalink / raw)
  To: Oleksandr Gavenko; +Cc: 13228

Oleksandr Gavenko <gavenkoa@gmail.com> writes:

>>From "info texinfo":
>
>> 14.2 Inserting Quote Characters
>> ===============================
>
>> As explained in the early section on general Texinfo input conventions
>> (*note Conventions::), Texinfo source files use the ASCII character ``'
>> (96 decimal) to produce a left quote (`), and ASCII `'' (39 decimal) to
>> produce a right quote (').  Doubling these input characters (```' and
>> `''') produces double quotes (" and ").  These are the conventions used
>> by TeX.
>
> So `' quoting style is common for info files. I checked it was used for
> function selection in libc and readline info files. Also it was used in GNU
> Make, R, Autotool and other manuals.
>
> So having highlighting for `' in info mode is good thing for Emacs user
> (compare with emacs-lisp-mode, where it was highlighted).

(I'm going through old bug reports that unfortunately got little response at
the time.)

I'm not sure I quite understand the request here.  Is it to highlight
`foo' in .texinfo files, or in `Info-mode'?  If it's the latter, I think
we've mostly moved to rendering this as ‘foo’.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#13228: Request for highlighting back-quote/quote pair notation.
  2021-05-31  7:47             ` bug#13228: " Lars Ingebrigtsen
@ 2021-07-02 11:15               ` Lars Ingebrigtsen
  2021-07-02 15:08                 ` bug#13228: [External] : " Drew Adams
  0 siblings, 1 reply; 7+ messages in thread
From: Lars Ingebrigtsen @ 2021-07-02 11:15 UTC (permalink / raw)
  To: Oleksandr Gavenko; +Cc: 13228

Lars Ingebrigtsen <larsi@gnus.org> writes:

> I'm not sure I quite understand the request here.  Is it to highlight
> `foo' in .texinfo files, or in `Info-mode'?  If it's the latter, I think
> we've mostly moved to rendering this as ‘foo’.

More information was requested, but no response was given within a
month, so I'm closing this bug report.  If the problem still exists,
please respond to this email and we'll reopen the bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#13228: [External] : Re: bug#13228: Request for highlighting back-quote/quote pair notation.
  2021-07-02 11:15               ` Lars Ingebrigtsen
@ 2021-07-02 15:08                 ` Drew Adams
  2021-07-02 15:19                   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 7+ messages in thread
From: Drew Adams @ 2021-07-02 15:08 UTC (permalink / raw)
  To: Lars Ingebrigtsen, Oleksandr Gavenko; +Cc: 13228@debbugs.gnu.org

> > I'm not sure I quite understand the request here.  Is it to highlight
> > `foo' in .texinfo files, or in `Info-mode'?  If it's the latter, I think
> > we've mostly moved to rendering this as ‘foo’.
> 
> More information was requested, but no response was given within a
> month, so I'm closing this bug report.  If the problem still exists,
> please respond to this email and we'll reopen the bug report.

What more info were you looking for?

Yes, Emacs now uses ‘foo’, not `foo'.  And?  How
does that change/nullify the enhancement request,
which was to _highlight_ the text that's quoted?

So yes, "the problem still exists".
___

FWIW, my code that supports this has been improved
greatly since this bug was filed in 2012 (and it was
already fine for this).

If you want to see the effect quickly then just load
info+.el and visit a manual such as the Elisp manual.

I won't waste anyone's time with details, as I know
you'll ignore them anyway.  But if anyone (else) is
interested the code is here:

https://www.emacswiki.org/emacs/download/info%2b.el

And doc is here:

https://www.emacswiki.org/emacs/InfoPlus

The doc about highlighting quoted names etc. is here:

https://www.emacswiki.org/emacs/InfoPlus#highlighting

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#13228: [External] : Re: bug#13228: Request for highlighting back-quote/quote pair notation.
  2021-07-02 15:08                 ` bug#13228: [External] : " Drew Adams
@ 2021-07-02 15:19                   ` Lars Ingebrigtsen
  2021-07-02 16:25                     ` Drew Adams
  0 siblings, 1 reply; 7+ messages in thread
From: Lars Ingebrigtsen @ 2021-07-02 15:19 UTC (permalink / raw)
  To: Drew Adams; +Cc: 13228@debbugs.gnu.org, Oleksandr Gavenko

Drew Adams <drew.adams@oracle.com> writes:

>> > I'm not sure I quite understand the request here.  Is it to highlight
>> > `foo' in .texinfo files, or in `Info-mode'?  If it's the latter, I think
>> > we've mostly moved to rendering this as ‘foo’.
>> 
>> More information was requested, but no response was given within a
>> month, so I'm closing this bug report.  If the problem still exists,
>> please respond to this email and we'll reopen the bug report.
>
> What more info were you looking for?

An answer to the first question, for instance?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#13228: [External] : Re: bug#13228: Request for highlighting back-quote/quote pair notation.
  2021-07-02 15:19                   ` Lars Ingebrigtsen
@ 2021-07-02 16:25                     ` Drew Adams
  0 siblings, 0 replies; 7+ messages in thread
From: Drew Adams @ 2021-07-02 16:25 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 13228@debbugs.gnu.org, Oleksandr Gavenko

> > What more info were you looking for?
> 
> An answer to the first question, for instance?

It's pretty clear from the OP that this is about
highlighting Info buffers.  What there isn't
clear to you?

   How can I add such highlighting for Info buffers
                      ^^^^^^^^^^^^^^^^^^^^^
   in my config?

and

   So `' quoting style is common for info files.
   I checked it was used for function selection in
   libc and readline info files. Also it was used
   in GNU Make, R, Autotool and other manuals.

   So having highlighting for `' in info mode is
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
   good thing for Emacs user (compare with
   emacs-lisp-mode, where it was highlighted).

The only mention of texinfo was to say that it
uses ` and ' to produce left and right (single)
quote chars in Info output.

The fact that the quote chars produced for Info
changed after the bug was filed, from ` and ' to
curly quotes is irrelevant to the request.  The
request is not about highlighting in .texinfo
buffers or anything of the sort.  It is, as it
says, about highlighting quoted text in Info.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-07-02 16:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <b756cfe6-ca65-4a47-b063-239f522c2991@googlegroups.com>
     [not found] ` <878v8v8tsd.fsf@gmail.com>
     [not found]   ` <855E7E03363249B6874C759B0A496ACF@us.oracle.com>
     [not found]     ` <87hanj428m.fsf@gavenkoa.example.com>
     [not found]       ` <87pq279nv1.fsf@gmail.com>
     [not found]         ` <DCF4DB0A2DF54F4695EAFF12A63778BD@us.oracle.com>
2012-12-19 17:15           ` Request for highlighting back-quote/quote pair notation Oleksandr Gavenko
2012-12-19 17:49             ` Drew Adams
2021-05-31  7:47             ` bug#13228: " Lars Ingebrigtsen
2021-07-02 11:15               ` Lars Ingebrigtsen
2021-07-02 15:08                 ` bug#13228: [External] : " Drew Adams
2021-07-02 15:19                   ` Lars Ingebrigtsen
2021-07-02 16:25                     ` Drew Adams

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).