all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: junktotrash@hotmail.com (FRC)
Subject: Re: tempo in JDE: completion with <spc>
Date: 18 Sep 2003 02:47:18 -0700	[thread overview]
Message-ID: <c5e618ac.0309180147.2b183966@posting.google.com> (raw)
In-Reply-To: b607d812.0309162129.4d019ab1@posting.google.com

sandipchitale@yahoo.com (Sandip Chitale) wrote in message news:<b607d812.0309162129.4d019ab1@posting.google.com>...
> Can you share the code with us?
> 
> thanks,
> sandip
> 
> "FRC" <frc--NoSpAm--@myrealbox.com> wrote in message news:<bk7pi5$e3f$1@news-reader1.wanadoo.fr>...
> > I found out that a 'no-self-insert property can be put in the plist of the
> > symbol present in the function cell of the entry in the abbrev
> > table/obarray. If the function returns non-nil, the char is discarded -
> > which is exactly what I was looking for.
> > 
> > FRC

It goes like this in the jde-mode-hook of my .emacs:

 (mapatoms 
  (lambda (symb) (and (symbolp (symbol-function symb)) (string-match
"tempo-template-jde-gen" (symbol-name (symbol-function symb))) (put
(symbol-function symb) 'no-self-insert t)))
			  local-abbrev-table)

I'm still an Emacs-Lisp rookie, so there might be a better way to get
the same result.
Note that it somewhat messed with completions within comments, as in
these cases I do want the space insertion but the expansion (even if
void) eats it unconditionally. This is a minor pb AFAIC and quoting
with C-q does the job.

HTH,

FRC

      reply	other threads:[~2003-09-18  9:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-12  0:41 tempo in JDE: completion with <spc> FRC
2003-09-16 19:50 ` FRC
2003-09-17  5:29   ` Sandip Chitale
2003-09-18  9:47     ` FRC [this message]

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=c5e618ac.0309180147.2b183966@posting.google.com \
    --to=junktotrash@hotmail.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.