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

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

Re: Error on `get-text-property`


From: Emanuel Berg
Subject: Re: Error on `get-text-property`
Date: Sun, 28 Nov 2021 17:46:29 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

guo.yong--- via Users list for the GNU Emacs text editor wrote:

> From the backtrack, the error occured from `kill-append`.

BTW `kill-append' is another one of these functions that end
with something that can be t or nil, from the on-line help it
says

  (kill-append STRING BEFORE-P)

  [...] If BEFORE-P is non-nil, prepend STRING to the kill
  instead

One can instead make the last argument optional, it then
defaults ot nil, instead of having ugly code that looks like
this

  (kill-append "This doesn't look good" nil)

where people have to check what that second argument nil
really is ...

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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