GNU bug report logs - #13779
24.2; How to turn on flymake-mode automatically?

Previous Next

Package: emacs;

Reported by: Reuben Thomas <rrt <at> sc3d.org>

Date: Fri, 22 Feb 2013 00:28:02 UTC

Severity: wishlist

Found in version 24.2

Done: Lars Ingebrigtsen <larsi <at> gnus.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 13779 in the body.
You can then email your comments to 13779 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#13779; Package emacs. (Fri, 22 Feb 2013 00:28:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Reuben Thomas <rrt <at> sc3d.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 22 Feb 2013 00:28:03 GMT) Full text and rfc822 format available.

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

From: Reuben Thomas <rrt <at> sc3d.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2; How to turn on flymake-mode automatically?
Date: Fri, 22 Feb 2013 00:26:10 +0000
In flymake-mode.el is the following commented-out line:

      ;;+(add-hook 'find-file-hook 'flymake-find-file-hook)

It has not been touched since 2005, and the commit log then suggests it
was merely moved from another place; I can't find any other reference to
it in the bzr logs.

According to the manual, adding this hook to find-file-hook is the
recommended way to activate flymake-mode automatically, and that is
never done. Nor can I find a way to turn flymake-mode on automatically
with customize; it seems the best I can do is copy the above line,
uncommented, into my Emacs initialization file.

It is far from obvious that the line above should be uncommented, but if
not, maybe it should be removed, and a more user-friendly and standard
way of activating flymake-mode automatically added?


In GNU Emacs 24.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.13)
 of 2012-12-13 on komainu, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.11300000
Configured using:
 `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu'
 '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib'
 '--localstatedir=/var/lib' '--infodir=/usr/share/info'
 '--mandir=/usr/share/man' '--with-pop=yes'
 '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.2/site-lisp:/usr/share/emacs/site-lisp'
 '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes'
 '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars'
 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector
 --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall'
 'CPPFLAGS=-D_FORTIFY_SOURCE=2''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: en_GB.UTF-8
  value of $LC_NUMERIC: en_GB.UTF-8
  value of $LC_TIME: en_GB.UTF-8
  value of $LANG: en_GB.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Bzr-Log-View

Minor modes in effect:
  diff-auto-refine-mode: t
  recentf-mode: t
  show-paren-mode: t
  server-mode: t
  savehist-mode: t
  minibuffer-electric-default-mode: t
  iswitchb-mode: t
  icomplete-mode: t
  global-auto-revert-mode: t
  dtrt-indent-mode: t
  desktop-save-mode: t
  TeX-PDF-mode: t
  TeX-source-correlate-mode: t
  tooltip-mode: t
  mouse-wheel-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
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> C-x 
o C-x C-f C-g C-h f f l y m a k e - m o d e <return> 
C-e C-b C-b C-b C-b C-b C-b <return> C-s f i n d - 
f i l e - h o o k C-a <help-echo> <down-mouse-1> <mouse-1> 
<help-echo> C-x C-f ~ / S o f <tab> <M-backspace> r 
e p o / e m a c s / s i t e <tab> <help-echo> <M-backspace> 
l i s p / p r o g <tab> f l <tab> <return> C-x 1 C-s 
a d d - h o o k C-a C-n C-n C-n C-x v g C-x 0 C-x v 
g C-x 0 r C-_ C-x v g f C-x 0 M-< C-x v g C-s a d d 
- h o o k C-n C-n C-n C-a l C-n C-n C-n C-n C-n C-n 
C-n C-n C-n C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p 
C-p C-p C-p C-p C-p C-x o C-a C-p C-n C-SPC C-n <C-insert> 
M-x r e p o r t - e m a c s - b u g <return> C-g C-g 
C-g C-x b <return> C-x v l C-x 1 C-s h g o o k <backspace> 
<backspace> <backspace> <backspace> o o k C-s C-s C-s 
C-s C-s C-a C-s C-s C-s C-s M-< C-s f i n d - f i l 
e - C-s C-s C-s C-a M-> C-a C-e C-b C-b <return> C-s 
C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s 
C-s C-a M-> M-x r e p o r t - e m a c s - b u g <r
eturn>

Recent messages:
byte-code: End of buffer [2 times]
byte-code: Beginning of buffer [8 times]
Mark set
Quit [3 times]
Mark saved where search started [2 times]
Mark set
Mark saved where search started
Mark set
Mark saved where search started
Mark set

Load-path shadows:
/home/rrt/local/share/emacs/site-lisp/browse-kill-ring hides /usr/share/emacs24/site-lisp/emacs-goodies-el/browse-kill-ring
/home/rrt/local/share/emacs/site-lisp/dict hides /usr/share/emacs24/site-lisp/emacs-goodies-el/dict
/home/rrt/.emacs.d/elpa/dictionary-1.8.7/dictionary-init hides /usr/share/emacs24/site-lisp/dictionary-el/dictionary-init
/home/rrt/.emacs.d/elpa/dictionary-1.8.7/dictionary hides /usr/share/emacs24/site-lisp/dictionary-el/dictionary
/home/rrt/.emacs.d/elpa/dictionary-1.8.7/link hides /usr/share/emacs24/site-lisp/dictionary-el/link
/home/rrt/.emacs.d/elpa/dictionary-1.8.7/connection hides /usr/share/emacs24/site-lisp/dictionary-el/connection
/usr/share/emacs24/site-lisp/auctex/tex-style hides /usr/share/emacs/site-lisp/auctex/tex-style
/usr/share/emacs24/site-lisp/auctex/tex-mik hides /usr/share/emacs/site-lisp/auctex/tex-mik
/usr/share/emacs24/site-lisp/auctex/multi-prompt hides /usr/share/emacs/site-lisp/auctex/multi-prompt
/usr/share/emacs24/site-lisp/auctex/tex-jp hides /usr/share/emacs/site-lisp/auctex/tex-jp
/usr/share/emacs24/site-lisp/auctex/tex-info hides /usr/share/emacs/site-lisp/auctex/tex-info
/usr/share/emacs24/site-lisp/auctex/plain-tex hides /usr/share/emacs/site-lisp/auctex/plain-tex
/usr/share/emacs24/site-lisp/auctex/latex hides /usr/share/emacs/site-lisp/auctex/latex
/usr/share/emacs24/site-lisp/auctex/preview hides /usr/share/emacs/site-lisp/auctex/preview
/usr/share/emacs24/site-lisp/auctex/tex hides /usr/share/emacs/site-lisp/auctex/tex
/usr/share/emacs24/site-lisp/auctex/texmathp hides /usr/share/emacs/site-lisp/auctex/texmathp
/usr/share/emacs24/site-lisp/auctex/context-nl hides /usr/share/emacs/site-lisp/auctex/context-nl
/usr/share/emacs24/site-lisp/auctex/tex-font hides /usr/share/emacs/site-lisp/auctex/tex-font
/usr/share/emacs24/site-lisp/auctex/toolbar-x hides /usr/share/emacs/site-lisp/auctex/toolbar-x
/usr/share/emacs24/site-lisp/auctex/tex-buf hides /usr/share/emacs/site-lisp/auctex/tex-buf
/usr/share/emacs24/site-lisp/auctex/bib-cite hides /usr/share/emacs/site-lisp/auctex/bib-cite
/usr/share/emacs24/site-lisp/auctex/context-en hides /usr/share/emacs/site-lisp/auctex/context-en
/usr/share/emacs24/site-lisp/auctex/tex-fold hides /usr/share/emacs/site-lisp/auctex/tex-fold
/usr/share/emacs24/site-lisp/auctex/tex-bar hides /usr/share/emacs/site-lisp/auctex/tex-bar
/usr/share/emacs24/site-lisp/auctex/context hides /usr/share/emacs/site-lisp/auctex/context
/usr/share/emacs24/site-lisp/auctex/prv-emacs hides /usr/share/emacs/site-lisp/auctex/prv-emacs
/usr/share/emacs24/site-lisp/auctex/font-latex hides /usr/share/emacs/site-lisp/auctex/font-latex
/usr/share/emacs/site-lisp/golang-mode/go-mode-load hides /usr/share/emacs/24.2/site-lisp/golang-mode/go-mode-load
/usr/share/emacs/site-lisp/golang-mode/go-mode hides /usr/share/emacs/24.2/site-lisp/golang-mode/go-mode
/usr/share/emacs/24.2/site-lisp/cmake-data/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode
/usr/share/emacs/24.2/site-lisp/cdargs hides /usr/share/emacs/site-lisp/cdargs
/usr/share/emacs/site-lisp/rst hides /usr/share/emacs/24.2/lisp/textmodes/rst
/usr/share/emacs24/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/24.2/lisp/textmodes/ispell
/usr/share/emacs24/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/24.2/lisp/textmodes/flyspell

Features:
(shadow sort mail-extr emacsbug message format-spec rfc822 mml mml-sec
mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils add-log
log-view pcvs-util vc-annotate vc ediff-merg ediff-diff ediff-wind
ediff-help ediff-util ediff-mult ediff-init ediff vc-dispatcher vc-bzr
find-func etags latexenc preview prv-emacs tex-buf font-latex latex
tex-style misearch multi-isearch m4-mode conf-mode newcomment make-mode
pp help-mode view lua-mode nroff-mode autoconf autoconf-mode sh-script
executable todoo noutline outline flymake compile comint ansi-color ring
inform-mode diff-git diff-mode vc-git cc-mode cc-fonts cc-guess cc-menus
cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs jka-compr
face-remap flyspell ispell smart-quotes auto-dictionary-autoloads
c-eldoc-autoloads dictionary-autoloads diff-git-autoloads
dired-isearch-autoloads full-ack-autoloads guess-style-autoloads
kill-ring-search-autoloads magit-autoloads mv-shell-autoloads
tumble-autoloads http-post-simple-autoloads package tabulated-list
completing-help recentf tree-widget wid-edit uniquify paren server
savehist minibuf-eldef iswitchb icomplete autorevert dtrt-indent desktop
cus-start cus-load ropemacs pymacs warnings url-util url-parse
auth-source eieio byte-opt bytecomp byte-compile cconv macroexp
gnus-util password-cache url-vars mm-util mail-prsvr tex dbus xml
regexp-opt remember user-site-loaddefs advice advice-preload yasnippet
help-fns derived edmacro kmacro easymenu assoc cl muse-autoloads
go-mode-load emacs-goodies-el emacs-goodies-custom
emacs-goodies-loaddefs easy-mmode preview-latex tex-site auto-loads
time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd
tool-bar dnd fontset image fringe lisp-mode register page menu-bar
rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax
facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak
czech european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces
cus-face files text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget hashtable-print-readable backquote
make-network-process dbusbind dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)

-- 
http://rrt.sc3d.org/




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13779; Package emacs. (Mon, 20 May 2013 13:28:09 GMT) Full text and rfc822 format available.

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

From: Reuben Thomas <rrt <at> sc3d.org>
To: 13779 <at> debbugs.gnu.org
Subject: Re: 24.2; How to turn on flymake-mode automatically?
Date: Mon, 20 May 2013 14:27:03 +0100
[Message part 1 (text/plain, inline)]
On 22 February 2013 00:26, Reuben Thomas <rrt <at> sc3d.org> wrote:

> In flymake-mode.el is the following commented-out line:
>
>       ;;+(add-hook 'find-file-hook 'flymake-find-file-hook)
>
> It has not been touched since 2005, and the commit log then suggests it
> was merely moved from another place; I can't find any other reference to
> it in the bzr logs.
>
> According to the manual, adding this hook to find-file-hook is the
> recommended way to activate flymake-mode automatically, and that is
> never done. Nor can I find a way to turn flymake-mode on automatically
> with customize; it seems the best I can do is copy the above line,
> uncommented, into my Emacs initialization file.
>
> It is far from obvious that the line above should be uncommented, but if
> not, maybe it should be removed, and a more user-friendly and standard
> way of activating flymake-mode automatically added?
>

Ping? I've been using this setting in my init file without problems for a
while now…

-- 
http://rrt.sc3d.org
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13779; Package emacs. (Mon, 20 May 2013 14:32:01 GMT) Full text and rfc822 format available.

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

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#13779: 24.2; How to turn on flymake-mode automatically?
Date: Mon, 20 May 2013 16:32:48 +0200
Am 20.05.2013 15:27, schrieb Reuben Thomas:
> On 22 February 2013 00:26, Reuben Thomas <rrt <at> sc3d.org> wrote:
>
>> In flymake-mode.el is the following commented-out line:
>>
>>        ;;+(add-hook 'find-file-hook 'flymake-find-file-hook)
>>
>> It has not been touched since 2005, and the commit log then suggests it
>> was merely moved from another place; I can't find any other reference to
>> it in the bzr logs.
>>
>> According to the manual, adding this hook to find-file-hook is the
>> recommended way to activate flymake-mode automatically, and that is
>> never done. Nor can I find a way to turn flymake-mode on automatically
>> with customize; it seems the best I can do is copy the above line,
>> uncommented, into my Emacs initialization file.
>>
>> It is far from obvious that the line above should be uncommented, but if
>> not, maybe it should be removed, and a more user-friendly and standard
>> way of activating flymake-mode automatically added?
>>
>
> Ping? I've been using this setting in my init file without problems for a
> while now…
>

GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 2.24.14) of 2013-03-05

M-x flymake-mode RET

toggles it right from the spot.

Andreas





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13779; Package emacs. (Mon, 04 Aug 2014 21:54:01 GMT) Full text and rfc822 format available.

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

From: Reuben Thomas <rrt <at> sc3d.org>
To: 13779 <at> debbugs.gnu.org
Subject: Re: 24.2; How to turn on flymake-mode automatically?
Date: Mon, 4 Aug 2014 22:53:49 +0100
[Message part 1 (text/plain, inline)]
On 20 May 2013 14:27, Reuben Thomas <rrt <at> sc3d.org> wrote:

>
> Ping? I've been using this setting in my init file without problems for a
> while now…
>

Unfortunately, I never saw Andreas Röhler's reply of later that day. He
wrote:


> GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 2.24.14) of 2013-03-05
>
> M-x flymake-mode RET
>
> toggles it right from the spot.


This is true, but I don't see how it addresses my question (and I'm not
quite sure what "toggles it right from the spot" means). I asked about the
line:

       ;;+(add-hook 'find-file-hook 'flymake-find-file-hook)

in the source. Should it be removed? Or uncommented? For me, adding it to
my global Emacs configuration works fine, suggesting it can indeed be
uncommented, so that when flymake-mode is turned on, it is activated
automatically in new buffers. Also, currently there seems to be no way of
customizing flymake-mode to be on from startup, which itself would seem to
require a new customization.

-- 
http://rrt.sc3d.org
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13779; Package emacs. (Mon, 23 Aug 2021 01:34:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Reuben Thomas <rrt <at> sc3d.org>
Cc: 13779 <at> debbugs.gnu.org
Subject: Re: bug#13779: 24.2; How to turn on flymake-mode automatically?
Date: Mon, 23 Aug 2021 03:33:02 +0200
Reuben Thomas <rrt <at> sc3d.org> writes:

> This is true, but I don't see how it addresses my question (and I'm not quite
> sure what "toggles it right from the spot" means). I asked about the line:
>
>        ;;+(add-hook 'find-file-hook 'flymake-find-file-hook)
>
> in the source. Should it be removed? Or uncommented?

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

This was apparently further reworked in

commit 94a88c1ae98b1bf7ab80ae9cdd4d6e16b36597ef
Author:     João Távora <joaotavora <at> gmail.com>
AuthorDate: Tue Sep 26 00:45:46 2017 +0100

    New Flymake API variable flymake-diagnostic-functions

and the uncommented line has now been removed (and the hook function is
no longer documented).  So I guess that's been decided now, and I'm
closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 13779 <at> debbugs.gnu.org and Reuben Thomas <rrt <at> sc3d.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 23 Aug 2021 01:34:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 20 Sep 2021 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 209 days ago.

Previous Next


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