GNU bug report logs - #28495
25.2; follow.el; Missing lighter and unused variable

Previous Next

Package: emacs;

Reported by: Duncan Harvey <djh-emacs-bugs <at> syndrig.co.uk>

Date: Mon, 18 Sep 2017 15:13:02 UTC

Severity: minor

Found in versions 25.3, 22.1, 25.2

Fixed in version 26.0.91

Done: Glenn Morris <rgm <at> gnu.org>

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 28495 in the body.
You can then email your comments to 28495 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 bug-gnu-emacs <at> gnu.org:
bug#28495; Package emacs. (Mon, 18 Sep 2017 15:13:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Duncan Harvey <djh-emacs-bugs <at> syndrig.co.uk>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 18 Sep 2017 15:13:02 GMT) Full text and rfc822 format available.

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

From: Duncan Harvey <djh-emacs-bugs <at> syndrig.co.uk>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.2; follow.el; Missing lighter and unused variable
Date: Mon, 18 Sep 2017 15:19:17 +0100
In .../lisp/follow.el{.gz} `follow-mode-line-text' is defined but not used.  Also, the `follow-mode' minor-mode does not define a lighter.

My expectations, in order of preference:

1) Use the variable to define a lighter for `follow-mode', e.g.:

--- follow.el	2017-02-03 10:25:44.000000000 +0000
+++ enlightened-follow.el	2017-09-18 14:53:15.000000000 +0100
@@ -416,6 +416,7 @@ (define-minor-mode follow-mode

Keys specific to Follow mode:
\\{follow-mode-map}"
+  :lighter follow-mode-line-text
   :keymap follow-mode-map
   (if follow-mode
       (progn

2) Define a lighter for `follow-mode', but don't use `follow-mode-line-text'; remove definition of `follow-mode-line-text'.

3) Leave `follow-mode' without a lighter; remove definition of `follow-mode-line-text'.


In GNU Emacs 25.2.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 Version 10.9.5 (Build 13F1911))
of 2017-04-21 built on builder10-9.porkrind.org
Windowing system distributor 'Apple', version 10.3.1504
Configured using:
'configure --with-ns '--enable-locallisppath=/Library/Application
Support/Emacs/${version}/site-lisp:/Library/Application
Support/Emacs/site-lisp' --with-modules'

Configured features:
NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES

Important settings:
  value of $LANG: en_GB.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message dired format-spec rfc822 mml
mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu
cl-loaddefs pcase cl-lib mail-prsvr mail-utils time-date mule-util
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel ns-win ucs-normalize term/common-win tool-bar dnd fontset image
regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese charscript case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote kqueue cocoa ns multi-tty
make-network-process emacs)

Memory information:
((conses 16 195592 8052)
(symbols 48 19499 0)
(miscs 40 51 194)
(strings 32 14879 5891)
(string-bytes 1 430402)
(vectors 16 32840)
(vector-slots 8 649625 4411)
(floats 8 160 47)
(intervals 56 199 0)
(buffers 976 18))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#28495; Package emacs. (Tue, 19 Sep 2017 00:51:01 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: Duncan Harvey <djh-emacs-bugs <at> syndrig.co.uk>
Cc: 28495 <at> debbugs.gnu.org
Subject: Re: bug#28495: 25.2; follow.el; Missing lighter and unused variable
Date: Mon, 18 Sep 2017 20:50:34 -0400
Duncan Harvey wrote:

> In .../lisp/follow.el{.gz} `follow-mode-line-text' is defined but not used.  

Looks like it was used before commit 08a1dbe (ie, Emacs 22.1), via:

(setq minor-mode-alist
         (cons '(follow-mode follow-mode-line-text) minor-mode-alist))




bug Marked as found in versions 22.1 and 25.3. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 19 Sep 2017 00:53:02 GMT) Full text and rfc822 format available.

Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Wed, 22 Nov 2017 00:26:01 GMT) Full text and rfc822 format available.

Notification sent to Duncan Harvey <djh-emacs-bugs <at> syndrig.co.uk>:
bug acknowledged by developer. (Wed, 22 Nov 2017 00:26:02 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: 28495-done <at> debbugs.gnu.org
Subject: Re: bug#28495: 25.2; follow.el; Missing lighter and unused variable
Date: Tue, 21 Nov 2017 19:24:57 -0500
Version: 26.0.91

commit 17fc74d (HEAD, emacs-26)
Date:   Tue Nov 21 19:23:30 2017 -0500

    * lisp/follow.el (follow-mode): Restore mode line lighter.  (Bug#28495)

diff --git a/lisp/follow.el b/lisp/follow.el
index 4893cad..1ec6ff3 100644
--- a/lisp/follow.el
+++ b/lisp/follow.el
@@ -416,6 +416,7 @@ follow-mode
 
 Keys specific to Follow mode:
 \\{follow-mode-map}"
+  :lighter follow-mode-line-text
   :keymap follow-mode-map
   (if follow-mode
       (progn




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

This bug report was last modified 7 years and 178 days ago.

Previous Next


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