unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: kfogel@red-bean.com
Cc: Juanma Barranquero <lekktu@gmail.com>, Emacs Devel <emacs-devel@gnu.org>
Subject: Re: fundamental-mode-hook
Date: Thu, 08 Feb 2007 19:25:57 +0100	[thread overview]
Message-ID: <45CB6B35.3090203@gmail.com> (raw)
In-Reply-To: <87k5ysveyh.fsf@floss.red-bean.com>

Karl Fogel wrote:
> "Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:
>> Juanma Barranquero wrote:
>> I thought that a hook like (the now non-existent)
>> fundamental-mode-hook was meant for adding things for minor mode for
>> example.
>>
>> I can not really understand the rational for not having it. There can
>> still be minor mode active in a buffer with in fundamental-mode, or?
>>
>> (And currently Info is incorrect.)
> 
> I've added the hook now.  Thanks, Juanma Barranquero, for the timely
> archive pointers!
> 
>    2007-02-08  Karl Fogel  <kfogel@red-bean.com>
> 
> 	* emacs/lisp/simple.el (fundamental-mode-hook): Declare new hook.
> 	(fundamental-mode): Run the new dedicated hook, and don't run
> 	after-change-major-mode-hooks manually anymore.
> 
>    $ cvs ci -F msg simple.el ChangeLog
>    /cvsroot/emacs/emacs/lisp/simple.el,v  <--  simple.el
>    new revision: 1.844; previous revision: 1.843
>    /cvsroot/emacs/emacs/lisp/ChangeLog,v  <--  ChangeLog
>    new revision: 1.10663; previous revision: 1.10662
>    Mailing notification to emacs-commit@gnu.org... sent.
>    Mailing diffs to emacs-diffs@gnu.org... 2 sent.
>    $ 


Thanks. I just recompiled from CVS and tested. I can find the hook, but 
it does not seem to be run. Or I am doing something bad. This is what I 
used for testing:

(defun temp-fund()
   (message "temp-fund here")
   (sit-for 2))
(temp-fund)

(add-hook 'fundamental-mode-hook 'temp-fund)


(get-buffer-create "Test fund")

(with-temp-buffer
   (message "%s, major-mode=%s" (current-buffer) major-mode))

  reply	other threads:[~2007-02-08 18:25 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-08  0:38 fundamental-mode-hook Lennart Borgman (gmail)
2007-02-08 10:06 ` fundamental-mode-hook Karl Fogel
2007-02-08  1:13   ` fundamental-mode-hook Lennart Borgman (gmail)
2007-02-08 19:46     ` fundamental-mode-hook Richard Stallman
2007-02-08 22:29       ` fundamental-mode-hook Lennart Borgman (gmail)
2007-02-08 22:50         ` fundamental-mode-hook Stefan Monnier
2007-02-08 23:03           ` fundamental-mode-hook Lennart Borgman (gmail)
2007-02-08 22:55         ` fundamental-mode-hook Edward O'Connor
2007-02-08 23:05           ` fundamental-mode-hook Lennart Borgman (gmail)
2007-02-09 14:23         ` fundamental-mode-hook Richard Stallman
2007-02-08  1:30   ` fundamental-mode-hook Juanma Barranquero
2007-02-08  1:40     ` fundamental-mode-hook Lennart Borgman (gmail)
2007-02-08 15:36       ` fundamental-mode-hook Karl Fogel
2007-02-08 18:25         ` Lennart Borgman (gmail) [this message]
2007-02-08 19:45         ` fundamental-mode-hook Richard Stallman
2007-02-09  5:56           ` fundamental-mode-hook Karl Fogel
2007-02-08 19:46 ` fundamental-mode-hook Richard Stallman
2007-02-08 22:44   ` fundamental-mode-hook Lennart Borgman (gmail)
2007-02-09 14:23     ` fundamental-mode-hook Richard Stallman

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=45CB6B35.3090203@gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=kfogel@red-bean.com \
    --cc=lekktu@gmail.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 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).