]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/find-file.el (ff-other-file-alist): Another doc fix. (Bug#57325)
authorEli Zaretskii <eliz@gnu.org>
Sun, 21 Aug 2022 19:06:34 +0000 (22:06 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 21 Aug 2022 19:06:34 +0000 (22:06 +0300)
lisp/find-file.el

index e137397d24cdd38d35d3b740a0f00a6f46d650b5..999cdd164e22a8e0d44963aba198f333bfaa36c1 100644 (file)
@@ -192,12 +192,16 @@ filename that EXTRACT returned."
 The value could be an alist or a symbol whose value is an alist.
 Each element of the alist has the form
 
-  (REGEXP (ETXENSION...))
+   (REGEXP (ETXENSION...))
+or
+   (REGEXP FUNCTION)
 
 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
+EXTENSIONs is the list of literal file-name extensions to search for,
+and FUNCTION is a function of one argument, the current file's name,
+that returns the list of extensions to search for.
+The list of extensions 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,
 a new one is created with the first matching extension (`.cc' yields `.hh').
 This alist should be set by the major mode."