help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: outline-minor-mode-prefix doen't work?


From: William Xu
Subject: Re: outline-minor-mode-prefix doen't work?
Date: Tue, 01 Nov 2005 18:19:22 +0800
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>> has to be put before:
>> (require 'outline)
>
> Why do you need to (require 'outline)?

;; suppose in outline.el
(defvar outline-minor-mode-prefix "\C-c")

(defvar outline-minor-mode-keys
  (let ((map (make-sparse-keymap)))
    (define-key map "\C-n" 'outline-mode-next-heading)
    map))

(define-key outline-minor-mode-map
  outline-minor-mode-prefix
  outline-minor-mode-keys)

If outline.el is loaded before,

(setq outline-minor-mode-prefix "\C-c")

Then there's no chance to re-evaulate,

(define-key outline-minor-mode-map
  outline-minor-mode-prefix
  outline-minor-mode-keys)

to update keymaps, unless a forced `(require 'outline)' afterwards.

Just my guess...though.

-- 
William

((email . "address@hidden")
 (blog  . "http://matchsticker.mysmth.net";))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]