emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ELPA-diffs] /srv/bzr/emacs/elpa r143: 2011-10-06 Eric Schulte <address@


From: Eric Schulte
Subject: [ELPA-diffs] /srv/bzr/emacs/elpa r143: 2011-10-06 Eric Schulte <address@hidden>
Date: Thu, 06 Oct 2011 12:24:28 -0600
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 143
committer: Eric Schulte <address@hidden>
branch nick: elpa
timestamp: Thu 2011-10-06 12:24:28 -0600
message:
  2011-10-06  Eric Schulte <address@hidden>
  
  * shen-mode.el (cc-mode): Explicitly require cc-mode as some c comment
    functions are used.
    (shen-mode-map): Improve M-j behavior in comments.
modified:
  packages/shen-mode/shen-mode.el
=== modified file 'packages/shen-mode/shen-mode.el'
--- a/packages/shen-mode/shen-mode.el   2011-10-06 17:37:20 +0000
+++ b/packages/shen-mode/shen-mode.el   2011-10-06 18:24:28 +0000
@@ -28,6 +28,7 @@
 
 ;;; Code:
 (require 'lisp-mode)
+(require 'cc-mode)
 (require 'shen-functions)
 (require 'imenu)
 
@@ -37,8 +38,14 @@
   :group 'shen)
 
 (defvar shen-mode-map
-  ((lambda (map) (set-keymap-parent map lisp-mode-shared-map) map)
-   (make-sparse-keymap))
+  (let ((map (make-sparse-keymap)))
+    (set-keymap-parent map lisp-mode-shared-map)
+    (substitute-key-definition 'indent-new-comment-line
+                               'c-indent-new-comment-line
+                               map global-map)
+    (substitute-key-definition 'fill-paragraph 'c-fill-paragraph
+                               map global-map)
+    map)
   "Currently just inherits from `lisp-mode-shared-map'.")
 
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]