emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/lentic 5b6d83c4fc 227/333: show-all on create in org-mo


From: ELPA Syncer
Subject: [elpa] externals/lentic 5b6d83c4fc 227/333: show-all on create in org-mode.
Date: Tue, 27 Feb 2024 13:00:37 -0500 (EST)

branch: externals/lentic
commit 5b6d83c4fc08e407260d278625a344abfc635e93
Author: Phillip Lord <phillip.lord@newcastle.ac.uk>
Commit: Phillip Lord <phillip.lord@newcastle.ac.uk>

    show-all on create in org-mode.
    
    The default behaviour of org-mode is annoying with an el->org
    transformation because point almost always lies somewhere in the depths
    of a closed org tree. Opening up the tree makes life better!
---
 lentic-org.el | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/lentic-org.el b/lentic-org.el
index 5c8d572be2..0740210ddf 100644
--- a/lentic-org.el
+++ b/lentic-org.el
@@ -339,6 +339,15 @@
   (lentic-commented-block-configuration)
   ())
 
+(defmethod lentic-create
+  ((conf lentic-orgel-to-org-configuration))
+  (let ((buf
+         (call-next-method conf)))
+    (with-current-buffer
+        buf
+      (show-all))
+    buf))
+
 (defmethod lentic-clone
   ((conf lentic-orgel-to-org-configuration)
    &optional start stop length-before start-converted stop-converted)



reply via email to

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