GNU bug report logs - #19208
replace-match unhelpful error message

Previous Next

Package: emacs;

Reported by: phillip.lord <at> newcastle.ac.uk (Phillip Lord)

Date: Fri, 28 Nov 2014 17:01:02 UTC

Severity: minor

Tags: fixed

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #39 received at 19208 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: Phillip Lord <phillip.lord <at> newcastle.ac.uk>,
 Lars Ingebrigtsen <larsi <at> gnus.org>, 19208 <at> debbugs.gnu.org,
 Paul Eggert <eggert <at> cs.ucla.edu>
Subject: Re: bug#19208: replace-match unhelpful error message
Date: Sun, 04 Aug 2019 10:12:06 -0400
Andreas Schwab <schwab <at> linux-m68k.org> writes:

> On Aug 03 2019, Noam Postavsky <npostavs <at> gmail.com> wrote:
>
>> People might say things like "your height must be between 120 and 200 cm
>> to ride this roller coaster"
>
> This still puts "height" (the variable) first.

Lars Ingebrigtsen <larsi <at> gnus.org> writes:
>
> And they don't say "120 cm must be less than your height, which must also
> be less than 200 cm".  :-)

Right, but unless we want to use a macro like

    IN_RANGE_P (height, 120, 200)

I think ((120 < height) && (height < 200)) is the closest we can get to
the natural phrasing.  In Elisp we can do (< 120 height 200) which is
nicer, but we're still stuck with `and' for semi-closed intervals.




This bug report was last modified 5 years and 296 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.