]> git.eshelyaron.com Git - emacs.git/commit
* lisp/find-file.el: Use lexical-binding
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 6 Apr 2021 20:28:50 +0000 (16:28 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 6 Apr 2021 20:29:11 +0000 (16:29 -0400)
commitc9655fcb47da8a104eb7b5eb7a3d0b4a6ba26fc3
tree8108f2099e18160718472ec63eb169cbf8beb9a6
parent735ed235c7edb4a487bda9375808ec29d4bea0fb
* lisp/find-file.el: Use lexical-binding

Remove unused `:group` args.  Prefer #' to quote function.

(ff-special-constructs, ff-find-the-other-file, ff-get-file-name)
(ff-list-replace-env-vars, ff-cc-hh-converter): Use `match-string`.
(modula2-other-file-alist): Tighten regexps.
(ff-get-other-file, ff-find-other-file): Use dynamic scoping.
(ff-find-the-other-file): Minor simplification.
(ff-other-file-name): Delete unused function.
(ff-string-match): Don't let-bind `case-fold-search` if not needed.
(ff-basename): Make it an obsolete alias for `file-name-nondirectory`.
(ff-switch-file): Minor simplification.
(ff-list-replace-env-vars): Use [:alnum:].
(ff-upcase-p): Use [:upper:]
(ff-cc-hh-converter): Use [:upper:] and [:lower:].
lisp/find-file.el