From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Scott Frazer Newsgroups: gmane.emacs.help Subject: Re: remove all the whitespace characters from the cursor to the next symbol Date: Mon, 15 Mar 2010 19:56:13 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: 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: dough.gmane.org 1272994299 23098 80.91.229.12 (4 May 2010 17:31:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 May 2010 17:31:39 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 04 19:31:38 2010 connect(): No such file or directory 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.69) (envelope-from ) id 1O9Ly5-0000RU-C4 for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 19:31:37 +0200 Original-Received: from localhost ([127.0.0.1]:59247 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9Ly4-0006ej-MO for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 13:31:36 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!u9g2000yqb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 Original-NNTP-Posting-Host: 174.97.253.170 Original-X-Trace: posting.google.com 1268708173 31569 127.0.0.1 (16 Mar 2010 02:56:13 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 16 Mar 2010 02:56:13 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: u9g2000yqb.googlegroups.com; posting-host=174.97.253.170; posting-account=mTP6TAoAAADeO2EO3QMjJrmUPGLwlQy3 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100214 Ubuntu/9.10 (karmic) Firefox/3.5.8,gzip(gfe),gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:177477 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:72988 Archived-At: On Mar 15, 10:43=A0am, alex_sv wrote: > Hi all! > > Could you please clarify - is it possible to remove all the whitespace > characters including newline from the current cursor position to the > next meaningful symbol using one command? > > I mean if our buffer's content is as follows: > > texttexttext{cursor}___ > _ > ___text > > where '_' means space character, is it possible to press some known > key sequence to transform the given above to the following form: > > texttexttext{cursor}text > > Thanks in advance! (defun my-delete-whitespace-forward () (interactive) (delete-region (point) (progn (skip-chars-forward " \t\n") (point))))