From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#74890: 31.0.50; (thing-at-point 'string) raises error Date: Sun, 15 Dec 2024 20:31:34 +0200 Message-ID: <86cyhsre61.fsf@gnu.org> References: <874j352vwz.fsf@lco2.mail-host-address-is-not-set> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26867"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74890@debbugs.gnu.org To: Jean Louis Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 15 19:32:31 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tMtPq-0006sY-ST for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Dec 2024 19:32:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMtPV-0002EU-Gw; Sun, 15 Dec 2024 13:32:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMtPQ-0002Dz-L2 for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 13:32:04 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMtPO-0004rl-GY for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 13:32:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=Ap/1zsUEJyMo5ZKYQEpMlVrRo/8nAGP2NUMmx/NucQM=; b=rC7T9FJpFOakhQUkkdctBK/aVNItgCWzi+yvYunlaXLYgI+BaFVJhc8O6utzt8/uOQ1KXfriJYZR1l5aAZ9wLT6SEm5droBrI+4dko65pKkA0VCglQyaAl15JpLGnXLVTpcy6uFox1AYYpCqKQWK6to2VOfgzpESwhw6PJSQ0HGqWQegh4GlFNpL9ggkYcctpxhQEDNH6288MRxOeXJY3zUwxZW6O9fz9H/J/61z2BumjuhvvcuCS4RYFMqjIUL9r9yqGsWcSd39BQ8wYH2zuLFEqofX1AohDmCM4QBm4bSJUkXEFtpMgNQw8+989ms1z8Js2u0zfMwt8CRwqvXe2w==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tMtPO-00048K-Ag for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 13:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Dec 2024 18:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74890 X-GNU-PR-Package: emacs Original-Received: via spool by 74890-submit@debbugs.gnu.org id=B74890.173428750615858 (code B ref 74890); Sun, 15 Dec 2024 18:32:02 +0000 Original-Received: (at 74890) by debbugs.gnu.org; 15 Dec 2024 18:31:46 +0000 Original-Received: from localhost ([127.0.0.1]:52027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMtP7-00047i-Td for submit@debbugs.gnu.org; Sun, 15 Dec 2024 13:31:46 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37724) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMtP5-00047T-5M for 74890@debbugs.gnu.org; Sun, 15 Dec 2024 13:31:44 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMtOz-0004oL-Mz; Sun, 15 Dec 2024 13:31:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Ap/1zsUEJyMo5ZKYQEpMlVrRo/8nAGP2NUMmx/NucQM=; b=bV0Gj8Ff1LgD 6NaFMOAEufSJN9zbzRumOQWahX++JnZ2WQSqZ+j+tBc8bcUEivAIJi4yVOnDp8uyWD4/qASsFYu5b coTf1AaWcts+QB3TfSQIQcp/WcLDYZA5YK6jXyeecVtqDSdlOgl2C3Wi0qgy4OwsKQk1Q+UsdV31H MVE6lPGUb5QFrnEUQpFJkFKxmPsEl79W6gccg8klNFXwPIeLJd4dwd9jCTvZzdBstX4db2A5bNvUj 1yNEZN3+rgH69wGi4E3D7ot49ijcctAbjXdj7SAH5nKbqgj8tpepTGwwlsHt/LII6cwzFMmZaAriP QQDtGr8Y74JdPK/aG66Y5Q==; 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) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:297120 Archived-At: > From: Jean Louis > 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.