From: Werner LEMBERG <wl@gnu.org>
To: rgm@gnu.org
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: file variables and man pages with preprocessors
Date: Mon, 12 Nov 2007 12:20:43 +0100 (CET) [thread overview]
Message-ID: <20071112.122043.247515689.wl@gnu.org> (raw)
In-Reply-To: <4ed4ufalv8.fsf@fencepost.gnu.org>
> > If someone shows me where this should be handled, I'll fix it by
> > myself and apply the changes to the CVS. I wasn't able to find
> > the location in the sources where the shebang is handled
> > w.r.t. recognizing the encoding tag.
>
> set-auto-mode-1 in files.el
Thanks. Here's what I'm planning to commit:
--- files.el.old 2007-11-11 14:20:14.000000000 +0100
+++ files.el 2007-11-12 12:19:03.000000000 +0100
@@ -2428,7 +2428,12 @@
;; put them in the first line of
;; such a file without screwing up
;; the interpreter invocation.
- (and (looking-at "^#!") 2)) t)
+ ;; The same holds for
+ ;; '\"
+ ;; in man pages (preprocessor
+ ;; magic for the `man' program).
+ (and (or (looking-at "^#!")
+ (looking-at "^'\\\\\"")) 2)) t)
(progn
(skip-chars-forward " \t")
(setq beg (point))
> If the #! special case is documented in the manuals, the \" one
> probably should be too.
Yes, will do.
Werner
next prev parent reply other threads:[~2007-11-12 11:20 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-06 7:50 file variables and man pages with preprocessors Werner LEMBERG
2007-11-07 0:15 ` Richard Stallman
2007-11-07 4:01 ` Glenn Morris
2007-11-07 16:39 ` Richard Stallman
2007-11-08 0:54 ` Werner LEMBERG
2007-11-08 17:39 ` Richard Stallman
2007-11-09 7:27 ` Werner LEMBERG
2007-11-09 20:16 ` Glenn Morris
2007-11-10 17:54 ` Richard Stallman
2007-11-12 6:45 ` Werner LEMBERG
2007-11-12 8:50 ` Glenn Morris
2007-11-12 11:20 ` Werner LEMBERG [this message]
2007-11-12 20:13 ` Glenn Morris
2007-11-13 11:32 ` Werner LEMBERG
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=20071112.122043.247515689.wl@gnu.org \
--to=wl@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=rgm@gnu.org \
--cc=rms@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 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.