emacs-diffs
[Top][All Lists]
Advanced

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

emacs-29 a2953ea3003 2/2: Merge branch 'emacs-29' of git.savannah.gnu.or


From: Eli Zaretskii
Subject: emacs-29 a2953ea3003 2/2: Merge branch 'emacs-29' of git.savannah.gnu.org:/srv/git/emacs into emacs-29
Date: Tue, 19 Sep 2023 08:11:05 -0400 (EDT)

branch: emacs-29
commit a2953ea30034e9ae5a8be8198bdd8a3d63f87777
Merge: a3a9ed40d89 5cba5ee8905
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    Merge branch 'emacs-29' of git.savannah.gnu.org:/srv/git/emacs into emacs-29
---
 etc/NEWS        | 6 +++---
 lisp/treesit.el | 7 ++++++-
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/etc/NEWS b/etc/NEWS
index 2aa1f148f90..1b3532b5657 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -35,10 +35,10 @@ using 'emacsclient':
 
 Previously, users had to manually configure their GNU/Linux desktop
 environment to open 'org-protocol' links in Emacs.  These links should
-now open in Emacs automatically, as the 'emacsclient.desktop' file now
+now open in Emacs automatically, as the "emacsclient.desktop" file now
 arranges for Emacs to be the default application for the 'org-protocol'
-URI scheme.  See the Org mode manual, Info node '(org) Protocols for
-External Access' for more details.
+URI scheme.  See the Org mode manual, Info node "(org) Protocols" for
+more details.
 
 
 * Changes in Emacs 29.2
diff --git a/lisp/treesit.el b/lisp/treesit.el
index 41ebc62fca6..8163ffdf329 100644
--- a/lisp/treesit.el
+++ b/lisp/treesit.el
@@ -544,7 +544,12 @@ region."
             (when (eq (treesit-parser-language parser)
                       language)
               (treesit-parser-set-included-ranges
-               parser set-ranges))))))))
+               parser (or set-ranges
+                          ;; When there's no range for the embedded
+                          ;; language, set it's range to a dummy (1
+                          ;; . 1), otherwise it would be set to the
+                          ;; whole buffer, which is not what we want.
+                          `((,(point-min) . ,(point-min))))))))))))
 
 (defun treesit-parser-range-on (parser beg &optional end)
   "Check if PARSER's range covers the portion between BEG and END.



reply via email to

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