GNU bug report logs - #77326
[PATCH] Add symbol-mode

Previous Next

Package: emacs;

Reported by: Gabriel Santos <gabriel.santos.smtp <at> gmail.com>

Date: Fri, 28 Mar 2025 04:42:02 UTC

Severity: normal

Tags: patch

To reply to this bug, email your comments to 77326 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#77326; Package emacs. (Fri, 28 Mar 2025 04:42:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Gabriel Santos <gabriel.santos.smtp <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 28 Mar 2025 04:42:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Gabriel Santos <gabriel.santos.smtp <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Cc: Gabriel Santos <gabrielsantosdesouza <at> disroot.org>
Subject: [PATCH] Add symbol-mode
Date: Thu, 27 Mar 2025 19:44:21 -0300
[Message part 1 (text/plain, inline)]
Greetings,

This patch provides a new package for interacting with symbols, based on
the current word commands and the built-in package "subword".

A minor mode that replaces the word commands is also provided, also
inspired by the subword package, but additionally on the usage of
defvar-keymap I made in a PR I opened for the puni package[1].

- Points of discussion

Would the mention of this mode be a good addition to the documentation?

I don't know how to contribute to the docs, but I would look into doing
so if you think it's a good idea

[1] <https://github.com/AmaiKinono/puni/pull/75>

P.S.: This is being sent from a different e-mail from the patch because
my e-mail provider, viz. Disroot, is having issues with spam, and that
was blocking my messages, so I decided to create a Gmail account to go
around that.

Regards,

-- 
Gabriel Santos

[0001-Add-symbol-mode.patch (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#77326; Package emacs. (Sat, 05 Apr 2025 08:55:01 GMT) Full text and rfc822 format available.

Message #8 received at 77326 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>,
 Stefan Kangas <stefankangas <at> gmail.com>, Andrea Corallo <acorallo <at> gnu.org>
Cc: Gabriel Santos <gabriel.santos.smtp <at> gmail.com>,
 gabrielsantosdesouza <at> disroot.org, 77326 <at> debbugs.gnu.org
Subject: Re: bug#77326: [PATCH] Add symbol-mode
Date: Sat, 05 Apr 2025 11:54:33 +0300
> Cc: Gabriel Santos <gabrielsantosdesouza <at> disroot.org>
> From: Gabriel Santos <gabriel.santos.smtp <at> gmail.com>
> Date: Thu, 27 Mar 2025 19:44:21 -0300
> 
> Greetings,
> 
> This patch provides a new package for interacting with symbols, based on
> the current word commands and the built-in package "subword".
> 
> A minor mode that replaces the word commands is also provided, also
> inspired by the subword package, but additionally on the usage of
> defvar-keymap I made in a PR I opened for the puni package[1].
> 
> - Points of discussion
> 
> Would the mention of this mode be a good addition to the documentation?
> 
> I don't know how to contribute to the docs, but I would look into doing
> so if you think it's a good idea
> 
> [1] <https://github.com/AmaiKinono/puni/pull/75>
> 
> P.S.: This is being sent from a different e-mail from the patch because
> my e-mail provider, viz. Disroot, is having issues with spam, and that
> was blocking my messages, so I decided to create a Gmail account to go
> around that.

Thanks.

Any comments to the patch, or objections to adding this mode to Emacs?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#77326; Package emacs. (Sat, 05 Apr 2025 12:29:02 GMT) Full text and rfc822 format available.

Message #11 received at 77326 <at> debbugs.gnu.org (full text, mbox):

From: Ship Mints <shipmints <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Gabriel Santos <gabriel.santos.smtp <at> gmail.com>,
 gabrielsantosdesouza <at> disroot.org, 77326 <at> debbugs.gnu.org,
 Stefan Monnier <monnier <at> iro.umontreal.ca>, Andrea Corallo <acorallo <at> gnu.org>,
 Stefan Kangas <stefankangas <at> gmail.com>
Subject: Re: bug#77326: [PATCH] Add symbol-mode
Date: Sat, 5 Apr 2025 08:28:32 -0400
[Message part 1 (text/plain, inline)]
On Sat, Apr 5, 2025 at 4:55 AM Eli Zaretskii <eliz <at> gnu.org> wrote:

> > Cc: Gabriel Santos <gabrielsantosdesouza <at> disroot.org>
> > From: Gabriel Santos <gabriel.santos.smtp <at> gmail.com>
> > Date: Thu, 27 Mar 2025 19:44:21 -0300
> >
> > Greetings,
> >
> > This patch provides a new package for interacting with symbols, based on
> > the current word commands and the built-in package "subword".
> >
> > A minor mode that replaces the word commands is also provided, also
> > inspired by the subword package, but additionally on the usage of
> > defvar-keymap I made in a PR I opened for the puni package[1].
> >
> > - Points of discussion
> >
> > Would the mention of this mode be a good addition to the documentation?
> >
> > I don't know how to contribute to the docs, but I would look into doing
> > so if you think it's a good idea
> >
> > [1] <https://github.com/AmaiKinono/puni/pull/75>
> >
> > P.S.: This is being sent from a different e-mail from the patch because
> > my e-mail provider, viz. Disroot, is having issues with spam, and that
> > was blocking my messages, so I decided to create a Gmail account to go
> > around that.
>
> Thanks.
>
> Any comments to the patch, or objections to adding this mode to Emacs?
>

One nice feature this patch could have is to cycle among symbol naming
conventions: CamelCase, snakeCase, hyphen-case, underscore_case (any
others?) and that would make it convenient when a variable name with the
same components are used across modalities; e.g. in config files, json,
xml, protobufs, C/C++ vs. python, and in emacs-lisp-mode and Emacs C code,
cycling among to Fsymbol_name or Ssymbol_name?
[Message part 2 (text/html, inline)]

This bug report was last modified today.

Previous Next


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