From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/13346 Path: main.gmane.org!not-for-mail From: Randal Schwartz Newsgroups: gmane.emacs.gnus.general Subject: who is unsetting local-abbrev-table in message.el? Date: 24 Dec 1997 11:07:48 -0700 Sender: owner-ding@hpc.uh.edu Message-ID: <8ciuselimj.fsf@gadget.cscaper.com> NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035152730 8841 80.91.224.250 (20 Oct 2002 22:25:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 22:25:30 +0000 (UTC) Return-Path: Original-Received: from xemacs.org (xemacs.cs.uiuc.edu [128.174.252.16]) by altair.xemacs.org (8.8.8/8.8.8) with ESMTP id KAA25987 for ; Wed, 24 Dec 1997 10:24:14 -0800 Original-Received: from sina.hpc.uh.edu (root@Sina.HPC.UH.EDU [129.7.3.5]) by xemacs.org (8.8.5/8.8.5) with ESMTP id MAA28708 for ; Wed, 24 Dec 1997 12:25:34 -0600 (CST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id MAJ24598; Wed, 24 Dec 1997 12:11:31 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 24 Dec 1997 12:08:35 -0600 (CST) Original-Received: from claymore.vcinet.com (claymore.vcinet.com [208.205.12.23]) by sina.hpc.uh.edu (8.7.3/8.7.3) with SMTP id MAA24585 for ; Wed, 24 Dec 1997 12:08:27 -0600 (CST) Original-Received: (qmail 1362 invoked by uid 504); 24 Dec 1997 18:08:11 -0000 Original-Received: (qmail 1359 invoked from network); 24 Dec 1997 18:08:11 -0000 Original-Received: from gadget.cscaper.com (206.67.186.3) by claymore.vcinet.com with SMTP; 24 Dec 1997 18:08:10 -0000 Original-Received: (from merlyn@localhost) by gadget.cscaper.com (8.8.3/8.8.3) id LAA14265; Wed, 24 Dec 1997 11:07:48 -0700 (MST) Original-To: ding@gnus.org Original-Lines: 31 X-Mailer: Quassia Gnus v0.13/Emacs 20.2 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:13346 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:13346 I got tired of typing the same things over and over again in my mail. I've never used abbrev modes before, but I scanned the elisp manual and "text-mode" enough to the point where I think I got it. So I added to my .gnus.el the following: (defun MERLYN-message-mode-hook () (define-abbrev-table 'message-mode-abbrev-table '( ("uwt" "http://www.stonehenge.com/merlyn/WebTechniques" nil 0) )) (setq local-abbrev-table message-mode-abbrev-table) (abbrev-mode 1)) (add-hook 'message-mode-hook 'MERLYN-message-mode-hook) And sure enough, the next time I went into message mode for a compose, mode-line says abbrev is on, message-mode-mode-abbrev-table looked fine, *but* local-abbrev-table was nil! How come? How many times do I have to set it? :-) I suppose the workaround is to add my abbrevs to the text-mode abbrev table (which it seems to want to do by default), but I'd rather not. It'd be nicer to understand why this doesn't work first. -- Name: Randal L. Schwartz / Stonehenge Consulting Services (503)777-0095 Keywords: Perl training, UNIX[tm] consulting, video production, skiing, flying Email: Snail: (Call) PGP-Key: (finger merlyn@ora.com) Web: My Home Page! Quote: "I'm telling you, if I could have five lines in my .sig, I would!" -- me