emacs-devel
[Top][All Lists]
Advanced

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

Re: Integration of Info manuals in programming modes


From: Eli Zaretskii
Subject: Re: Integration of Info manuals in programming modes
Date: Thu, 05 Dec 2024 16:26:36 +0200

> From: Visuwesh <visuweshm@gmail.com>
> Cc: arne_bab@web.de,  rms@gnu.org,  spwhitton@spwhitton.name,
>   jb@jeremybryant.net,  emacs-devel@gnu.org
> Date: Thu, 05 Dec 2024 18:09:39 +0530
> 
> [வியாழன் டிசம்பர் 05, 2024] Eli Zaretskii wrote:
> 
> >> > However, maybe the regexp should only match keywords in upper-case,
> >> > and ignore-case should not be used?
> >> 
> >> But Fortran is a case-insensitive language and recent style-guides ask
> >> you to use lower case lettering for everything.  Other code that I've
> >> seen use upper case lettering for keywords, not for functions and
> >> subroutines so we cannot opt for this route unfortunately.
> >
> > What is important in this context is not whether Fortran is
> > case-insensitive, but how the index of the manual spells the keywords.
> 
> I do not really understand how info-lookup does its job but 'read' still
> matches if I use
> 
>     (info-lookup-maybe-add-help
>      :mode 'f90-mode
>      :parse-rule "[A-Za-z0-9_]+"
>      :regexp "[A-Z0-9_]+"
>      :doc-spec '(("(gfortran)Keyword Index")))
> 
> instead.  Perhaps I do not understand what you have in mind.

Maybe it's deeper in the bowels of the code, maybe even in info.el.
E.g., info.el could bind case-fold-search non-nil when looking up
index items.



reply via email to

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