summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2022-08-21 21:48:58 +0300
committerEli Zaretskii <eliz@gnu.org>2022-08-21 21:48:58 +0300
commit1e1263b00b9cb722216fde7e45c42259960ab38a (patch)
tree4b64ec223aead2fef1c070b3e7124b19dfc9c24e
parentf2c0fb2615f4c1140f5eef52b19cb77b4e86cbb4 (diff)
downloademacs-1e1263b00b9cb722216fde7e45c42259960ab38a.tar.gz
* lisp/find-file.el (ff-other-file-alist): Doc fix. (Bug#57325)
-rw-r--r--lisp/find-file.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/find-file.el b/lisp/find-file.el
index 809592413dd..e137397d24c 100644
--- a/lisp/find-file.el
+++ b/lisp/find-file.el
@@ -189,6 +189,13 @@ filename that EXTRACT returned."
(defcustom ff-other-file-alist 'cc-other-file-alist
"Alist of extensions to find given the current file's extension.
+The value could be an alist or a symbol whose value is an alist.
+Each element of the alist has the form
+
+ (REGEXP (ETXENSION...))
+
+where REGEXP is the regular expression matching a file's extension,
+and EXTENSIONs is the list of literal file-name extensions to search for.
This list should contain the most used extensions before the others,
since the search algorithm searches sequentially through each
directory specified in `ff-search-directories'. If a file is not found,