all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: did syntax for setq auto-mode-alist or regexp change with 21.3.1?
Date: Thu, 30 Jun 2005 14:48:12 -0600	[thread overview]
Message-ID: <da1lcc$jtv$1@sea.gmane.org> (raw)
In-Reply-To: <1120154956.527628.38170@f14g2000cwb.googlegroups.com>

Tom wrote:
 > This worked with emacs 20.7.1 on Linux
 >
 > (setq auto-mode-alist (cons
 > 
`("makefile\\(\\.aix\\|\\.hp\\|\\.sol\\|\\.linux\\|\\.gcc\\)\\'".makefile-mode)
 > auto-mode-alist))
 >
 > With emacs 21.3.1 on Linux I get this error for the above syntax:
 >
 > File mode specification error: (invalid-function (\.makefile-mode))
 >
 > I had to do it this way to get it to work in emacs 21.3.1 on Linux
 >
 > (setq auto-mode-alist (cons `( "makefile\\.linux" . makefile-mode )
 > auto-mode-alist ))
 > (setq auto-mode-alist (cons `( "makefile\\.sol" . makefile-mode )
 > auto-mode-alist ))
 > (setq auto-mode-alist (cons `( "makefile\\.aix" . makefile-mode )
 > auto-mode-alist ))
 > (setq auto-mode-alist (cons `( "makefile\\.hp" . makefile-mode )
 > auto-mode-alist ))
 > (setq auto-mode-alist (cons `( "makefile\\.gcc" . makefile-mode )
 > auto-mode-alist ))

No, you just need to put spaces around the dot that's between the
complex regexp and the function.

 > Any ideas why the first form no longer works?

To get you to clean up your code :-)

Since dot is a valid character in a symbol name, the Lisp reader
requires surrounding whitespace in order to interpret it as the infix
cons operator.

-- 
Kevin Rodgers

  reply	other threads:[~2005-06-30 20:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-30 18:09 did syntax for setq auto-mode-alist or regexp change with 21.3.1? Tom
2005-06-30 20:48 ` Kevin Rodgers [this message]
2005-06-30 21:00 ` Thien-Thi Nguyen

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

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

  git send-email \
    --in-reply-to='da1lcc$jtv$1@sea.gmane.org' \
    --to=ihs_4664@yahoo.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.