From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.bugs Subject: bug#22147: Obsolete search-forward-lax-whitespace Date: Sat, 12 Dec 2015 00:44:19 +0000 Message-ID: References: <87wpsk7dcs.fsf@mail.linkov.net> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c348748c07240526a8bd67 X-Trace: ger.gmane.org 1449881117 31219 80.91.229.3 (12 Dec 2015 00:45:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Dec 2015 00:45:17 +0000 (UTC) Cc: 22147@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 12 01:45:11 2015 Return-path: Envelope-to: geb-bug-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 1a7YJB-0005Pm-RH for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Dec 2015 01:45:09 +0100 Original-Received: from localhost ([::1]:50056 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7YJA-00086i-PR for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Dec 2015 19:45:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48676) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7YJ7-00086a-IT for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2015 19:45:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a7YJ4-0000Hw-CQ for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2015 19:45:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34938) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7YJ4-0000Hs-9I for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2015 19:45:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1a7YJ4-0003jm-57 for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2015 19:45:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Artur Malabarba Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Dec 2015 00:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22147 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22147-submit@debbugs.gnu.org id=B22147.144988106714309 (code B ref 22147); Sat, 12 Dec 2015 00:45:02 +0000 Original-Received: (at 22147) by debbugs.gnu.org; 12 Dec 2015 00:44:27 +0000 Original-Received: from localhost ([127.0.0.1]:35207 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a7YIV-0003ij-Kv for submit@debbugs.gnu.org; Fri, 11 Dec 2015 19:44:27 -0500 Original-Received: from mail-lb0-f173.google.com ([209.85.217.173]:33704) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a7YIT-0003iW-UE for 22147@debbugs.gnu.org; Fri, 11 Dec 2015 19:44:26 -0500 Original-Received: by lbbkw15 with SMTP id kw15so79405777lbb.0 for <22147@debbugs.gnu.org>; Fri, 11 Dec 2015 16:44:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=27qenI9T49X8rFu/fDS0ozMEr2Qel+FyNU6C04qU4AE=; b=KLf1ktwsR8UWBPXohQ3t1u5WYCGfIEpk+/E6PtQbPeDna3TsD54qBJpooTzKA7k1It EdP1DQJSazw7PsigQ3+6GcMtqQXAPmCmCfPzBP+ohPelCZ/pZKz2l6g8e83BXZ9KeZHW LsI9TFqu+O9ZckE7Ez7MQLr6nGobVL5icR3uZaYm90xH2A7Vt808pYPJEn5myuALw+43 EiBqZeapqTig96lE/k6cSqxGFMWA1dJuM3IdivUiy0tD4JNYTWOkHXKlrGC5ILIeJQAu AsYBmggOwIx/sc+i1nsTMAJ3SePMuF+KAD9IQFfCfz35/BngHF/hP/QaAQpOlapzvya2 sW3g== X-Received: by 10.112.161.33 with SMTP id xp1mr8974877lbb.141.1449881059982; Fri, 11 Dec 2015 16:44:19 -0800 (PST) Original-Received: by 10.112.202.99 with HTTP; Fri, 11 Dec 2015 16:44:19 -0800 (PST) Original-Received: by 10.112.202.99 with HTTP; Fri, 11 Dec 2015 16:44:19 -0800 (PST) In-Reply-To: <87wpsk7dcs.fsf@mail.linkov.net> X-Google-Sender-Auth: HVmfCkYTjktZOjYvg7QUXhiBX-g X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:109877 Archived-At: --001a11c348748c07240526a8bd67 Content-Type: text/plain; charset=UTF-8 On 11 Dec 2015 11:52 pm, "Juri Linkov" wrote: > > It's not clear what to do with this customization now using > a replacement recommended in (make-obsolete old "instead, use (let > ((search-spaces-regexp search-whitespace-regexp)) (re-search-... ...))" The obsoletion message tells you what to use instead of search-forward-lax-whitespace, but that doesn't help you because you weren't using this function, you were overriding it (IIUC). Fortunately, I think you don't need to override anything at all. You can just set search-default-regexp-function to your #'search-whitespace-regexp. IIUC, that should have the same effect. --001a11c348748c07240526a8bd67 Content-Type: text/html; charset=UTF-8

On 11 Dec 2015 11:52 pm, "Juri Linkov" <juri@linkov.net> wrote:
>
> It's not clear what to do with this customization now using
> a replacement recommended in (make-obsolete old "instead, use (let
> ((search-spaces-regexp search-whitespace-regexp)) (re-search-... ...))"

The obsoletion message tells you what to use instead of search-forward-lax-whitespace, but that doesn't help you because you weren't using this function, you were overriding it (IIUC).

Fortunately, I think you don't need to override anything at all. You can just set search-default-regexp-function to your #'search-whitespace-regexp. IIUC, that should have the same effect.

--001a11c348748c07240526a8bd67--