GNU bug report logs - #14339
24.3.50; [patch] ff-find-other-file doesn't understand Objective-C

Previous Next

Package: emacs;

Reported by: Ivan Andrus <darthandrus <at> gmail.com>

Date: Fri, 3 May 2013 04:31:01 UTC

Severity: minor

Tags: patch

Found in version 24.3.50

Fixed in version 24.4

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ivan Andrus <darthandrus <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; [patch] ff-find-other-file doesn't understand Objective-C
Date: Thu, 2 May 2013 22:29:30 -0600
Below is a simple patch to support Objective-C files (.m extension) for
ff-find-other-file and a sample ChangeLog entry.  There are Obj-C files
in the Emacs distribution and I think this would be useful to several
people.

I have copyright assignment papers on file.

Thanks,
Ivan


2013-05-  Ivan Andrus  <darthandrus <at> gmail.com>

	* lisp/find-file.el (cc-other-file-alist): Add .m extension for
      Objective-C files.



=== modified file 'lisp/find-file.el'
*** lisp/find-file.el	2013-01-01 09:11:05 +0000
--- lisp/find-file.el	2013-05-03 04:17:58 +0000
*************** the preceding slash.  The star represent
*** 245,251 ****
      ("\\.hh\\'"  (".cc" ".C"))

      ("\\.c\\'"   (".h"))
!     ("\\.h\\'"   (".c" ".cc" ".C" ".CC" ".cxx" ".cpp"))

      ("\\.C\\'"   (".H"  ".hh" ".h"))
      ("\\.H\\'"   (".C"  ".CC"))
--- 245,252 ----
      ("\\.hh\\'"  (".cc" ".C"))

      ("\\.c\\'"   (".h"))
!     ("\\.m\\'"   (".h"))
!     ("\\.h\\'"   (".c" ".cc" ".C" ".CC" ".cxx" ".cpp" ".m"))

      ("\\.C\\'"   (".H"  ".hh" ".h"))
      ("\\.H\\'"   (".C"  ".CC"))




This bug report was last modified 12 years and 80 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.