[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/lentic e7f4d91f88 047/333: Support file-locals in linke
From: |
ELPA Syncer |
Subject: |
[elpa] externals/lentic e7f4d91f88 047/333: Support file-locals in linked-buffer. |
Date: |
Tue, 27 Feb 2024 12:59:59 -0500 (EST) |
branch: externals/lentic
commit e7f4d91f88348c6ce3b63f5d2333503f931e087d
Author: Phillip Lord <phillip.lord@newcastle.ac.uk>
Commit: Phillip Lord <phillip.lord@newcastle.ac.uk>
Support file-locals in linked-buffer.
We now add content to the buffer before selecting the major mode. This
means that file-local-variables in the linked-buffer will be correctly
interpreted. This was important for org-el support.
---
linked-buffer.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/linked-buffer.el b/linked-buffer.el
index edf5e32215..af0b522e4b 100644
--- a/linked-buffer.el
+++ b/linked-buffer.el
@@ -179,7 +179,11 @@ created."
(sec-file (oref conf :linked-file)))
;; make sure this-buffer knows about that-buffer
(oset conf :that-buffer that-buffer)
+ ;; insert the contents
+ (linked-buffer-update-contents conf)
;; init that-buffer with mode, file and config
+ ;; the mode must be init'd after adding content in case there are any
+ ;; file-local variables need to be evaled
(with-current-buffer that-buffer
(when sec-mode
(funcall sec-mode))
@@ -187,8 +191,6 @@ created."
(set-visited-file-name sec-file))
(setq linked-buffer-config
(linked-buffer-invert conf)))
- ;; and fix the contents
- (linked-buffer-update-contents conf)
that-buffer))
(defmethod linked-buffer-invert ((conf linked-buffer-default-configuration))
- [elpa] externals/lentic 8cc0df3b4c 022/333: Some batch manipulation functions added., (continued)
- [elpa] externals/lentic 8cc0df3b4c 022/333: Some batch manipulation functions added., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic a69e98a8c5 025/333: No longer needed., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 2a1f8bb5f5 026/333: Merge branch 'master' of github.com:phillord/linked-buffer, ELPA Syncer, 2024/02/27
- [elpa] externals/lentic fe3efb4ef6 040/333: evm/cask install, ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 3528da0a11 032/333: linked-buffer-asciidoc support., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 45d07d6416 034/333: Documentation cleanup., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 3405c13254 033/333: Change fundamental-mode to normal-mode, ELPA Syncer, 2024/02/27
- [elpa] externals/lentic de2450d3e4 043/333: Removed condition-case-no-debug, ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 049330626e 044/333: Version number changes., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 661cb19252 028/333: Changes to test setup., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic e7f4d91f88 047/333: Support file-locals in linked-buffer.,
ELPA Syncer <=
- [elpa] externals/lentic cf5f4a3b72 046/333: pabbrev handling was broken., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 1a181b7502 054/333: m-buffer not need in cask, as declared in headers., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 9194eac956 049/333: Linked-buffer minor mode added., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 96466482ca 052/333: Cosmetic and documentation changes., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 1bf2b709e0 063/333: Use three arguments for m-buffer-replace-match, ELPA Syncer, 2024/02/27
- [elpa] externals/lentic b6b9293635 061/333: Added file local functions., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic bbc60fc6d4 056/333: Support el-to-org., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic a2d2e6dfcd 065/333: Literate documentation for linked-buffer-org., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic cd2ee3b53c 068/333: Point syncing is now an option., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic fead80b26a 078/333: First nearly working version., ELPA Syncer, 2024/02/27