unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* dabbrev problem...
@ 2007-09-13 19:51 cons
  2007-09-14 10:20 ` Andreas Röhler
       [not found] ` <mailman.853.1189765115.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 5+ messages in thread
From: cons @ 2007-09-13 19:51 UTC (permalink / raw)
  To: help-gnu-emacs

I really like and use the dabbrev feature of copying the following
words with SPC M-/ SPC M-/ ... etc. So much infact that I want to do a
command that saves me that extra SPC-press. Basically, the command
should just execute 'dabbrev-expand' if there is a SPC before point,
or else insert a SPC and then execute 'dabbrev-expand':

(defun complete-further (arg)
  "Insert space if necessary and then call dabbrev-expand."
  (interactive "*P")
  (if (not (eq (preceding-char) ?\s))
		(insert ?\s))
  (dabbrev-expand arg))

The only problem is that it ain't working :(

What am I doing wrong?

Best regards,

/Stefan

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-09-14 20:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-13 19:51 dabbrev problem cons
2007-09-14 10:20 ` Andreas Röhler
     [not found] ` <mailman.853.1189765115.18990.help-gnu-emacs@gnu.org>
2007-09-14 12:39   ` cons
2007-09-14 14:24     ` Andreas Röhler
     [not found]     ` <mailman.871.1189779748.18990.help-gnu-emacs@gnu.org>
2007-09-14 20:12       ` cons

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).