From 07bada86349792cf02862ba2a56d14e1b71bd783 Mon Sep 17 00:00:00 2001 From: Zhang Chiyuan Date: Sun, 23 Mar 2008 00:45:08 +0000 Subject: [PATCH] bug fix: failed to recognize user customized yas/trigger-key --- doc/changelog.rst | 5 +++++ yasnippet.el | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/doc/changelog.rst b/doc/changelog.rst index 380b98e..41131c1 100644 --- a/doc/changelog.rst +++ b/doc/changelog.rst @@ -6,6 +6,11 @@ ChangeLog :Contact: pluskid@gmail.com :Date: 2008-03-22 +0.4.3 / 2008-03-23 +================== + +* Bug fix: failed to recognize user customized yas/trigger-key. + 0.4.2 / 2008-03-22 ================== diff --git a/yasnippet.el b/yasnippet.el index 4d0b0fc..c447f60 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -3,7 +3,7 @@ ;; Copyright 2008 pluskid ;; ;; Author: pluskid -;; Version: 0.4.2 +;; Version: 0.4.3 ;; X-URL: http://code.google.com/p/yasnippet/ ;; This file is free software; you can redistribute it and/or modify @@ -159,7 +159,7 @@ Here's an example: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Internal variables ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -(defvar yas/version "0.4.2") +(defvar yas/version "0.4.3") (defvar yas/snippet-tables (make-hash-table) "A hash table of snippet tables corresponding to each major-mode.") @@ -214,7 +214,6 @@ Here's an example: "Hook to call when yas/minor-mode is on.") (defvar yas/minor-mode-off-hook nil "Hook to call when yas/minor-mode is off.") -(define-key yas/minor-mode-map yas/trigger-key 'yas/expand) (define-minor-mode yas/minor-mode "Toggle YASnippet mode. With no argument, this command toggles the mode. @@ -229,7 +228,8 @@ You can customize the key through `yas/trigger-key'." nil ;; The indicator for the mode line. " yas" - :group 'editing) + :group 'editing + (define-key yas/minor-mode-map yas/trigger-key 'yas/expand)) (defun yas/minor-mode-on () "Turn on YASnippet minor mode."