all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Jean Louis <bugs@gnu.support>
Cc: 74890@debbugs.gnu.org
Subject: bug#74890: 31.0.50; (thing-at-point 'string) raises error
Date: Sun, 15 Dec 2024 20:31:34 +0200	[thread overview]
Message-ID: <86cyhsre61.fsf@gnu.org> (raw)
In-Reply-To: <874j352vwz.fsf@lco2.mail-host-address-is-not-set> (message from Jean Louis on Sun, 15 Dec 2024 11:27:24 +0300)

> From: Jean Louis <bugs@gnu.support>
> Date: Sun, 15 Dec 2024 11:27:24 +0300
> 
> 
> I can see that I cannot run (thing-at-point 'string) safely, though I
> cannot exactly determine the condition.
> 
> In the buffer I have only this:
> 
> Hello
> 
> which is string "Hello" and when I place cursor behind "o" and run
> (thing-at-point 'string) I am getting the backtrace below. But if I make
> one space like "Hello " and place cursor on that empty space in the
> buffer, I am getting NIL and no error.  Though I cannot repeat this with
> emacs -Q and thus I do not know why is this happening exactly.
> 
> I think that  (eq (char-syntax (char-after)) 34) cannot read the char
> which is not there "after".
> 
> Backtrace:
> 
> Debugger entered--Lisp error: (wrong-type-argument characterp nil)
>   char-syntax(nil)
>   (eq (char-syntax (char-after)) 34)

Please show a complete recipe, preferably starting from "emacs -Q".  I
tried to reproduce this problem, but couldn't, which probably means
some special steps are required to see it.

I also don't understand your claims about "char after", because
there's always something "after" point.





  parent reply	other threads:[~2024-12-15 18:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-15  8:27 bug#74890: 31.0.50; (thing-at-point 'string) raises error Jean Louis
     [not found] ` <handler.74890.B.17342851868303.ack@debbugs.gnu.org>
2024-12-15 18:12   ` bug#74890: Acknowledgement (31.0.50; (thing-at-point 'string) raises error) Jean Louis
2024-12-15 20:44     ` Stefan Kangas
2024-12-15 18:31 ` Eli Zaretskii [this message]
2024-12-15 22:10   ` bug#74890: 31.0.50; (thing-at-point 'string) raises error Jean Louis
2024-12-16  0:49     ` Drew Adams via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-16  6:12       ` Jean Louis
2024-12-16 16:40         ` Eli Zaretskii
2024-12-16 23:39           ` Drew Adams via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-17  0:47             ` Stefan Kangas
2024-12-17  4:15             ` Jean Louis

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=86cyhsre61.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=74890@debbugs.gnu.org \
    --cc=bugs@gnu.support \
    /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.