From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas =?iso-8859-1?q?R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: dabbrev problem... Date: Fri, 14 Sep 2007 12:20:55 +0200 Message-ID: <200709141220.56405.andreas.roehler@online.de> References: <1189713098.097690.296390@22g2000hsm.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1189765722 9992 80.91.229.12 (14 Sep 2007 10:28:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 14 Sep 2007 10:28:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 14 12:28:40 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IW8Pc-0007eK-3i for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Sep 2007 12:28:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IW8Pb-0001Zq-GB for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Sep 2007 06:28:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IW8Fq-0005ZU-J2 for help-gnu-emacs@gnu.org; Fri, 14 Sep 2007 06:18:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IW8Fo-0005Yo-LL for help-gnu-emacs@gnu.org; Fri, 14 Sep 2007 06:18:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IW8Fo-0005Yd-CT for help-gnu-emacs@gnu.org; Fri, 14 Sep 2007 06:18:28 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.183]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IW8Fn-0004Mc-Un for help-gnu-emacs@gnu.org; Fri, 14 Sep 2007 06:18:28 -0400 Original-Received: from p54BE8BC3.dip0.t-ipconnect.de [84.190.139.195] (helo=karton) by mrelayeu.kundenserver.de (node=mrelayeu1) with ESMTP (Nemesis), id 0MKwpI-1IW8Fm26zI-00029z; Fri, 14 Sep 2007 12:18:26 +0200 User-Agent: KMail/1.8.2 In-Reply-To: <1189713098.097690.296390@22g2000hsm.googlegroups.com> Content-Disposition: inline X-Provags-ID: V01U2FsdGVkX19PC9PJ+SOZuxQiHoy8haaO+B/jhj1lmTD4s1Z yhozmHh0qbpKWowr+EporbLlfgXNTynQSIXu8AdwaZ4pEOLUsv OtlgsYAJTTGOW3PnOM2cQ== X-Detected-Kernel: Linux 2.6? (barebone, rare!) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:47581 Archived-At: Am Donnerstag, 13. September 2007 21:51 schrieb cons: > (defun complete-further (arg) > =A0 "Insert space if necessary and then call dabbrev-expand." > =A0 (interactive "*P") > =A0 (if (not (eq (preceding-char) ?\s)) > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0(insert ?\s)) > =A0 (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=F6hler