diff options
| -rw-r--r-- | doc/lispref/compile.texi | 18 | ||||
| -rw-r--r-- | lisp/treesit.el | 5 |
2 files changed, 15 insertions, 8 deletions
diff --git a/doc/lispref/compile.texi b/doc/lispref/compile.texi index cdbf64036da..6ae6755ad76 100644 --- a/doc/lispref/compile.texi +++ b/doc/lispref/compile.texi | |||
| @@ -1120,16 +1120,18 @@ the trampoline generation, unless you know that all the trampolines | |||
| 1120 | needed by your Lisp programs are already compiled and accessible to | 1120 | needed by your Lisp programs are already compiled and accessible to |
| 1121 | Emacs. | 1121 | Emacs. |
| 1122 | 1122 | ||
| 1123 | The value of this variable can also be a string, in which case it is | 1123 | The value of this variable can also be a string, in which case it |
| 1124 | interpreted as the name of a directory in which to store the generated | 1124 | specifies the name of a directory in which to store the generated |
| 1125 | trampoline @file{*.eln} files, overriding the directories specified by | 1125 | trampoline @file{*.eln} files, overriding the directories in |
| 1126 | @code{native-comp-eln-load-path}. This is useful if you want the | 1126 | @code{native-comp-eln-load-path}. This is useful if you want the |
| 1127 | trampolines to be generated as needed, but don't want to store them | 1127 | trampolines to be generated as needed, but don't want to store them |
| 1128 | under the user's @env{HOME} directory or the other public directories | 1128 | under the user's @env{HOME} directory or in the other public |
| 1129 | where @file{*.eln} files are kept. However, unlike with directories | 1129 | directories where @file{*.eln} files are kept. However, unlike with |
| 1130 | in @code{native-comp-eln-load-path}, the trampolines will be stored in | 1130 | directories in @code{native-comp-eln-load-path}, the trampolines will |
| 1131 | the directory given by the value of this variable, not in its | 1131 | be stored in the directory given by the value of this variable, not in |
| 1132 | version-specific subdirectory. | 1132 | its version-specific subdirectory. If the name of this directory is |
| 1133 | not absolute, it is interpreted relative to | ||
| 1134 | @code{invocation-directory} (@pxref{System Environment}) | ||
| 1133 | 1135 | ||
| 1134 | If this variable is non-@code{nil}, and Emacs needs to produce a | 1136 | If this variable is non-@code{nil}, and Emacs needs to produce a |
| 1135 | trampoline, but it cannot find any writable directory to store the | 1137 | trampoline, but it cannot find any writable directory to store the |
diff --git a/lisp/treesit.el b/lisp/treesit.el index b71b5b486d5..297812f23f7 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el | |||
| @@ -1204,6 +1204,11 @@ See `treesit-simple-indent-presets'.") | |||
| 1204 | (cons 'grand-parent | 1204 | (cons 'grand-parent |
| 1205 | (lambda (_n parent &rest _) | 1205 | (lambda (_n parent &rest _) |
| 1206 | (treesit-node-start (treesit-node-parent parent)))) | 1206 | (treesit-node-start (treesit-node-parent parent)))) |
| 1207 | (cons 'great-grand-parent | ||
| 1208 | (lambda (_n parent &rest _) | ||
| 1209 | (treesit-node-start | ||
| 1210 | (treesit-node-parent | ||
| 1211 | (treesit-node-parent parent))))) | ||
| 1207 | (cons 'parent-bol (lambda (_n parent &rest _) | 1212 | (cons 'parent-bol (lambda (_n parent &rest _) |
| 1208 | (save-excursion | 1213 | (save-excursion |
| 1209 | (goto-char (treesit-node-start parent)) | 1214 | (goto-char (treesit-node-start parent)) |