From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: outline-minor-mode-prefix doen't work? Date: Tue, 01 Nov 2005 16:38:43 +0100 Organization: Organization?!? Message-ID: <85wtjsped8.fsf@lola.goethe.zz> References: <87zmov5569.fsf@gmail.com> <878xwdpq1n.fsf@emacsfans.tsinghua.edu.cn> <87hdax2dm2.fsf-monnier+gnu.emacs.help@gnu.org> <85zmooshla.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1130857777 26544 80.91.229.2 (1 Nov 2005 15:09:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 1 Nov 2005 15:09:37 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 01 16:09:34 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EWxkC-0004DW-HZ for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Nov 2005 16:08:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EWxkB-0006NY-CG for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Nov 2005 10:08:11 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!newsfeed.arcor.de!news.arcor.de!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:LhJcENj2hdehe3Ud71+UaXZO6YA= Original-Lines: 52 Original-NNTP-Posting-Date: 01 Nov 2005 15:38:40 MET Original-NNTP-Posting-Host: c76c6cf3.newsread2.arcor-online.net Original-X-Trace: DXC=?O\?Y=C3h^:`T28h7Qn?D9BSA]5MOK` 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:30742 Archived-At: William Xu writes: > David Kastrup writes: > >> William Xu writes: >> >>> 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") > > Oh, here better be, > > (setq outline-minor-mode-prefix "\C-o") > > as an e.g. of changing the prefix. > >>> Then there's no chance to re-evaulate, >> >> defvar does not overwrite existing values. > > Yes. This is why placing (require 'outline) after > (setq outline-minor-mode-prefix "\C-o") works. I repeat Stefan's question: >>>> Why do you need to (require 'outline)? You don't need to load outline real fast for the setting of outline-minor-mode-prefix to have an effect. It is sufficient that it will be loaded at some point of time. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum