* bug#12106: 24.1; be able to prevent `help-make-xrefs' from creating a cross ref
@ 2012-07-31 18:38 Drew Adams
2022-05-07 10:47 ` Lars Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Drew Adams @ 2012-07-31 18:38 UTC (permalink / raw)
To: 12106
I would like some easy way to prevent `help-make-xrefs' from turning a
given `...' into a cross reference (link).
If I want to refer to a function or whatever without linking to
what Emacs thinks is the proper doc for it, what can I do? The
current handling of `...' is too black-and-white. There should
be some way to turn off link a particular instance of `...'.
E.g., we should be able to put something in the doc string that
(a) is not, itself, displayed and (b) prevents `help-make-xrefs'
from creating a link for that `...' occurrence.
If we did not care about making the indication invisible then it
might be enough to change, say, `help-xref-symbol-regexp' to this:
"\\(\\<\\(\\(variable\\|option\\)\\|\\(function\\|command\\)\\|\
\\(face\\)\\|\\(symbol\\|program\\|property\\)\\|\
\\(source \\(?:code \\)?\\(?:of\\|for\\)\\)\\)[ \n]+\\)?\
[^\\]`\\(\\sw\\(\\sw\\|\\s_\\)+\\)'"
^^^^^
I.e., just let a backslash escape `...' from linking. But that
puts a `\' in the output buffer as well. (Perhaps it could be
made invisible?)
Anyway, I am not proposing the solution, I'm just filing the
enhancement request.
In GNU Emacs 24.1.1 (i386-mingw-nt5.1.2600)
of 2012-06-10 on MARVIN
Windowing system distributor `Microsoft Corp.', version 5.1.2600
Configured using:
`configure --with-gcc (4.6) --cflags
-ID:/devel/emacs/libs/libXpm-3.5.8/include
-ID:/devel/emacs/libs/libXpm-3.5.8/src
-ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include
-ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include
-ID:/devel/emacs/libs/giflib-4.1.4-1/include
-ID:/devel/emacs/libs/jpeg-6b-4/include
-ID:/devel/emacs/libs/tiff-3.8.2-1/include
-ID:/devel/emacs/libs/gnutls-3.0.9/include'
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#12106: 24.1; be able to prevent `help-make-xrefs' from creating a cross ref
2012-07-31 18:38 bug#12106: 24.1; be able to prevent `help-make-xrefs' from creating a cross ref Drew Adams
@ 2022-05-07 10:47 ` Lars Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2022-05-07 10:47 UTC (permalink / raw)
To: Drew Adams; +Cc: 12106
"Drew Adams" <drew.adams@oracle.com> writes:
> I would like some easy way to prevent `help-make-xrefs' from turning a
> given `...' into a cross reference (link).
Yes, that would be nice.
> "\\(\\<\\(\\(variable\\|option\\)\\|\\(function\\|command\\)\\|\
> \\(face\\)\\|\\(symbol\\|program\\|property\\)\\|\
> \\(source \\(?:code \\)?\\(?:of\\|for\\)\\)\\)[ \n]+\\)?\
> [^\\]`\\(\\sw\\(\\sw\\|\\s_\\)+\\)'"
> ^^^^^
> I.e., just let a backslash escape `...' from linking. But that
> puts a `\' in the output buffer as well. (Perhaps it could be
> made invisible?)
I've now introduced a new \+ syntax for this in Emacs 29.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-05-07 10:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-31 18:38 bug#12106: 24.1; be able to prevent `help-make-xrefs' from creating a cross ref Drew Adams
2022-05-07 10:47 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.