diff --git a/NEWS b/NEWS index 6e65fdc..a7bb092 100644 --- a/NEWS +++ b/NEWS @@ -1,10 +1,11 @@ Yasnippet NEWS -- history of user-visible changes. -Copyright (C) 2017-2024 Free Software Foundation, Inc. +Copyright (C) 2017-2025 Free Software Foundation, Inc. See the end of the file for license conditions. Changes since 0.14.0: +- Silence warning about missing lexical-binding cookie. - Bug fixes and code cleanups. - Accept ${N} as another syntax for $N (issue #1012). - Understand the new AUCTeX modes hierarchy (issue #1193). diff --git a/yasnippet-tests.el b/yasnippet-tests.el index cef2548..49d18b8 100644 --- a/yasnippet-tests.el +++ b/yasnippet-tests.el @@ -138,17 +138,6 @@ This lets `yas--maybe-expand-from-keymap-filter' work as expected." ;;; Older emacsen ;;; -(unless (fboundp 'string-suffix-p) - ;; introduced in Emacs 24.4 - (defun string-suffix-p (suffix string &optional ignore-case) - "Return non-nil if SUFFIX is a suffix of STRING. -If IGNORE-CASE is non-nil, the comparison is done without paying -attention to case differences." - (let ((start-pos (- (length string) (length suffix)))) - (and (>= start-pos 0) - (eq t (compare-strings suffix nil nil - string start-pos nil ignore-case)))))) - ;;; Snippet mechanics @@ -1735,7 +1724,7 @@ TODO: be meaner" (org-mode) (yas-minor-mode 1) (insert "#+BEGIN_SRC " mode "\nT\n#+END_SRC") - (if (fboundp 'font-lock-ensure) + (if (fboundp 'font-lock-ensure) ;Emacs≥25 (font-lock-ensure) (jit-lock-fontify-now)) (re-search-backward "^T$") (goto-char (match-end 0)) diff --git a/yasnippet.el b/yasnippet.el index 1f9ac9b..cbeebd1 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -5,7 +5,7 @@ ;; João Távora , ;; Noam Postavsky ;; Maintainer: Noam Postavsky -;; Version: 0.14.2 +;; Version: 0.14.3 ;; X-URL: http://github.com/joaotavora/yasnippet ;; Keywords: convenience, emulation ;; URL: http://github.com/joaotavora/yasnippet