]> git.eshelyaron.com Git - emacs.git/commit
Make ff-find-other-file symmetric for C++ (Bug#20192)
authorDima Kogan <dima@secretsauce.net>
Tue, 24 Mar 2015 19:53:08 +0000 (12:53 -0700)
committerNoam Postavsky <npostavs@gmail.com>
Sun, 21 May 2017 21:43:02 +0000 (17:43 -0400)
commit08848e33baf16d3137b171205f51839d8fcf7d06
tree8aabb6eb8ba8376c6f52d00c418a6e279327a2f0
parent32f80eb678c4dc6335063cc39975bbce2766829a
Make ff-find-other-file symmetric for C++ (Bug#20192)

`cc-other-file-alist' has a mapping of file extensions to switch
between headers and sources, but the mappings weren't completely
symmetric.  In particular .cpp would map to .hh, but .hh would NOT map
to .cpp.

* lisp/find-file.el (cc-other-file-alist): Map ".hh" and ".h" to all
C++ extensions to make them symmetric with the C++ extensions that map
to them.  This lets repeated invocations of `ff-find-other-file'
toggle between all pairs of sources/headers.
lisp/find-file.el