unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Juri Linkov <juri@linkov.net>
Cc: Lars Ingebrigtsen <larsi@gnus.org>, 9054@debbugs.gnu.org
Subject: bug#9054: 24.0.50; show source in other window
Date: Mon, 4 Oct 2021 10:28:01 +0200	[thread overview]
Message-ID: <6ede36b2-93c4-ee11-a0ca-721b27426dbb@gmx.at> (raw)
In-Reply-To: <874k9y6mee.fsf@mail.linkov.net>

 > 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.

 > Meanwhile, I moved Defun/List/Symbol selection items to prog-mode,
 > and added Paragraph/Sentence/Word selection items to text-mode
 > as well as to strings/comments in prog-mode.  Please check
 > if everything is correct.

I will look as soon as I've pulled the sources again.  I have yet to
rename my "release" tree to "emacs-27", rebuild all targets there, make
emacs 28 my new release tree and rebuild all targets for it.  This
requires secure sources and I'm not yet sure what Paul's fixes have in
store for me.

BTW, I've recently seen this

Debugger entered--Lisp error: (args-out-of-range #<buffer *Help*> 1 2461677)
   parse-partial-sexp(1 2461677)
   syntax-ppss(2461677)
   context-menu-region((keymap #("Context Menu" 0 12 (hide t)) (separator-undo "--") (separator-region "--") (paste menu-item "Paste" mouse-yank-at-click :help "Paste (yank) text most recently cut/copied") (paste-from-menu menu-item "Paste from Kill Menu" (keymap (10 menu-item "\\" #f(compiled-function () (interactive nil) #<bytecode 0x1b8a5eddfe5537c0>)) (9 menu-item "\\" #f(compiled-function () (interactive nil) #<bytecode 0x1b8a5eddfe5537c0>)) (8 menu-item "\\" #f(compiled-function () (interactive nil) #<bytecode 0x1b8a5eddfe5537c0>)) (7 menu-item "\\" #f(compiled-function () (interactive nil) #<bytecode 0x1b8a5eddfe5537c0>)) (6 menu-item "\\" #f(compiled-function () (interactive nil) #<bytecode 0x1b8a5eddfe5537c0>)) (5 menu-item "\\" #f(compiled-function () (interactive nil) #<bytecode 0x1b8a5eddfe5537c0>)) (4 menu-item "\\" #f(compiled-function () (interactive nil) #<bytecode 0x1b8a5eddfe5537c0>)) (3 menu-item "\\" #f(compiled-function () (interactive nil) #<bytecode 0x1b8a5eddfe5537c0>)) (2 menu-item "\\" #f(compiled-function () (interactive nil) #<bytecode 0x1b8a5eddfe5537c0>)) (1 menu-item "\\" #f(compiled-function () (interactive nil) #<bytecode 0x1b8a5eddfe5537c0>)) "Paste from Kill Menu") :help "Choose a string from the kill ring and paste it")) 98)
   #f(compiled-function (fun) #<bytecode -0x1ee96643fef4ee80>)(context-menu-region)
   run-hook-wrapped(#f(compiled-function (fun) #<bytecode -0x1ee96643fef4ee80>) context-menu-region)
   context-menu-map()
   (lambda (_) (context-menu-map))(ignore)
   lookup-key(((down-mouse-3 menu-item "Context Menu" ignore :filter (lambda (_) (context-menu-map))) (mouse-3)) [down-mouse-3] t)
   describe-map((keymap (menu) (down-mouse-3 menu-item "Context Menu" ignore :filter (lambda (_) (context-menu-map))) (mouse-3)) [] nil t ((keymap (M-f4 . kill-frame-or-emacs) (C-M-S-down . window-delete-or-split-down) (C-M-S-right . window-delete-or-split-right) (C-M-S-up . window-delete-or-split-up) (C-M-S-left . window-delete-or-split-left) (M-S-down . windows-clock-down) (M-S-right . windows-clock-right) (M-S-up . windows-clock-up) (M-S-left . windows-clock-left) (M-down . window-delete-or-split-down) (M-up . window-delete-or-split-up) (M-right . my-bury-buffer) (M-left . my-unbury-buffer))) t nil)
   describe-map-tree((keymap (menu) (down-mouse-3 menu-item "Context Menu" ignore :filter (lambda (_) (context-menu-map))) (mouse-3)) t ((keymap (M-f4 . kill-frame-or-emacs) (C-M-S-down . window-delete-or-split-down) (C-M-S-right . window-delete-or-split-right) (C-M-S-up . window-delete-or-split-up) (C-M-S-left . window-delete-or-split-left) (M-S-down . windows-clock-down) (M-S-right . windows-clock-right) (M-S-up . windows-clock-up) (M-S-left . windows-clock-left) (M-down . window-delete-or-split-down) (M-up . window-delete-or-split-up) (M-right . my-bury-buffer) (M-left . my-unbury-buffer))) nil "\f\n`context-menu-mode' Minor Mode Bindings" t nil nil nil)
   describe-buffer-bindings(#<buffer *info*> 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 ...

martin

  reply	other threads:[~2021-10-04  8:28 UTC|newest]

Thread overview: 96+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-11 18:31 bug#9054: 24.0.50; show source in other window Florian Beck
2011-07-12  8:21 ` martin rudalics
2011-08-31 16:52   ` Juri Linkov
2011-09-01  0:26     ` martin rudalics
2021-09-07 18:12 ` Lars Ingebrigtsen
2021-09-07 19:11   ` martin rudalics
2021-09-07 19:17     ` Lars Ingebrigtsen
2021-09-08  8:29       ` martin rudalics
2021-09-08 10:30         ` Lars Ingebrigtsen
2021-09-09  8:34           ` martin rudalics
2021-09-09 13:13             ` Lars Ingebrigtsen
2021-09-10  8:34               ` martin rudalics
2021-09-22 21:20           ` Arthur Miller
2021-09-23  8:16             ` martin rudalics
2021-09-23 12:52               ` Arthur Miller
2021-09-26  9:10                 ` martin rudalics
2021-09-26 14:04                   ` Arthur Miller
2021-09-09 17:20   ` Juri Linkov
2021-09-10 10:21     ` Lars Ingebrigtsen
2021-09-10 16:15       ` Juri Linkov
2021-09-11  8:38         ` martin rudalics
2021-09-11 18:51           ` Juri Linkov
2021-09-13  8:02             ` martin rudalics
2021-09-13 17:57               ` Juri Linkov
2021-09-13 18:43                 ` Juri Linkov
2021-09-15  9:28                   ` martin rudalics
2021-09-15 16:07                     ` Juri Linkov
2021-09-15 18:48                       ` martin rudalics
2021-09-17  7:21                         ` Juri Linkov
2021-09-17  7:39                           ` martin rudalics
2021-09-17 16:04                             ` Juri Linkov
2021-09-18  7:36                               ` martin rudalics
2021-09-18 16:30                                 ` bug#9054: [External] : " Drew Adams
2021-09-19 16:20                                 ` Juri Linkov
2021-09-19 17:27                                   ` Eli Zaretskii
2021-09-19 17:35                                     ` bug#9054: [External] : " Drew Adams
2021-09-19 17:43                                       ` Eli Zaretskii
2021-09-20  8:21                                     ` martin rudalics
2021-09-20 14:11                                       ` bug#9054: [External] : " Drew Adams
2021-09-21  8:32                                         ` martin rudalics
2021-09-21 17:52                                           ` Drew Adams
2021-09-22  7:49                                             ` martin rudalics
2021-09-22 15:17                                               ` Drew Adams
2021-09-22 15:43                                                 ` martin rudalics
2021-09-22 16:09                                                   ` Drew Adams
2021-09-22 16:18                                                     ` Eli Zaretskii
2021-09-22 16:49                                                       ` Drew Adams
2021-09-22 17:30                                                         ` Eli Zaretskii
2021-09-22 18:22                                                           ` Drew Adams
2021-09-22 18:42                                                             ` Eli Zaretskii
2021-09-20  8:21                                   ` martin rudalics
2021-09-20 15:20                                     ` Juri Linkov
2021-09-21  8:34                                       ` martin rudalics
2021-09-21 18:05                                         ` Juri Linkov
2021-09-22  7:48                                           ` martin rudalics
2021-09-22 17:10                                             ` Juri Linkov
2021-09-23  8:15                                               ` martin rudalics
2021-09-23 15:46                                                 ` Juri Linkov
2021-09-26  9:10                                                   ` martin rudalics
2021-09-23  8:51                                               ` martin rudalics
2021-09-23 16:33                                                 ` Juri Linkov
2021-09-26  9:11                                                   ` martin rudalics
2021-09-29 17:47                                                     ` Juri Linkov
2021-09-30 16:18                                                       ` martin rudalics
2021-10-03 17:36                                                         ` Juri Linkov
2021-10-04  8:28                                                           ` martin rudalics [this message]
2021-10-04 17:28                                                             ` Juri Linkov
2021-10-05  8:09                                                               ` martin rudalics
2021-09-14 11:07                 ` Lars Ingebrigtsen
2021-09-15  9:28                   ` martin rudalics
2021-09-15  9:30                     ` Lars Ingebrigtsen
2021-09-15  9:42                       ` martin rudalics
2021-10-23  0:46                         ` Stefan Kangas
2021-09-15  9:27                 ` martin rudalics
2021-09-15 16:05                   ` Juri Linkov
2021-09-15 18:47                     ` martin rudalics
2021-09-16 18:53                       ` Juri Linkov
2021-09-16 19:11                         ` Juri Linkov
2021-09-17  7:39                         ` martin rudalics
2021-09-17 16:05                           ` Juri Linkov
2021-09-18  7:35                             ` martin rudalics
2021-09-11  8:35       ` martin rudalics
2021-09-11 12:43         ` Lars Ingebrigtsen
2021-09-11 16:42           ` martin rudalics
2021-09-13  7:50             ` Lars Ingebrigtsen
2021-09-13  8:10               ` martin rudalics
2021-09-22 20:43           ` Arthur Miller
2021-09-23  8:16             ` martin rudalics
2021-09-23 12:49               ` Arthur Miller
2021-09-26  9:09                 ` martin rudalics
2021-09-26 13:56                   ` Arthur Miller
2022-05-02  9:31 ` Lars Ingebrigtsen
2022-05-02 16:05   ` Juri Linkov
2022-05-03 10:29     ` Lars Ingebrigtsen
2022-05-03 17:25       ` Juri Linkov
2022-05-03 18:03         ` Lars Ingebrigtsen

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6ede36b2-93c4-ee11-a0ca-721b27426dbb@gmx.at \
    --to=rudalics@gmx.at \
    --cc=9054@debbugs.gnu.org \
    --cc=juri@linkov.net \
    --cc=larsi@gnus.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).