all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Visuwesh <visuweshm@gmail.com>
Cc: 72757@debbugs.gnu.org, juri@linkov.net
Subject: bug#72757: No symbols in etc/NEWS
Date: Thu, 22 Aug 2024 18:26:39 +0300	[thread overview]
Message-ID: <86h6bcshn4.fsf@gnu.org> (raw)
In-Reply-To: <8734mw8vbo.fsf@gmail.com> (message from Visuwesh on Thu, 22 Aug 2024 20:21:23 +0530)

> From: Visuwesh <visuweshm@gmail.com>
> Cc: Juri Linkov <juri@linkov.net>,  72757@debbugs.gnu.org
> Date: Thu, 22 Aug 2024 20:21:23 +0530
> 
> [வியாழன் ஆகஸ்ட் 22, 2024] Eli Zaretskii wrote:
> 
> >> From: Juri Linkov <juri@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.





  reply	other threads:[~2024-08-22 15:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-22  6:22 bug#72757: No symbols in etc/NEWS Juri Linkov
2024-08-22 12:43 ` Eli Zaretskii
2024-08-22 14:51   ` Visuwesh
2024-08-22 15:26     ` Eli Zaretskii [this message]
2024-08-23  6:27     ` Juri Linkov
2024-08-31  9:16       ` Eli Zaretskii
2024-08-31 22:37         ` Stefan Kangas
2024-09-01 16:54         ` Juri Linkov

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=86h6bcshn4.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=72757@debbugs.gnu.org \
    --cc=juri@linkov.net \
    --cc=visuweshm@gmail.com \
    /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.