GNU bug report logs - #72757
No symbols in etc/NEWS

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Thu, 22 Aug 2024 06:27:01 UTC

Severity: normal

Fixed in version 30.0.60

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Visuwesh <visuweshm <at> gmail.com>
Cc: 72757 <at> debbugs.gnu.org, juri <at> linkov.net
Subject: bug#72757: No symbols in etc/NEWS
Date: Thu, 22 Aug 2024 18:26:39 +0300
> From: Visuwesh <visuweshm <at> gmail.com>
> Cc: Juri Linkov <juri <at> linkov.net>,  72757 <at> debbugs.gnu.org
> Date: Thu, 22 Aug 2024 20:21:23 +0530
> 
> [வியாழன் ஆகஸ்ட் 22, 2024] Eli Zaretskii wrote:
> 
> >> From: Juri Linkov <juri <at> linkov.net>
> >> Date: Thu, 22 Aug 2024 09:22:34 +0300
> >> 
> >> 0. emacs -Q
> >> 1. Open etc/NEWS
> >> 2. Move point to a symbol enclosed in single quotes
> >> 3. Type 'C-h o'
> >> 4. No default is proposed, so need to type the symbol manually
> >>    instead of typing RET
> 
> [ I can only seem to reproduce if the symbol is in the heading.  If the
>   symbol enclosed in quotes is in the "body" text, then the DEFAULT
>   argument is picked up by C-h o as expected...  ]
> 
> > That's because thing-at-point--beginning-of-symbol allows the
> > apostrophe as part of the symbol's name, and so "C-h o" thinks the
> > symbol at point is 'foo-bar', with the quotes.
> >
> > I don't see any better solution than providing a NEWS-specific version
> > of thing-at-point--beginning-of-symbol.
> 
> Would it not be simpler to change the syntax-table of
> emacs-news-(view-)mode?
> 
> I did
> 
>     M-: (modify-syntax-entry ?' "\"") RET
> 
> in the NEWS buffer and C-h o seems to work everywhere.  I am not sure if
> we want ' to be "string quote" or punctuation like " already is, or
> something else.

That's one way of "providing a NEWS-specific version of
thing-at-point--beginning-of-symbol", yes.  Thanks.




This bug report was last modified 321 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.