From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Arndt Jonasson" Newsgroups: gmane.emacs.help Subject: Re: last-non-white-space-on-line Date: 5 Jun 2006 01:10:20 -0700 Organization: http://groups.google.com Message-ID: <1149495020.670542.324190@h76g2000cwa.googlegroups.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1149496943 19303 80.91.229.2 (5 Jun 2006 08:42:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 5 Jun 2006 08:42:23 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 05 10:42:21 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FnAfD-0001OF-P9 for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Jun 2006 10:42:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FnAfD-0005uw-7f for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Jun 2006 04:42:19 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!h76g2000cwa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-NNTP-Posting-Host: 83.241.162.138 Original-X-Trace: posting.google.com 1149495024 14079 127.0.0.1 (5 Jun 2006 08:10:24 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 5 Jun 2006 08:10:24 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060418 Firefox/1.0.8 (Ubuntu package 1.0.8),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: h76g2000cwa.googlegroups.com; posting-host=83.241.162.138; posting-account=Epb1Gg0AAABV4h2IjBnBaFjbY1WRP9jE Original-Xref: shelby.stanford.edu gnu.emacs.help:139706 Original-To: help-gnu-emacs@gnu.org 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:35330 Archived-At: 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.