all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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.