From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: William Xu Newsgroups: gmane.emacs.help Subject: Re: outline-minor-mode-prefix doen't work? Date: Tue, 01 Nov 2005 18:19:22 +0800 Organization: the Church of Emacs Message-ID: <87k6fsk6vp.fsf@williamxwl.com> References: <87zmov5569.fsf@gmail.com> <878xwdpq1n.fsf@emacsfans.tsinghua.edu.cn> <87hdax2dm2.fsf-monnier+gnu.emacs.help@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1130844484 16015 80.91.229.2 (1 Nov 2005 11:28:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 1 Nov 2005 11:28:04 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 01 12:27:59 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EWuHj-0005OB-Nb for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Nov 2005 12:26:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EWuHg-0004cM-P3 for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Nov 2005 06:26:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EWtde-0003TJ-2l for help-gnu-emacs@gnu.org; Tue, 01 Nov 2005 05:45:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EWtdb-0003Sb-D3 for help-gnu-emacs@gnu.org; Tue, 01 Nov 2005 05:45:08 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EWtEi-0002H5-39 for help-gnu-emacs@gnu.org; Tue, 01 Nov 2005 05:19:26 -0500 Original-Received: from [59.66.131.181] (helo=williamxu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EWtEh-0004nl-TB for help-gnu-emacs@gnu.org; Tue, 01 Nov 2005 05:19:24 -0500 Original-Received: from williamxu ([127.0.0.1]) by williamxu with esmtp (Exim 3.36 #1 (Debian)) id 1EWtEi-0000XI-00 for ; Tue, 01 Nov 2005 18:19:24 +0800 Original-To: help-gnu-emacs@gnu.org In-Reply-To: <87hdax2dm2.fsf-monnier+gnu.emacs.help@gnu.org> (Stefan Monnier's message of "Mon, 31 Oct 2005 23:32:01 -0500") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:30737 Archived-At: Stefan Monnier 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 . "william.xwl@gmail.com") (blog . "http://matchsticker.mysmth.net"))