branch: externals/yasnippet commit dd570a6b22364212fff9769cbf4376bdbd7a63c5 Author: Stefan Monnier <monn...@iro.umontreal.ca> Commit: Stefan Monnier <monn...@iro.umontreal.ca>
yasnippet.el: Bump version to trigger release * yasnippet-tests.el (string-suffix-p): Remove fallback definition. --- NEWS | 3 ++- yasnippet-tests.el | 13 +------------ yasnippet.el | 2 +- 3 files changed, 4 insertions(+), 14 deletions(-) diff --git a/NEWS b/NEWS index 6e65fdc491..a7bb0926f7 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 cef25484bf..49d18b8012 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 1f9ac9b248..cbeebd1253 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -5,7 +5,7 @@ ;; João Távora <joaotav...@gmail.com>, ;; Noam Postavsky <npost...@gmail.com> ;; Maintainer: Noam Postavsky <npost...@gmail.com> -;; Version: 0.14.2 +;; Version: 0.14.3 ;; X-URL: http://github.com/joaotavora/yasnippet ;; Keywords: convenience, emulation ;; URL: http://github.com/joaotavora/yasnippet