Package: emacs22
Version: 22.2+2-3
Severity: wishlist
Hi,
I enjoy using flymake, but it's not useful when target file is read-only, and
always seems to give an error dialog.
I do
(add-hook 'find-file-hook 'flymake-find-file-hook)
flymake-find-file-hook should probably check for read-only status of
the source code before it tries to enable flymake. this can be
achieved by adding '(not buffer-read-only)' to flymake-find-file-hook
like the following:
(defun flymake-find-file-hook ()
(when (and (not (local-variable-p 'flymake-mode (current-buffer)))
(flymake-can-syntax-check-file buffer-file-name)
(not buffer-read-only))
(flymake-mode)
(flymake-log 3 "automatically turned ON flymake mode")))
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=ja_JP.eucJP, LC_CTYPE=ja_JP.eucJP (charmap=EUC-JP) (ignored:
LC_ALL set to ja_JP.eucJP)
Shell: /bin/sh linked to /bin/bash
Versions of packages emacs22 depends on:
ii emacs22-bin-common 22.2+2-3 The GNU Emacs editor's shared, arc
ii libasound2 1.0.16-2 ALSA library
ii libc6 2.7-13 GNU C Library: Shared libraries
ii libgif4 4.1.6-5 library for GIF images (library)
ii libice6 2:1.0.4-1 X11 Inter-Client Exchange library
ii libjpeg62 6b-14 The Independent JPEG Group's JPEG
ii libncurses5 5.6+20080925-1 shared libraries for terminal hand
ii libpng12-0 1.2.27-1 PNG library - runtime
ii libsm6 2:1.0.3-2 X11 Session Management library
ii libtiff4 3.8.2-11 Tag Image File Format (TIFF) libra
ii libx11-6 2:1.1.5-2 X11 client-side library
ii libxext6 2:1.0.4-1 X11 miscellaneous extension librar
ii libxmu6 2:1.0.4-1 X11 miscellaneous utility library
ii libxpm4 1:3.5.7-1 X11 pixmap library
ii libxt6 1:1.0.5-3 X11 toolkit intrinsics library
ii xaw3dg 1.5+E-17 Xaw3d widget set
ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime
emacs22 recommends no packages.
Versions of packages emacs22 suggests:
ii emacs22-common-non-dfsg 22.2+2-1.1 GNU Emacs shared, architecture ind
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]