From: guo.yong--- via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: Emanuel Berg <moasenwood@zoho.eu>
Cc: Help Gnu Emacs <help-gnu-emacs@gnu.org>
Subject: Re: Error on `get-text-property`
Date: Mon, 29 Nov 2021 01:51:22 +0100 (CET) [thread overview]
Message-ID: <MpdABMj--3-2@tutanota.com> (raw)
In-Reply-To: <87wnks5mv5.fsf@zoho.eu>
Yes. It is that error.
I think I have a workaround now. Changing the call of get-text-property in kill-append to
(get-text-property (if (null cur)
1
0) 'yank-handler cur)
Seems to fix the error. I'll have to try it out for a while to see how it affects other functions as well.
Regrads.
Yong.
--
Sent with Tutanota, the secure & ad-free mailbox.
Nov 28, 2021, 22:19 by help-gnu-emacs@gnu.org:
> guo.yong--- via Users list for the GNU Emacs text editor wrote:
>
>> From the backtrack, the error occured from `kill-append`.
>> The reason is that `kill-append` calls `get-text-property`
>> in the function. But when the kill ring is empty, the
>> function call is `(get-text-property 0 'yank-handler nil)`
>> which cause the error.
>>
>
> What error, this one
>
> eval: Args out of range: 0,0
>
> ?
>
> --
> underground experts united
> https://dataswamp.org/~incal
>
next prev parent reply other threads:[~2021-11-29 0:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-28 15:07 Error on `get-text-property` guo.yong--- via Users list for the GNU Emacs text editor
2021-11-28 15:19 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-11-29 0:51 ` guo.yong--- via Users list for the GNU Emacs text editor [this message]
2021-11-29 10:32 ` Michael Heerdegen
2021-11-30 15:17 ` guo.yong--- via Users list for the GNU Emacs text editor
2021-11-28 16:46 ` Emanuel Berg via Users list for the GNU Emacs text editor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=MpdABMj--3-2@tutanota.com \
--to=help-gnu-emacs@gnu.org \
--cc=guo.yong@tutanota.com \
--cc=moasenwood@zoho.eu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.