help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dabbrev problem...


From: Andreas Röhler
Subject: Re: dabbrev problem...
Date: Fri, 14 Sep 2007 12:20:55 +0200
User-agent: KMail/1.8.2

Am Donnerstag, 13. September 2007 21:51 schrieb cons:
> (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))



What about this:

(defun dabbrev-expand-before-point (arg)
  (interactive "*p")
    (skip-chars-backward " \t\r\n\f")
    (dabbrev-expand arg)
  (unless (eq (preceding-char) ?\ )
    (insert " ")))

Andreas Röhler





reply via email to

[Prev in Thread] Current Thread [Next in Thread]