From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexis Newsgroups: gmane.emacs.help Subject: Re: Emacs lisp question Date: Tue, 19 Apr 2016 21:59:05 +1000 Message-ID: <874maxbyie.fsf@gmail.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: ger.gmane.org 1461067175 26206 80.91.229.3 (19 Apr 2016 11:59:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Apr 2016 11:59:35 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Matthias Pfeifer Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 19 13:59:30 2016 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 1asUJV-0000MV-Ae for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Apr 2016 13:59:29 +0200 Original-Received: from localhost ([::1]:56638 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asUJU-0001xO-JZ for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Apr 2016 07:59:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asUJH-0001un-1v for help-gnu-emacs@gnu.org; Tue, 19 Apr 2016 07:59:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1asUJD-0008Re-SC for help-gnu-emacs@gnu.org; Tue, 19 Apr 2016 07:59:15 -0400 Original-Received: from mail-pf0-x22d.google.com ([2607:f8b0:400e:c00::22d]:34722) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asUJD-0008RI-LF for help-gnu-emacs@gnu.org; Tue, 19 Apr 2016 07:59:11 -0400 Original-Received: by mail-pf0-x22d.google.com with SMTP id c20so6276126pfc.1 for ; Tue, 19 Apr 2016 04:59:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=kTtWSCCTeGb5ZAoe4lMoYBxEspBH11P3zUoa29mQDEE=; b=nE+RT+Nj+dXYP8WzTjvM23ikbXbPkX1cVTXV2EkIyLqlJUCZ/Qvmrmn4JZ9EqjITiW khno0B3P5jkAWrKiWbB38Ksmb+BB9xLdtGlWthfW6SDxgz7eZu7CYj+bIfj6GCJ+Tsgz 91E1LoYfcx9fl9uZKkLvrG5wwNPEOLN1w2wxGEtVX581IUNiZBT0snLz2UPhLCh5rnD/ YPkBFwI2xVL/LXmshMJ652/LFtqZjFQY0r+QGi34F2O8Z0cpE0GrvIobFiyAeaG5zloY dB8ch/ipZgo0BaOc9jf5s/Cr2eqUl8v0aeapq36N1UCm+foWA3H5vg2K2RH5Fv3skDez NV1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=kTtWSCCTeGb5ZAoe4lMoYBxEspBH11P3zUoa29mQDEE=; b=heQ1Cte7M+YdiNjVq6lu9TkPSKn5yX1V8z16BSgBNgKVsh/Z5XLA0ml80yyQ6kpusc /fpALF6NPhIUR4UUcIjl9gLxHZgLM3cHWJQgH6IwRGi48/OZF4MleT6piK6B11z/BtVM bHPlXtUwEf97hmbhWAtkDSEJEFhDD6k45ZhnaunANbee39Uv2IK5gf6HtP5pkJAfcKZJ 1X/dvEcm8T+vJATnCaLCaeq8PHju0IG4yxG8JUeqzk1WMZy2jFlMkq7142Vlrf6wKcI6 TcVRnDOAaHANMZ2I4N9zCsBabAe9ezZ0c6pMqooCqVFB9MxC0CO99w+4cQWLfCgt4rp7 HlZg== X-Gm-Message-State: AOPr4FXik77EuHI28zDrM7YMScqgK3KVxqbB5+9AMuj6z/1GZjnooL920oUcwTbREzYBUw== X-Received: by 10.98.100.200 with SMTP id y191mr3487306pfb.84.1461067150519; Tue, 19 Apr 2016 04:59:10 -0700 (PDT) Original-Received: from localhost (124-168-216-210.dyn.iinet.net.au. [124.168.216.210]) by smtp.gmail.com with ESMTPSA id a77sm44609610pfj.2.2016.04.19.04.59.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Apr 2016 04:59:09 -0700 (PDT) User-agent: mu4e 0.9.16; emacs 24.5.3 In-reply-to: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c00::22d X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:109793 Archived-At: Matthias Pfeifer writes: > (while (search-forward "CLASSNAME" nil t) > (replace-match classname)) > (goto-char (point-min)) (while (search-forward "PACKAGE" nil > t) > (replace-match packagename) ) ) ) Does changing these two calls to `replace-match` to: (replace-match classname t) and (replace-match packagename t) respectively, fix the issue? Alexis.