unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ilya Zakharevich <ilya@math.berkeley.edu>
To: Leo <sdl.web@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: abbrev table in cperl-mode
Date: Fri, 16 Apr 2010 12:12:07 -0700	[thread overview]
Message-ID: <20100416191207.GA9408@powdermilk.math.berkeley.edu> (raw)
In-Reply-To: <xbai8w8nr62e.fsf@cam.ac.uk>

On Fri, Apr 16, 2010 at 12:27:05PM +0100, Leo wrote:
> Hello Ilya,
> 
> Is it intended for the abbrevs defined in cperl-mode to be saved to the
> abbrev file i.e. these:
> 
> ......
> (let ((prev-a-c abbrevs-changed))
>     (define-abbrev-table 'cperl-mode-abbrev-table '(
> 		("if" "if" cperl-electric-keyword 0)
> 		("elsif" "elsif" cperl-electric-keyword 0)
> 		("while" "while" cperl-electric-keyword 0)
> 		("until" "until" cperl-electric-keyword 0)
> 		("unless" "unless" cperl-electric-keyword 0)
> 		("else" "else" cperl-electric-else 0)
> 		("continue" "continue" cperl-electric-else 0)
> 		("for" "for" cperl-electric-keyword 0)
> 		("foreach" "foreach" cperl-electric-keyword 0)
> 		("formy" "formy" cperl-electric-keyword 0)
> 		("foreachmy" "foreachmy" cperl-electric-keyword 0)
> 		("do" "do" cperl-electric-keyword 0)
> 		("=pod" "=pod" cperl-electric-pod 0)
> 		("=over" "=over" cperl-electric-pod 0)
> 		("=head1" "=head1" cperl-electric-pod 0)
> 		("=head2" "=head2" cperl-electric-pod 0)
> 		("pod" "pod" cperl-electric-pod 0)
> 		("over" "over" cperl-electric-pod 0)
> 		("head1" "head1" cperl-electric-pod 0)
> 		("head2" "head2" cperl-electric-pod 0)))
> 	(setq abbrevs-changed prev-a-c))
> ......
> 
> It seems a bit better to define them as system abbrevs.

I trust your word for this.  ;-)  What you see is the "I implemented
it the way I could - given my very limited understanding of
abbreviation tables" approach.

Try to educate me more,
Ilya





  reply	other threads:[~2010-04-16 19:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-16 11:27 abbrev table in cperl-mode Leo
2010-04-16 19:12 ` Ilya Zakharevich [this message]
2010-04-16 20:11   ` Leo
2010-04-17  4:48     ` Ilya Zakharevich
2010-04-17 11:21       ` Leo
2010-04-17 14:42       ` Stefan Monnier

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.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=20100416191207.GA9408@powdermilk.math.berkeley.edu \
    --to=ilya@math.berkeley.edu \
    --cc=emacs-devel@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.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).