bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Andreas Röhler
Subject: bug#35491: Subject: 27.0.50; word-at-point, hand over optional argument
Date: Wed, 8 May 2019 08:20:09 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 Thunderbird/60.6.1


On 08.05.19 00:20, Noam Postavsky wrote:
Andreas Röhler <andreas.roehler@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.







reply via email to

[Prev in Thread] Current Thread [Next in Thread]