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

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

[elpa] master f121645 38/60: Fix #607; avoid Emacs bug #21824


From: João Távora
Subject: [elpa] master f121645 38/60: Fix #607; avoid Emacs bug #21824
Date: Thu, 21 Jan 2016 22:36:01 +0000

branch: master
commit f12164551fce45bb625b4a97e7fd95aa298c9b96
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>

    Fix #607; avoid Emacs bug #21824
    
    See also
    - https://github.com/capitaomorte/yasnippet/issues/607
    - http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21824
    
    * yasnippet.el (yas--on-field-overlay-modification): Do nothing if
      yas--active-field-overlay is not an overlay.
---
 yasnippet.el |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/yasnippet.el b/yasnippet.el
index 4f06a48..adfe88a 100644
--- a/yasnippet.el
+++ b/yasnippet.el
@@ -3402,6 +3402,7 @@ Only clears the field if it hasn't been modified and it 
point it
 at field start.  This hook doesn't do anything if an undo is in
 progress."
   (unless (or yas--inhibit-overlay-hooks
+              (not (overlayp yas--active-field-overlay)) ; Avoid Emacs bug 
#21824.
               (yas--undo-in-progress))
     (let* ((field (overlay-get overlay 'yas--field))
            (snippet (overlay-get yas--active-field-overlay 'yas--snippet)))



reply via email to

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