[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#23520: 25.0.93; find-feature-regexp : mismatch between docstring and
From: |
npostavs |
Subject: |
bug#23520: 25.0.93; find-feature-regexp : mismatch between docstring and default value. |
Date: |
Sat, 02 Jul 2016 17:24:02 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.93 (gnu/linux) |
tags 23520 patch
severity 23520 minor
quit
Nicolas Richard <youngfrog@members.fsf.org> writes:
> 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".
Right, so basically s/must/may?
>From 0c5d9afceeb2fc748aedc075560729dfd8f14b4e Mon Sep 17 00:00:00 2001
From: Noam Postavsky <npostavs@gmail.com>
Date: Sat, 2 Jul 2016 17:17:55 -0400
Subject: [PATCH v1] Clarify docstring of find-feature-regexp
* lisp/emacs-lisp/find-func.el (find-feature-regexp): Explain that `%s'
is optional (Bug #23520).
---
lisp/emacs-lisp/find-func.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/emacs-lisp/find-func.el b/lisp/emacs-lisp/find-func.el
index d2e10ea..43bcb42 100644
--- a/lisp/emacs-lisp/find-func.el
+++ b/lisp/emacs-lisp/find-func.el
@@ -103,7 +103,7 @@ find-face-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'
+Note it may contain up to one `%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
--
2.8.0
- bug#23520: 25.0.93; find-feature-regexp : mismatch between docstring and default value.,
npostavs <=