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 From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/13347 Path: main.gmane.org!not-for-mail From: Michael R Cook Newsgroups: gmane.emacs.gnus.general Subject: Re: who is unsetting local-abbrev-table in message.el? Date: 24 Dec 1997 13:31:57 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: References: <8ciuselimj.fsf@gadget.cscaper.com> NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035152730 8842 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) Cc: ding@gnus.org 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 KAA26026 for ; Wed, 24 Dec 1997 10:32:12 -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 MAA28714 for ; Wed, 24 Dec 1997 12:33:32 -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 MAJ24822; Wed, 24 Dec 1997 12:33:09 -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:32:29 -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 MAA24809 for ; Wed, 24 Dec 1997 12:32:23 -0600 (CST) Original-Received: (qmail 1447 invoked by uid 504); 24 Dec 1997 18:32:07 -0000 Original-Received: (qmail 1444 invoked from network); 24 Dec 1997 18:32:07 -0000 Original-Received: from cognex-bh.cognex.com (198.232.30.66) by claymore.vcinet.com with SMTP; 24 Dec 1997 18:32:06 -0000 Original-Received: (from uucp@localhost) by cognex-bh.cognex.com (8.6.12/8.6.11) id NAA28861; Wed, 24 Dec 1997 13:32:06 -0500 Original-Received: from isys.com by cognex-bh.cognex.com via smap (3.2) id xma028857; Wed, 24 Dec 97 13:32:03 -0500 Original-Received: from erawan.cognex.com (erawan.cognex.com [10.10.1.80]) by cognex.cognex.com (8.8.7/8.8.7) with ESMTP id NAA26426; Wed, 24 Dec 1997 13:32:01 -0500 (EST) Original-Received: by erawan.cognex.com (8.6.12/8.6.12) id NAA18712; Wed, 24 Dec 1997 13:31:58 -0500 Original-To: Randal Schwartz In-Reply-To: Randal Schwartz's message of "24 Dec 1997 11:07:48 -0700" Original-Lines: 20 X-Mailer: Quassia Gnus v0.18/Emacs 19.34 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:13347 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:13347 >>>>> "RS" == Randal Schwartz writes: RS> And sure enough, the next time I went into message mode for a compose, RS> mode-line says abbrev is on, message-mode-mode-abbrev-table looked RS> fine, *but* local-abbrev-table was nil! How come? For me, local-abbrev-table is setup correctly initially (typing C-h v local-abbrev-table immediately upon entering message mode, I see that the symbol is set as expected--non-nil), but type a little and check again, and the symbol has been magically set to nil. Typing, say, "xxx" is not enough to cause local-abbrev-table to become nil. But typing "xxx!" is (the "!" would cause abbrev expansion). Offhand, I'd guess that at the first attempt to expand an abbreviation, Emacs detects some kind of problem, and reacts by quietly setting local-abbrev-table to nil. Michael. From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/13348 Path: main.gmane.org!not-for-mail From: Michael R Cook Newsgroups: gmane.emacs.gnus.general Subject: Re: who is unsetting local-abbrev-table in message.el? Date: 24 Dec 1997 13:47:13 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: References: <8ciuselimj.fsf@gadget.cscaper.com> NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035152731 8843 80.91.224.250 (20 Oct 2002 22:25:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 22:25:31 +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 LAA26444 for ; Wed, 24 Dec 1997 11:00:57 -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 NAA28720 for ; Wed, 24 Dec 1997 13:02:17 -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 MAJ25030; Wed, 24 Dec 1997 12:48:53 -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:48:00 -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 MAA25017 for ; Wed, 24 Dec 1997 12:47:53 -0600 (CST) Original-Received: (qmail 1506 invoked by uid 504); 24 Dec 1997 18:47:37 -0000 Original-Received: (qmail 1503 invoked from network); 24 Dec 1997 18:47:37 -0000 Original-Received: from cognex-bh.cognex.com (198.232.30.66) by claymore.vcinet.com with SMTP; 24 Dec 1997 18:47:37 -0000 Original-Received: (from uucp@localhost) by cognex-bh.cognex.com (8.6.12/8.6.11) id NAA29104; Wed, 24 Dec 1997 13:47:35 -0500 Original-Received: from isys.com by cognex-bh.cognex.com via smap (3.2) id xma029101; Wed, 24 Dec 97 13:47:19 -0500 Original-Received: from erawan.cognex.com (erawan.cognex.com [10.10.1.80]) by cognex.cognex.com (8.8.7/8.8.7) with ESMTP id NAA26703; Wed, 24 Dec 1997 13:47:17 -0500 (EST) Original-Received: by erawan.cognex.com (8.6.12/8.6.12) id NAA18771; Wed, 24 Dec 1997 13:47:15 -0500 Original-To: Randal Schwartz , ding@gnus.org In-Reply-To: Michael R Cook's message of "24 Dec 1997 13:31:57 -0500" Original-Lines: 21 X-Mailer: Quassia Gnus v0.18/Emacs 19.34 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:13348 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:13348 >>>>> "MRC" == Michael R Cook writes: >>>>> "RS" == Randal Schwartz writes: RS> And sure enough, the next time I went into message mode for a compose, RS> mode-line says abbrev is on, message-mode-mode-abbrev-table looked RS> fine, *but* local-abbrev-table was nil! How come? MRC> For me, local-abbrev-table is setup correctly initially (typing C-h MRC> v local-abbrev-table immediately upon entering message mode, I see MRC> that the symbol is set as expected--non-nil), but type a little and MRC> check again, and the symbol has been magically set to nil. `mailabbrev.el' is the culprit. `sendmail-pre-abbrev-expand-hook' tries to dynamically select between two abbrev tables (mail-mode-abbrev-table and mail-abbrevs) based on point. So, you could put your abbrevs into `mail-mode-abbrev-table' rather than `message-mode-abbrev-table'. Dunno whether to call that a workaround or a fix. Michael. From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/13355 Path: main.gmane.org!not-for-mail From: Randal Schwartz Newsgroups: gmane.emacs.gnus.general Subject: Re: who is unsetting local-abbrev-table in message.el? Date: 24 Dec 1997 12:57:42 -0700 Sender: owner-ding@hpc.uh.edu Message-ID: <8c90tah5u1.fsf@gadget.cscaper.com> References: <8ciuselimj.fsf@gadget.cscaper.com> NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035152737 8871 80.91.224.250 (20 Oct 2002 22:25:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 22:25:37 +0000 (UTC) Cc: ding@gnus.org 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 MAA27416 for ; Wed, 24 Dec 1997 12:11:31 -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 OAA28837 for ; Wed, 24 Dec 1997 14:12:50 -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 NAJ26219; Wed, 24 Dec 1997 13:59:08 -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 13:58:31 -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 NAA26206 for ; Wed, 24 Dec 1997 13:58:25 -0600 (CST) Original-Received: (qmail 1783 invoked by uid 504); 24 Dec 1997 19:58:09 -0000 Original-Received: (qmail 1780 invoked from network); 24 Dec 1997 19:58:09 -0000 Original-Received: from gadget.cscaper.com (206.67.186.3) by claymore.vcinet.com with SMTP; 24 Dec 1997 19:58:09 -0000 Original-Received: (from merlyn@localhost) by gadget.cscaper.com (8.8.3/8.8.3) id MAA15674; Wed, 24 Dec 1997 12:57:42 -0700 (MST) Original-To: Michael R Cook In-Reply-To: Michael R Cook's message of "24 Dec 1997 13:47:13 -0500" Original-Lines: 22 X-Mailer: Quassia Gnus v0.13/Emacs 20.2 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:13355 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:13355 >>>>> "Michael" == Michael R Cook writes: Michael> So, you could put your abbrevs into `mail-mode-abbrev-table' rather Michael> than `message-mode-abbrev-table'. Dunno whether to call that a Michael> workaround or a fix. And, in further observation, the mailabbrev.el also sets the syntax table to mail-mode-syntax-table. So, neither message-abbrev-table nor message-mode-syntax-table are being used, except for the first few proper keystrokes in the body. Some would call this a bug. Others, an unfortunate collision of message-mode trying to completely override mail-mode. How to resolve? -- 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 From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/13387 Path: main.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: who is unsetting local-abbrev-table in message.el? Date: 04 Jan 1998 10:44:47 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: <8ciuselimj.fsf@gadget.cscaper.com> <8c90tah5u1.fsf@gadget.cscaper.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035152763 9053 80.91.224.250 (20 Oct 2002 22:26:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 22:26:03 +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 BAA23991 for ; Sun, 4 Jan 1998 01:49:05 -0800 Original-Received: from farabi.hpc.uh.edu (farabi.hpc.uh.edu [129.7.102.2]) by xemacs.org (8.8.5/8.8.5) with ESMTP id DAA13937 for ; Sun, 4 Jan 1998 03:49:34 -0600 (CST) Original-Received: from sina.hpc.uh.edu ([10.1.1.1]) by farabi.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id LAN14655; Thu, 1 Jan 1998 11:42:06 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 04 Jan 1998 03:32:39 -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 DAA18214 for ; Sun, 4 Jan 1998 03:31:59 -0600 (CST) Original-Received: (qmail 26991 invoked by uid 504); 4 Jan 1998 09:31:48 -0000 Original-Received: (qmail 26983 invoked from network); 4 Jan 1998 09:31:46 -0000 Original-Received: from xyplex11.uio.no (HELO sparky.gnus.org) (129.240.154.31) by claymore.vcinet.com with SMTP; 4 Jan 1998 09:31:44 -0000 Original-Received: (from larsi@localhost) by sparky.gnus.org (8.8.5/8.8.5) id KAA11671; Sun, 4 Jan 1998 10:59:16 +0100 Mail-Copies-To: never Original-To: ding@gnus.org In-Reply-To: Randal Schwartz's message of "24 Dec 1997 12:57:42 -0700" X-Mailer: Quassia Gnus v0.19/XEmacs 19.15 X-Face: &w!^oO~dS|}-P0~ge{$c!h\ writes: > And, in further observation, the mailabbrev.el also sets the syntax > table to mail-mode-syntax-table. So, neither message-abbrev-table nor > message-mode-syntax-table are being used, except for the first few > proper keystrokes in the body. > > Some would call this a bug. Others, an unfortunate collision of > message-mode trying to completely override mail-mode. > > How to resolve? Hm. I don't know. Anybody have any suggestions? -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen