From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: gebser@ameritech.net Newsgroups: gmane.emacs.help Subject: Re: What's a better regexp for 'sentence-end' variable?? Date: Wed, 19 Feb 2003 15:42:50 -0500 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <3E52B9B3.3000306@ihs.com> Reply-To: gebser@ameritech.net NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1045687923 17304 80.91.224.249 (19 Feb 2003 20:52:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 19 Feb 2003 20:52:03 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18lbCA-0004U3-00 for ; Wed, 19 Feb 2003 21:51:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18lbAd-0001uP-04 for gnu-help-gnu-emacs@m.gmane.org; Wed, 19 Feb 2003 15:50:23 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.teledanmark.no!uninett.no!uio.no!quimby.gnus.org!heidegger.mousecar.net!ken Original-Newsgroups: gnu.emacs.help Original-Lines: 57 Original-NNTP-Posting-Host: adsl-65-43-210-108.dsl.bcvloh.ameritech.net Original-X-Trace: quimby.gnus.org 1045688185 28434 65.43.210.108 (19 Feb 2003 20:56:25 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 19 Feb 2003 20:56:25 GMT In-Reply-To: <3E52B9B3.3000306@ihs.com> Original-Xref: shelby.stanford.edu gnu.emacs.help:110403 X-Originally-To: Kevin Rodgers Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:6905 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6905 Hey, guys, Thanks for all the suggestions. For some reason, though the function works, none of the commands to assign it to "M-e" have worked: (require 'sgml-mode) ;before the `define-key'-expression in .emacs (eval-after-load 'sgml-mode (define-key sgml-mode-map (kbd "M-e") 'my-html-forward-sentence)) (add-hook 'sgml-mode-hook (lambda () (local-set-key (kbd "M-e") 'my-html-forward-sentence))) (define-key sgml-mode-map (kbd "M-e") 'my-html-forward-sentence) I've tried the first with each of the last four, reloading emacs for each attempt, and M-e stubbornly remains mapped to the standard "sentence-end". Is it possible that something in my .emacs is loading html-helper-mode after the above and overwriting the key definition? Regardos, ken Kevin Rodgers at 15:54 (UTC-0700) on Tue, 18 Feb 2003 said: = [Please don't top-post: http://www.aglami.com/tpfaq.html] = = gebser@ameritech.net wrote: = = > Oliver Scholz at 15:06 (UTC+0100) on Tue, 18 Feb 2003 said: = > = (define-key sgml-mode-map (kbd "M-e") 'my-html-forward-sentence) = > = > The question now is how to have this load when emacs loads. I put it in = > .emacs, reloaded, and got an error: = > = > Error in init file: Symbol's value as variable is void: sgml-mode-map = > = > This is because it's not in the path. = = No it's not. = = > So how do I get it in the path? = = (eval-after-load "sgml-mode" '(progn ...)) = = or = = (add-hook 'sgml-mode-hook = (lambda () (local-set-key (kbd "M-e") 'my-html-forward-sentence))) = =