GNU bug report logs - #35491
Subject: 27.0.50; word-at-point, hand over optional argument

Previous Next

Package: emacs;

Reported by: Andreas Röhler <andreas.roehler <at> easy-emacs.de>

Date: Mon, 29 Apr 2019 15:52:01 UTC

Severity: wishlist

Tags: fixed

Fixed in version 27.1

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 35491 <at> debbugs.gnu.org
Subject: bug#35491: Subject: 27.0.50; word-at-point, hand over optional argument
Date: Wed, 8 May 2019 08:20:09 +0200
On 08.05.19 00:20, Noam Postavsky wrote:
> Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:
>
>> please permit ‘word-at-point’ to hand over optional arg ‘no-properties’
>>
>> ‘thing-at-point’ comes with an optional argument ‘no-properties’.
>> Seems there is no way to set it from calling ‘word-at-point’.
>>
>> With attached patch:
>>
>> (setq a (word-at-point t))foo
>>
>> a ==> "foo"
>>
>> ;; current constraint:
>> (setq b (word-at-point))foo
>>
>> b ==> #("foo" 0 2 (fontified t) 2 3 (fontified t rear-nonsticky t))
> Sure, I guess there's no reason not to.  Any problems with the patch
> below?  (I avoided looking at yours since I recall you have some
> philosophical/legal objection to signing copyright papers)
>
Looks good for me, thanks considering related cases too.






This bug report was last modified 6 years and 10 days ago.

Previous Next


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