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

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

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: 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 34 days ago.

Previous Next


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