unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#23520: 25.0.93; find-feature-regexp : mismatch between docstring and default value.
@ 2016-05-12  7:52 Nicolas Richard
  2016-07-02 21:24 ` npostavs
  0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Richard @ 2016-05-12  7:52 UTC (permalink / raw)
  To: 23520

Here's the current definition of find-feature-regexp :

(defcustom find-feature-regexp
  (concat ";;; Code:")
  "The regexp used by `xref-find-definitions' when searching for a feature definition.
Note it must contain a `%s' at the place where `format'
should insert the feature name."
  ;; We search for ";;; Code" rather than (feature '%s) because the
  ;; former is near the start of the code, and the latter is very
  ;; uninteresting. If the regexp is not found, just goes to
  ;; (point-min), which is acceptable in this case.
  :type 'regexp
  :group 'xref
  :version "25.0")

The comment explains why there is no "%s" in the default value, but when
doing C-h v find-feature-regexp RET, it's puzzling to read "must contain
%s" and then the default value doesn't actually contain "%s".


In GNU Emacs 25.0.93.1 (i686-pc-linux-gnu, X toolkit, Xaw scroll bars)
 of 2016-05-03 built on Aurora
Repository revision: c6077bfd297a8a0e4deaec217db17be630d98b9c
Windowing system distributor 'The X.Org Foundation', version 11.0.11702000
System Description:	Ubuntu 15.10





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

end of thread, other threads:[~2016-07-09 21:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-12  7:52 bug#23520: 25.0.93; find-feature-regexp : mismatch between docstring and default value Nicolas Richard
2016-07-02 21:24 ` npostavs
2016-07-03 14:18   ` Nicolas Richard
2016-07-09 21:47     ` npostavs

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).