From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: PJ Weisberg Newsgroups: gmane.emacs.help Subject: Re: two function requests Date: Wed, 1 Aug 2012 09:24:49 -0700 Message-ID: References: <34241363.post@talk.nabble.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1343838308 1812 80.91.229.3 (1 Aug 2012 16:25:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Aug 2012 16:25:08 +0000 (UTC) Cc: Help-gnu-emacs@gnu.org To: drain Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 01 18:25:05 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 1SwbjJ-0001dj-7m for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Aug 2012 18:25:01 +0200 Original-Received: from localhost ([::1]:46747 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwbjI-0006Gp-C7 for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Aug 2012 12:25:00 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34926) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwbjB-00068P-2U for Help-gnu-emacs@gnu.org; Wed, 01 Aug 2012 12:24:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Swbj9-0007RT-Qt for Help-gnu-emacs@gnu.org; Wed, 01 Aug 2012 12:24:52 -0400 Original-Received: from mail-lb0-f169.google.com ([209.85.217.169]:62781) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Swbj9-0007Ql-Gl for Help-gnu-emacs@gnu.org; Wed, 01 Aug 2012 12:24:51 -0400 Original-Received: by lbjn8 with SMTP id n8so510214lbj.0 for ; Wed, 01 Aug 2012 09:24:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=UHD+IdPxQ2QCGi0ZYyNWi7IotOvEDh/ltIv6lZQ9NYM=; b=uihFJh4y761Pq1eYwYJob3r9F6k/ZYoDu0djbe2lkfO7e6j9XkCbIA/b8zBx9uS8WA 4VNemOGQY5qtHF/EFc2GqEf8qAj2TZL74B1v7U6QMTE5f/7/7tKkXtofz93ZA+KaL14k n4YXK6QBKfN/vN2oshsPX8T0gSlZ8wFmw4SVuX1lsQ7D67lKzJ7DQ4+ZGYzxU4jws2ue bkCVwP3q6fvh8MpO4XzcCprGQ2MEwEtG7wK/oEqIjr/3GMUMU5LmrmTPAQl7xq5IF+Z3 v66WqD53/8Ce0Z7PjI7miWoGT6gBaHe/XkpDbqtU5CJQBcr7l91BFeoHzzxIx8LeiIUv kEog== Original-Received: by 10.152.146.163 with SMTP id td3mr18920795lab.26.1343838289904; Wed, 01 Aug 2012 09:24:49 -0700 (PDT) Original-Received: by 10.112.5.102 with HTTP; Wed, 1 Aug 2012 09:24:49 -0700 (PDT) In-Reply-To: <34241363.post@talk.nabble.com> X-Google-Sender-Auth: U2Fv2sJ-Ju7H-hwP3Bn8GQ_9-yo X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.217.169 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:86149 Archived-At: On Wed, Aug 1, 2012 at 8:45 AM, drain wrote: > > (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. `replace-string' (see also `replace-regexp') The second argument can be an empty string. It only replaces strings *after* point, so you would have to move to the beginning of the buffer first. -PJ Gehm's Corollary to Clark's Law: Any technology distinguishable from magic is insufficiently advanced.