GNU bug report logs - #4361
delphi-mode should be default for Delphi project files (with patch)

Previous Next

Package: emacs;

Reported by: Simon South <ssouth <at> slowcomputing.org>

Date: Sun, 6 Sep 2009 17:35:04 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Simon South <ssouth <at> slowcomputing.org>
To: bug-gnu-emacs <at> gnu.org
Subject: bug#4361: delphi-mode should be default for Delphi project files (with patch)
Date: Sun, 06 Sep 2009 13:25:24 -0400
The patch below changes auto-mode-alist so delphi-mode is entered
automatically for Delphi project (.dpr, .DPR) files.  (pascal-mode
remains the default for .pas files.)

Changes:

(auto-mode-alist): Use delphi-mode for .dpr, .DPR files.


Index: files.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/files.el,v
retrieving revision 1.1078
diff -c -r1.1078 files.el
*** files.el	5 Sep 2009 16:25:27 -0000	1.1078
--- files.el	6 Sep 2009 17:15:43 -0000
***************
*** 2174,2179 ****
--- 2174,2180 ----
       ("\\.for\\'" . fortran-mode)
       ("\\.p\\'" . pascal-mode)
       ("\\.pas\\'" . pascal-mode)
+      ("\\.[dD][pP][rR]\\'" . delphi-mode)
       ("\\.ad[abs]\\'" . ada-mode)
       ("\\.ad[bs].dg\\'" . ada-mode)
       ("\\.\\([pP]\\([Llm]\\|erl\\|od\\)\\|al\\)\\'" . perl-mode)




This bug report was last modified 15 years and 261 days ago.

Previous Next


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