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

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

[elpa] master 32ee5cb 021/177: Closes #415: remove c-specific hacks, ha


From: João Távora
Subject: [elpa] master 32ee5cb 021/177: Closes #415: remove c-specific hacks, harmful on emacs 24.3
Date: Sat, 28 Mar 2015 15:40:33 +0000

branch: master
commit 32ee5cbde5313985c889d1e4bfd6d7d836f4ca3d
Author: Joao Tavora <address@hidden>
Commit: Joao Tavora <address@hidden>

    Closes #415: remove c-specific hacks, harmful on emacs 24.3
---
 yasnippet.el |   27 ---------------------------
 1 files changed, 0 insertions(+), 27 deletions(-)

diff --git a/yasnippet.el b/yasnippet.el
index 91aabd9..64b0434 100644
--- a/yasnippet.el
+++ b/yasnippet.el
@@ -4394,33 +4394,6 @@ and return the directory.  Return nil if not found."
                  (setq file nil))))
         root))))
 
-;; `c-neutralize-syntax-in-CPP` sometimes fires "End of Buffer" error
-;; (when it execute forward-char) and interrupt the after change
-;; hook. Thus prevent the insert-behind hook of yasnippet to be
-;; invoked. Here's a way to reproduce it:
-
-;; # open a *new* Emacs.
-;; # load yasnippet.
-;; # open a *new* .cpp file.
-;; # input "inc" and press TAB to expand the snippet.
-;; # select the `#include <...>` snippet.
-;; # type inside `<>`
-
-(defadvice c-neutralize-syntax-in-CPP
-  (around yas--mp/c-neutralize-syntax-in-CPP activate)
-  "Adviced `c-neutralize-syntax-in-CPP' to properly
-handle the `end-of-buffer' error fired in it by calling
-`forward-char' at the end of buffer."
-  (condition-case err
-      ad-do-it
-    (error (message (error-message-string err)))))
-
-;; disable c-electric-* serial command in YAS fields
-(add-hook 'c-mode-common-hook
-          '(lambda ()
-             (dolist (k '(":" ">" ";" "<" "{" "}"))
-               (define-key (symbol-value (make-local-variable 'yas-keymap))
-                 k 'self-insert-command))))
 
 ;;; Backward compatibility to yasnippet <= 0.7
 



reply via email to

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