unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: 12106@debbugs.gnu.org
Subject: bug#12106: 24.1; be able to prevent `help-make-xrefs' from creating a cross ref
Date: Tue, 31 Jul 2012 11:38:05 -0700	[thread overview]
Message-ID: <9C4D73809B2A47ECAAAEA2590560911F@us.oracle.com> (raw)

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'
 






             reply	other threads:[~2012-07-31 18:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-31 18:38 Drew Adams [this message]
2022-05-07 10:47 ` bug#12106: 24.1; be able to prevent `help-make-xrefs' from creating a cross ref Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9C4D73809B2A47ECAAAEA2590560911F@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=12106@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).