GNU bug report logs -
#16394
[PATCH] Custom option to turn Flyspell mode on in prog modes
Previous Next
Reported by: Matthias Meulien <orontee <at> gmail.com>
Date: Tue, 7 Jan 2014 19:22:02 UTC
Severity: wishlist
Tags: patch
Found in version 24.3
Done: Rüdiger Sonderfeld <ruediger <at> c-plusplus.de>
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 16394 in the body.
You can then email your comments to 16394 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16394
; Package
emacs
.
(Tue, 07 Jan 2014 19:22:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Matthias Meulien <orontee <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 07 Jan 2014 19:22:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Package: emacs
Tags: patch
Severity: wishlist
Version: 24.3
[ resent from
http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00353.html ]
> Looks good. But I don't think `turn-on-flyspell-prog' is needed
> because `flyspell-prog-mode' already turns the mode on
> unconditionally. (Although maybe the latter should be
> reconsidered.)
You are right. The following works well.
[0001-lisp-progmodes-prog-mode.el-Add-custom-options-to-mo.patch (text/x-diff, inline)]
>From 29893db295fa1d01f9eec0f3f029b33d9a523a49 Mon Sep 17 00:00:00 2001
From: Matthias Meulien <orontee <at> gmail.com>
Date: Thu, 12 Dec 2013 00:09:16 +0100
Subject: [PATCH] lisp/progmodes/prog-mode.el: Add custom options to mode hook
---
lisp/progmodes/prog-mode.el | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/lisp/progmodes/prog-mode.el b/lisp/progmodes/prog-mode.el
index b3ed328..f325a67 100644
--- a/lisp/progmodes/prog-mode.el
+++ b/lisp/progmodes/prog-mode.el
@@ -35,6 +35,12 @@
"Generic programming mode, from which others derive."
:group 'languages)
+(defcustom prog-mode-hook nil
+ "Normal hook run when entering Text mode and many related modes."
+ :type 'hook
+ :options '(flyspell-prog-mode abbrev-mode flymake-mode linum-mode)
+ :group 'prog-mode)
+
(defvar prog-mode-map
(let ((map (make-sparse-keymap)))
(define-key map [?\C-\M-q] 'prog-indent-sexp)
--
1.8.5.1
[Message part 3 (text/plain, inline)]
--
Matthias
Reply sent
to
Rüdiger Sonderfeld <ruediger <at> c-plusplus.de>
:
You have taken responsibility.
(Fri, 08 Aug 2014 14:11:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Matthias Meulien <orontee <at> gmail.com>
:
bug acknowledged by developer.
(Fri, 08 Aug 2014 14:11:03 GMT)
Full text and
rfc822 format available.
Message #10 received at 16394-done <at> debbugs.gnu.org (full text, mbox):
close 16394 r117667
Applied in r117667 (ChangeLog fix in r117668).
On Thursday 12 December 2013 00:17:25 Matthias Meulien wrote:
> Package: emacs
> Tags: patch
> Severity: wishlist
> Version: 24.3
>
> [ resent from
> http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00353.html ]
>
> > Looks good. But I don't think `turn-on-flyspell-prog' is needed
> > because `flyspell-prog-mode' already turns the mode on
> > unconditionally. (Although maybe the latter should be
> > reconsidered.)
>
> You are right. The following works well.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16394
; Package
emacs
.
(Fri, 08 Aug 2014 14:12:01 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
.
(Sat, 06 Sep 2014 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 10 years and 139 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.