emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Leo <sdl.web@gmail.com>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: text-mode-abbrev-table default?
Date: Thu, 29 Oct 2009 08:24:16 +0000	[thread overview]
Message-ID: <m0r5smy5e7.fsf@cam.ac.uk> (raw)
In-Reply-To: <0039E199-5A6C-42E2-A4D9-A6EEBE6381B7@gmail.com> (Carsten Dominik's message of "Wed, 28 Oct 2009 16:30:32 +0100")

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

  parent reply	other threads:[~2009-10-29  8:24 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-27 21:45 text-mode-abbrev-table default? Andreas Roehler
2009-10-28  9:19 ` Carsten Dominik
2009-10-28 10:32   ` Leo
2009-10-28 10:37     ` Carsten Dominik
2009-10-28 14:48       ` Leo
2009-10-28 15:30     ` Carsten Dominik
2009-10-28 17:10       ` Andreas Röhler
2009-10-29  8:24       ` Leo [this message]
2009-10-29 11:48         ` Carsten Dominik
2009-10-29 17:04           ` Leo
2009-10-29 17:19             ` Carsten Dominik
2009-10-28 16:11   ` Andreas Röhler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m0r5smy5e7.fsf@cam.ac.uk \
    --to=sdl.web@gmail.com \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).