GNU bug report logs - #18551
regression: erc-format-nick is now essentially an alias to erc-format-@nick

Previous Next

Package: emacs;

Reported by: Ivan Shmakov <ivan <at> siamics.net>

Date: Wed, 24 Sep 2014 21:35:03 UTC

Severity: normal

Tags: patch

Fixed in version 25.1

Done: Ivan Shmakov <ivan <at> siamics.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 18551 in the body.
You can then email your comments to 18551 AT debbugs.gnu.org in the normal way.

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

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


Report forwarded to kwhite <at> gnu.org, bug-gnu-emacs <at> gnu.org:
bug#18551; Package emacs. (Wed, 24 Sep 2014 21:35:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ivan Shmakov <ivan <at> siamics.net>:
New bug report received and forwarded. Copy sent to kwhite <at> gnu.org, bug-gnu-emacs <at> gnu.org. (Wed, 24 Sep 2014 21:35:04 GMT) Full text and rfc822 format available.

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

From: Ivan Shmakov <ivan <at> siamics.net>
To: submit <at> debbugs.gnu.org
Subject: regression: erc-format-nick is now essentially an alias to
 eww-format-@nick 
Date: Wed, 24 Sep 2014 21:33:57 +0000
[Message part 1 (text/plain, inline)]
Package:  emacs
X-Debbugs-Cc: Kelvin White <kwhite <at> gnu.org>

	The following change (present as of 0ee10aff098b) was introduced
	into lisp/erc/erc.el back this June:

commit b45734ee82eecb91010eb3055c8c8bafb73a3ade
Author:     Kelvin White <kelvin.white77 <at> gmail.com>
AuthorDate: Thu Jun 19 12:56:18 2014 -0400

    ERC: Better user mode support

--- a/lisp/erc/erc.el
+++ b/lisp/erc/erc.el
…
@@ -4190,7 +4223,24 @@
 (defun erc-format-nick (&optional user _channel-data)
   "Return the nickname of USER.
 See also `erc-format-nick-function'."
-  (when user (erc-server-user-nickname user)))
+  (let ((nick (erc-server-user-nickname user)))
+    (concat (erc-propertize
+             (erc-get-user-mode-prefix nick)
+             'face 'erc-nick-prefix-face) nick)))
…

	This added the “user mode” sign – previously kind of specific to
	erc-format-@nick – into the string returned by erc-format-nick.
	Thus, the only code difference left between the two is the
	(presumably accidental) lack of the (when user …) in the former:

  4227	(defun erc-format-nick (&optional user _channel-data)
…
  4230	  (let ((nick (erc-server-user-nickname user)))
  4231	    (concat (erc-propertize
  4232	             (erc-get-user-mode-prefix nick)
  4233	             'face 'erc-nick-prefix-face)
  4234		    nick)))

  4250	(defun erc-format-@nick (&optional user channel-data)
…
  4256	  (when user
  4257	    (let ((nick (erc-server-user-nickname user)))
  4258	      (concat (erc-propertize
  4259	               (erc-get-user-mode-prefix nick)
  4260	               'face 'erc-nick-prefix-face)
  4261		      nick))))

	I believe that this change was unintended, is not helpful in any
	way (if the intent was to get rid of the former, it should’ve
	been aliased over, not redefined, shouldn’t it?), and should
	thus be reverted.

-- 
FSF associate member #7257  http://boycottsystemd.org/  … 3013 B6A0 230E 334A
[Message part 2 (text/diff, inline)]
--- a/lisp/erc/erc.el
+++ b/lisp/erc/erc.el
@@ -4227,11 +4227,7 @@
 (defun erc-format-nick (&optional user _channel-data)
   "Return the nickname of USER.
 See also `erc-format-nick-function'."
-  (let ((nick (erc-server-user-nickname user)))
-    (concat (erc-propertize
-             (erc-get-user-mode-prefix nick)
-             'face 'erc-nick-prefix-face)
-	    nick)))
+  (when user (erc-server-user-nickname user)))
 
 (defun erc-get-user-mode-prefix (user)
   (when user

Changed bug title to 'regression: erc-format-nick is now essentially an alias to erc-format-@nick' from 'regression: erc-format-nick is now essentially an alias to eww-format-@nick ' Request was from Ivan Shmakov <ivan <at> siamics.net> to control <at> debbugs.gnu.org. (Wed, 24 Sep 2014 21:41:01 GMT) Full text and rfc822 format available.

Added tag(s) patch. Request was from Ivan Shmakov <ivan <at> siamics.net> to control <at> debbugs.gnu.org. (Wed, 24 Sep 2014 21:41:01 GMT) Full text and rfc822 format available.

Reply sent to Ivan Shmakov <ivan <at> siamics.net>:
You have taken responsibility. (Fri, 21 Nov 2014 19:32:04 GMT) Full text and rfc822 format available.

Notification sent to Ivan Shmakov <ivan <at> siamics.net>:
bug acknowledged by developer. (Fri, 21 Nov 2014 19:32:04 GMT) Full text and rfc822 format available.

Message #14 received at 18551-done <at> debbugs.gnu.org (full text, mbox):

From: Ivan Shmakov <ivan <at> siamics.net>
To: 18551-done <at> debbugs.gnu.org
Subject: Re: bug#18551: regression: erc-format-nick is now essentially an
 alias to eww-format-@nick 
Date: Fri, 21 Nov 2014 19:31:21 +0000
Version: 25.1

	I no longer observe the issue (as of 2014-11-18 build,
	cb4f666ade76.)  Per my reading of the Git log, it was fixed in
	Git master back this September:

Author:     Kelvin White <kwhite <at> gnu.org>
AuthorDate: Fri Sep 26 09:22:47 2014 -0400
Commit:     Kelvin White <kwhite <at> gnu.org>
CommitDate: Fri Sep 26 09:22:47 2014 -0400

    Regression fix - #bug18551

	As it seems, the emacs-24 branch was never affected by this bug.

-- 
FSF associate member #7257  http://boycottsystemd.org/  … 3013 B6A0 230E 334A




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 20 Dec 2014 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 236 days ago.

Previous Next


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