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#20307: 25.0.50; (regexp-opt nil ...) returns "" Date: Mon, 13 Apr 2015 15:08:25 +0100 Message-ID: References: <876191vfou.fsf@fencepost.gnu.org> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1428934184 5188 80.91.229.3 (13 Apr 2015 14:09:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Apr 2015 14:09:44 +0000 (UTC) Cc: 20307@debbugs.gnu.org To: David Kastrup Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 13 16:09:32 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 1Yhf3E-0005Dm-HK for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Apr 2015 16:09:24 +0200 Original-Received: from localhost ([::1]:52035 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yhf3D-0008MS-RE for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Apr 2015 10:09:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51968) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yhf2z-00085r-Gg for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2015 10:09:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yhf2t-0008Pf-1a for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2015 10:09:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37080) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yhf2s-0008PV-Uh for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2015 10:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Yhf2s-0003X7-Mt for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2015 10:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Artur Malabarba Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Apr 2015 14:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20307 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20307-submit@debbugs.gnu.org id=B20307.142893411413526 (code B ref 20307); Mon, 13 Apr 2015 14:09:02 +0000 Original-Received: (at 20307) by debbugs.gnu.org; 13 Apr 2015 14:08:34 +0000 Original-Received: from localhost ([127.0.0.1]:55085 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yhf2P-0003W5-Bt for submit@debbugs.gnu.org; Mon, 13 Apr 2015 10:08:33 -0400 Original-Received: from mail-lb0-f176.google.com ([209.85.217.176]:35487) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yhf2N-0003Vg-Cc for 20307@debbugs.gnu.org; Mon, 13 Apr 2015 10:08:31 -0400 Original-Received: by lbbuc2 with SMTP id uc2so59488782lbb.2 for <20307@debbugs.gnu.org>; Mon, 13 Apr 2015 07:08:25 -0700 (PDT) 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=WU4NFVl7nRUERs+D8eOXFI3DzcnnV25rKAl0BQA48Bw=; b=L1HwBmm2B8C8FVPYYjUTMnkHpsguCycbwWZuyKyespRdwBLe5aElvIOz6BKBAsflOn w8f+Kgs4PTYE27V32m4Gl+wOlXXLqH4F3eNNBO/D7SiurbhRG2d5jtOTgbPrQVV8lPO9 cWUBG1ESqsYdHC3kNp7oLvsF+1yuw5owv+9j8ltg7GPPs/417Er+kc+TvYFyqQOT6iQU 90MtmGcpZPHKtNKMbo5BsXHnYOPqygdKbmWrRk4UVsVGKN9FIT9nwaofcYFhEVH06WIR pCHP5FWjqvt5cXYXoNoezR9WW7O2AqjXj1ZdudpNWBHGwQ37fRpaOpTBimL1Djfesbgo GDOA== X-Received: by 10.152.2.105 with SMTP id 9mr11727230lat.16.1428934105480; Mon, 13 Apr 2015 07:08:25 -0700 (PDT) Original-Received: by 10.25.150.131 with HTTP; Mon, 13 Apr 2015 07:08:25 -0700 (PDT) In-Reply-To: <876191vfou.fsf@fencepost.gnu.org> X-Google-Sender-Auth: aFVN-922alEouPxP0d4c4OsHTWc X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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:101475 Archived-At: 2015-04-12 10:50 GMT+01:00 David Kastrup > Both > > M-: (regexp-opt nil) RET > > and > > M-: (regexp-opt nil t) RET > > return "". However, they should return a regexp matching nothing > rather than everything, and the second invocation should also count as > one () pairing. I agree there should be () on the second one, but I strongly disagree they should match nothing. regexp-opt is NOT meant to match only the given strings. It is meant to match anything containing the given strings. There is a very fundamental difference in that. The less strings you pass to regexp-opt, the MORE things the regexp will match. Why would we suddently flip that on its head when going from 1 to 0 strings?