all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: skip over whitespace in same column
Date: Mon, 22 Nov 2004 10:56:50 -0700	[thread overview]
Message-ID: <30enj5F2umqpqU1@uni-berlin.de> (raw)
In-Reply-To: <vw88y8tlst0.fsf@berry.phys.ntnu.no>

Albert Reiner wrote:
> is there a command to move point down (or up) over all lines where
> there is whitespace in the column of point?  E.g., invoking that
> command on the  "I" of the starting "IF" would get me to the "E" of
> "END IF" in the following:
> 
> ,----
> | IF (whatever) THEN
> |   foo
> |   bar
> | END IF
> `----
> 
> C-h a column RET did not return anything that looked useful to me.

Try this:

(defun forward-to-same-indentation ()
   "Move forward to the next line with the same indentation."
   (interactive)
   (let ((indentation (progn
                        (back-to-indentation)
                        (current-column))))
     (while (and (not (eobp))
                 (progn
                   (forward-to-indentation 1)
                   (/= (current-column) indentation))))
     (move-to-column indentation)))

-- 
Kevin Rodgers

  reply	other threads:[~2004-11-22 17:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-22 17:03 skip over whitespace in same column Albert Reiner
2004-11-22 17:56 ` Kevin Rodgers [this message]
2004-11-22 18:05   ` Albert Reiner

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=30enj5F2umqpqU1@uni-berlin.de \
    --to=ihs_4664@yahoo.com \
    /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.