From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Subject: Re: text-mode-abbrev-table default? Date: Thu, 29 Oct 2009 08:24:16 +0000 Message-ID: References: <4AE769DC.1080604@online.de> <842ECF42-DA84-4EDA-801C-71F1F80B1695@gmail.com> <0039E199-5A6C-42E2-A4D9-A6EEBE6381B7@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N3QIz-0002S6-30 for emacs-orgmode@gnu.org; Thu, 29 Oct 2009 04:24:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N3QIu-0002PW-D9 for emacs-orgmode@gnu.org; Thu, 29 Oct 2009 04:24:24 -0400 Received: from [199.232.76.173] (port=59123 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3QIu-0002PQ-7j for emacs-orgmode@gnu.org; Thu, 29 Oct 2009 04:24:20 -0400 Received: from ppsw-7.csi.cam.ac.uk ([131.111.8.137]:37111) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N3QIt-0008TD-Jq for emacs-orgmode@gnu.org; Thu, 29 Oct 2009 04:24:20 -0400 In-Reply-To: <0039E199-5A6C-42E2-A4D9-A6EEBE6381B7@gmail.com> (Carsten Dominik's message of "Wed, 28 Oct 2009 16:30:32 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode@gnu.org On 2009-10-28 15:30 +0000, Carsten Dominik wrote: >> On 2009-10-28 09:19 +0000, Carsten Dominik wrote: >>> Because if I do tis by default, someone if going to want to have a >>> separate table.... :-) >>> You solution is good - a nice snippet for a FAQ, maybe? >> It seems natural to `define-abbrev-table' org-mode-abbrev-table with >> text-mode-abbrev-table being its parent ;) > > Hmm, after reconsidering, I think you are right. > > How exactly would that look like? Should that be a top-level form in > org.el? And should I then define org-mode with :abbrev-table > org-mode-abbrev- table ? > > Just make me a patch, and I will apply it. I make the following patch using the org.el in Emacs (cvs 20090922). diff -u -L /Applications/Emacs.app/Contents/Resources/lisp/org/org.el.gz -L /var/folders/b2/b2DGafs+EpaLFYrOC7ZWR++++TQ/-Tmp-/buffer-content-58096yEn /var/folders/b2/b2DGafs\+EpaLFYrOC7ZWR\+\+\+\+TQ/-Tmp-/jka-com58096_Ot /var/folders/b2/b2DGafs\+EpaLFYrOC7ZWR\+\+\+\+TQ/-Tmp-/buffer-content-58096yEn --- /Applications/Emacs.app/Contents/Resources/lisp/org/org.el.gz +++ /var/folders/b2/b2DGafs+EpaLFYrOC7ZWR++++TQ/-Tmp-/buffer-content-58096yEn @@ -4054,6 +4054,8 @@ (org-indent-mode 1)) (org-set-startup-visibility))) +(abbrev-table-put org-mode-abbrev-table + :parents (list text-mode-abbrev-table)) (put 'org-mode 'flyspell-mode-predicate 'org-mode-flyspell-verify) (defun org-current-time () Diff finished. Thu Oct 29 08:20:52 2009 > Thanks. > > - Carsten Best wishes, Leo -- Emacs uptime: 36 days, 23 hours, 32 minutes, 4 seconds