From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#9054: 24.0.50; show source in other window Date: Mon, 04 Oct 2021 20:28:17 +0300 Organization: LINKOV.NET Message-ID: <87y278d9lm.fsf@mail.linkov.net> References: <87k4bovfd0.fsf@sophokles.streitblatt.de> <871r5px383.fsf@mail.linkov.net> <87y27vk6pd.fsf@mail.linkov.net> <878rzv8obc.fsf@mail.linkov.net> <76b6ea1e-1256-2205-b6df-cde10330da53@gmx.at> <87czp4lg3p.fsf@mail.linkov.net> <23460cdb-c773-4e60-2770-8aa75e0d5693@gmx.at> <874kaftrgk.fsf@mail.linkov.net> <8bb2944d-29f7-d01b-cd6f-d2a8b1721b46@gmx.at> <87k0j9ixov.fsf@mail.linkov.net> <8803a606-8194-1727-1d79-634fe543d7ad@gmx.at> <87czp0vgw2.fsf@mail.linkov.net> <8c3c7826-5dad-db2e-382a-30894f1b43f9@gmx.at> <877df7p7z5.fsf@mail.linkov.net> <87bl4bff3v.fsf@mail.linkov.net> <874k9y6mee.fsf@mail.linkov.net> <6ede36b2-93c4-ee11-a0ca-721b27426dbb@gmx.at> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33636"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: Lars Ingebrigtsen , 9054@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 04 19:47:22 2021 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 1mXS3e-0008Uh-Kk for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Oct 2021 19:47:22 +0200 Original-Received: from localhost ([::1]:44402 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXS3d-00049X-40 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Oct 2021 13:47:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46574) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXS3M-00048u-Re for bug-gnu-emacs@gnu.org; Mon, 04 Oct 2021 13:47:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55010) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXS3K-0004fI-4z for bug-gnu-emacs@gnu.org; Mon, 04 Oct 2021 13:47:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mXS3K-0006ra-4F for bug-gnu-emacs@gnu.org; Mon, 04 Oct 2021 13:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Oct 2021 17:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9054 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 9054-submit@debbugs.gnu.org id=B9054.163336961326343 (code B ref 9054); Mon, 04 Oct 2021 17:47:02 +0000 Original-Received: (at 9054) by debbugs.gnu.org; 4 Oct 2021 17:46:53 +0000 Original-Received: from localhost ([127.0.0.1]:38318 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXS3B-0006qo-Gp for submit@debbugs.gnu.org; Mon, 04 Oct 2021 13:46:53 -0400 Original-Received: from relay3-d.mail.gandi.net ([217.70.183.195]:36053) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXS39-0006qR-8O for 9054@debbugs.gnu.org; Mon, 04 Oct 2021 13:46:52 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 6C8F66000E; Mon, 4 Oct 2021 17:46:42 +0000 (UTC) In-Reply-To: <6ede36b2-93c4-ee11-a0ca-721b27426dbb@gmx.at> (martin rudalics's message of "Mon, 4 Oct 2021 10:28:01 +0200") 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" Xref: news.gmane.io gmane.emacs.bugs:216378 Archived-At: >> I tried to add a new 'thing-at-point' target 'comment', >> but then discovered that it's already supported by >> >> (thing-at-point 'comment) >> >> because it automatically calls '(forward-comment 1)' and '(forward-comment -1)'. >> However, it seems currently 'forward-comment' is broken - >> it does nothing inside comments. Maybe there is a bug? > > IIUC 'forward-comment' is context-agnostic - you can safely use it only > at top level. So in the case at hand you would have to run it from the > 8th element of the return value of 'syntax-ppss'. That's why I would > run 'syntax-ppss' from the current mouse position using the return value > of 'syntax-ppss' as OLDSTATE to avoid scanning text twice. It still needs to scan twice because for thing-at-point it should be implemented as two functions: (put 'comment 'beginning-op 'thing-at-point--beginning-of-comment) (put 'comment 'end-op 'thing-at-point--end-of-comment) > BTW, I've recently seen this > > Debugger entered--Lisp error: (args-out-of-range # 1 2461677) > parse-partial-sexp(1 2461677) > syntax-ppss(2461677) > context-menu-region((keymap #("Context Menu" 0 12 (hide t)) > context-menu-map() > describe-buffer-bindings(# nil) > describe-bindings() > funcall-interactively(describe-bindings) > call-interactively(describe-bindings nil nil) > command-execute(describe-bindings) > > Any ideas as to what could have happened here? I must have been hitting > C-h b by accident - as a rule I never call 'describe-bindings' - but > 2461677 looks slightly preposterous ... It seems you still using old source code? Because recently this was fixed in event-end to use (window-point).