unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Simon South <ssouth@slowcomputing.org>
To: bug-gnu-emacs@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	[thread overview]
Message-ID: <87d464x9x7.fsf@hamlet.localdomain> (raw)

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)






             reply	other threads:[~2009-09-06 17:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <hp3a6zebga.fsf@fencepost.gnu.org>
2009-09-06 17:25 ` Simon South [this message]
2009-09-07  2:35   ` bug#4361: marked as done (delphi-mode should be default for Delphi project files (with patch)) Emacs bug Tracking System

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d464x9x7.fsf@hamlet.localdomain \
    --to=ssouth@slowcomputing.org \
    --cc=4361@emacsbugs.donarmstrong.com \
    --cc=bug-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).