all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: alex_sv <avshabanov@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: remove all the whitespace characters from the cursor to the next symbol
Date: Tue, 16 Mar 2010 02:58:16 -0700 (PDT)	[thread overview]
Message-ID: <bbab1ff8-3751-4eff-82af-01f574580764@v20g2000yqv.googlegroups.com> (raw)
In-Reply-To: c232dfdb-64fd-4458-af55-31b1598f4b22@u9g2000yqb.googlegroups.com

On Mar 16, 5:56 am, Scott Frazer <frazer.sc...@gmail.com> wrote:
> On Mar 15, 10:43 am, alex_sv <avshaba...@gmail.com> 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))))

Thank you, this works fine!
I didn't wrote the function because I thought this would be a
reinvention of some known feature I am not aware of.


  reply	other threads:[~2010-03-16  9:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-15 14:43 remove all the whitespace characters from the cursor to the next symbol alex_sv
2010-03-15 22:14 ` B. T. Raven
2010-03-16  1:59 ` despen
2010-03-16  2:56 ` Scott Frazer
2010-03-16  9:58   ` alex_sv [this message]
2010-05-07  3:34 ` Kevin Rodgers
2010-05-07 15:48   ` Sivaram Neelakantan
     [not found] <mailman.30.1273247412.2075.help-gnu-emacs@gnu.org>
2010-05-07 18:52 ` David Rogoff

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bbab1ff8-3751-4eff-82af-01f574580764@v20g2000yqv.googlegroups.com \
    --to=avshabanov@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.