From: Markus Gritsch <gritsch@iue.tuwien.ac.at>
Subject: Inserting "-*- mode: ..." before turning mode on in (compilation-start)
Date: Fri, 27 May 2005 18:54:47 +0200 [thread overview]
Message-ID: <429750D7.1080402@iue.tuwien.ac.at> (raw)
[-- Attachment #1: Type: text/plain, Size: 596 bytes --]
Hi,
It would be nice if the specified mode in (compilation-start) would get
activated before inserting anything (i.e. the mode setter line) into the
buffer.
In a function which I added to compilation-mode-hook I change some
fontification things including the used font. When (compilation-start)
is called using compilation-mode as mode, my function gets called using
(funcall mode). However this happens a few lines too late, because the
mode setter has already been inserted into the buffer, and so it is not
displayed using my font (see attached screen shot).
Kind regards,
Markus
[-- Attachment #2: ScreenShot.png --]
[-- Type: image/png, Size: 19123 bytes --]
[-- Attachment #3: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
next reply other threads:[~2005-05-27 16:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-27 16:54 Markus Gritsch [this message]
2005-05-28 11:53 ` Inserting "-*- mode: ..." before turning mode on in (compilation-start) Richard Stallman
2005-05-28 12:05 ` Markus Gritsch
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=429750D7.1080402@iue.tuwien.ac.at \
--to=gritsch@iue.tuwien.ac.at \
/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).