From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Maftei Newsgroups: gmane.emacs.help Subject: RE: two function requests Date: Wed, 1 Aug 2012 17:28:03 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d043be0d6a19a2e04c636c803 X-Trace: dough.gmane.org 1343838517 3632 80.91.229.3 (1 Aug 2012 16:28:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Aug 2012 16:28:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 01 18:28:38 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Swbmn-0003b6-Cb for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Aug 2012 18:28:37 +0200 Original-Received: from localhost ([::1]:51260 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Swbmm-0000On-NP for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Aug 2012 12:28:36 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36375) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Swbme-0000OQ-9a for help-gnu-emacs@gnu.org; Wed, 01 Aug 2012 12:28:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Swbma-0000bd-6u for help-gnu-emacs@gnu.org; Wed, 01 Aug 2012 12:28:28 -0400 Original-Received: from mail-vb0-f41.google.com ([209.85.212.41]:55352) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Swbma-0000bS-2J for help-gnu-emacs@gnu.org; Wed, 01 Aug 2012 12:28:24 -0400 Original-Received: by vbkv13 with SMTP id v13so8119454vbk.0 for ; Wed, 01 Aug 2012 09:28:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=b7nM+NImb8Lfa1R59qLRYoOEWhhfLIvk4yB6FN6UvdI=; b=prFZaqepDG0voW6PVUkWj6yvZarb4vESvRMtDgf+7tJHdQM7VqhvAJ3vwH+85sYqbI wQ0SoX1W9TgOfWtJq4mjAyEjgtB7Uqa0ziq7AIRufpGFbdJWEAdnF6ELrEi6QQUu0o3c 035uNunG1RA9/t5FkjNOBLw6dLAGepDvvhaR+P/qo/bgaTR/x+80tgW2CFeKQ0JEu9p9 sbQQt9tEgJVIWPyUKHdB8nmjE3FMPntu3upufMP8RbYb5mNsOOWufRucfuhhwKX7+os8 5xnjlVBIjCzB3Usfz23lFe+/XRuXuhDAuijHaq2gRurPeAe20BEFfZNYKSraoZEl+JPz 9AcQ== Original-Received: by 10.220.152.138 with SMTP id g10mr17523243vcw.14.1343838503409; Wed, 01 Aug 2012 09:28:23 -0700 (PDT) Original-Received: by 10.59.0.98 with HTTP; Wed, 1 Aug 2012 09:28:03 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.212.41 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86150 Archived-At: --f46d043be0d6a19a2e04c636c803 Content-Type: text/plain; charset=UTF-8 > > From: drain > To: Help-gnu-emacs@gnu.org > Cc: > Date: Wed, 1 Aug 2012 08:45:39 -0700 (PDT) > Subject: two function requests > > (1) A command that deletes every instance of a certain char, e.g., "_" is > entered and every "_" is deleted from the text. Would be very useful when > formatting pdfs into orgs. > query-replace (M-%) and replace-regexp will do this for you, if you do not enter anything in the replace string: M-% _ > > (2) (forward-clause), (backward-clause) commands, which would be much more > useful than (forward-sentence), (backward-sentence), particularly when > formatting / reading pre-20th century literature, with its page-length > Herman Melville sentences. > > I suppose a function that sets point to next comma is what I am looking > for, > even if I'd be stuck incrementally moving inside of lists from time to > time. > Adapt forward-sentence and backward-sentence to your needs. C-h f function-name will give you a link to the function code. Should be a fun little project if you're new to emacs lisp (like I am!) Dan --f46d043be0d6a19a2e04c636c803 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
From:=C2=A0drain = <aeuster@gmail.com>
To:= =C2=A0Help-gnu-emacs@gnu.org<= br> Cc:=C2=A0
Date:=C2=A0Wed, 1 Aug 2012 08:45:39 -0700 (PDT)
Subject:=C2= =A0two function requests

(1) A command that deletes every instance of a certain char, e.g., "_&= quot; is
entered and every "_" is deleted from the text. Would be very use= ful when
formatting pdfs into orgs.

query-replac= e (M-%) and replace-regexp will do this for you, if you do not enter anythi= ng in the replace string:

M-% _ <RET> <RE= T>
=C2=A0

(2) (forward-clause), (backward-clause) commands, which would be much more<= br> useful than (forward-sentence), (backward-sentence), particularly when
formatting / reading pre-20th century literature, with its page-length
Herman Melville sentences.

I suppose a function that sets point to next comma is what I am looking for= ,
even if I'd be stuck incrementally moving inside of lists from time to = time.

Adapt forward-sentence and backwa= rd-sentence to your needs. C-h f <RET> function-name will give you a = link to the function code. Should be a fun little project if you're new= to emacs lisp (like I am!)

Dan
--f46d043be0d6a19a2e04c636c803--