From: Carsten Dominik <carsten.dominik@gmail.com>
To: Leo <sdl.web@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: text-mode-abbrev-table default?
Date: Thu, 29 Oct 2009 12:48:46 +0100 [thread overview]
Message-ID: <77B13FBE-A9E3-4B96-9DB9-ED53CF3BCA0D@gmail.com> (raw)
In-Reply-To: <m0r5smy5e7.fsf@cam.ac.uk>
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
next prev parent reply other threads:[~2009-10-29 11:48 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
2009-10-29 11:48 ` Carsten Dominik [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=77B13FBE-A9E3-4B96-9DB9-ED53CF3BCA0D@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=sdl.web@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.