[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: last-non-white-space-on-line
From: |
Arndt Jonasson |
Subject: |
Re: last-non-white-space-on-line |
Date: |
5 Jun 2006 01:10:20 -0700 |
User-agent: |
G2/0.2 |
Andreas Roehler wrote:
> is there a function known to jump to the last
> non-whitspace char in line - as (back-to-indentation)
> does in the other direction?
>
> Could write something like
>
> (defun last-non-white-space-on-line ()
> " "
> (interactive)
> (end-of-line)
> (skip-chars-backward "[ \t]"))
>
> Nonetheles, would prever to use an already existing
> macro.
Not one function of course, but I would do C-e M-\
This deletes the whitespace, but that's what I want to happen
anyway if I'm not adding more to the line.