yasnippet.el: Bump version to trigger release

* yasnippet-tests.el (string-suffix-p): Remove fallback definition.
This commit is contained in:
Stefan Monnier 2025-06-02 09:42:36 -04:00
parent 272b6067f1
commit dd570a6b22
3 changed files with 4 additions and 14 deletions

3
NEWS
View File

@ -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).

View File

@ -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))

View File

@ -5,7 +5,7 @@
;; João Távora <joaotavora@gmail.com>,
;; Noam Postavsky <npostavs@gmail.com>
;; Maintainer: Noam Postavsky <npostavs@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