From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: text-mode-abbrev-table default? Date: Thu, 29 Oct 2009 12:48:46 +0100 Message-ID: <77B13FBE-A9E3-4B96-9DB9-ED53CF3BCA0D@gmail.com> References: <4AE769DC.1080604@online.de> <842ECF42-DA84-4EDA-801C-71F1F80B1695@gmail.com> <0039E199-5A6C-42E2-A4D9-A6EEBE6381B7@gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N3TUv-0004jH-Gl for emacs-orgmode@gnu.org; Thu, 29 Oct 2009 07:48:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N3TUq-0004ho-Ny for emacs-orgmode@gnu.org; Thu, 29 Oct 2009 07:48:56 -0400 Received: from [199.232.76.173] (port=59730 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3TUq-0004hj-IH for emacs-orgmode@gnu.org; Thu, 29 Oct 2009 07:48:52 -0400 Received: from mail-bw0-f215.google.com ([209.85.218.215]:46890) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N3TUp-0002fA-Ue for emacs-orgmode@gnu.org; Thu, 29 Oct 2009 07:48:52 -0400 Received: by bwz7 with SMTP id 7so2229237bwz.26 for ; Thu, 29 Oct 2009 04:48:51 -0700 (PDT) In-Reply-To: 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: Leo Cc: emacs-orgmode@gnu.org Applied, thanks. - Carsten On Oct 29, 2009, at 9:24 AM, Leo wrote: > 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 - Carsten