branch: externals/org
commit dc8a7c500aeb4c9ed7fa475299c3deed6bd2da94
Author: Slawomir Grochowski <[email protected]>
Commit: Slawomir Grochowski <[email protected]>

    ; org-colview: Reuse command action for ITEM edits
    
    * lisp/org-colview.el (org-columns-edit-value): Use the local
    `command-action' helper for ITEM edits.
    
    Refactoring: Replace Inline Code with Function Call.
    
    No behavior change.
---
 lisp/org-colview.el | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/lisp/org-colview.el b/lisp/org-colview.el
index 2d28605a16..e53dd775d8 100644
--- a/lisp/org-colview.el
+++ b/lisp/org-colview.el
@@ -791,10 +791,8 @@ Where possible, use the standard interface for changing 
this line."
                        (org-with-point-at pom
                          (call-interactively command)))))
            (pcase key
-             ("CLOCKSUM"
-              (user-error "This special column cannot be edited"))
-             ("ITEM"
-              (lambda () (org-with-point-at pom (org-edit-headline))))
+             ("CLOCKSUM" (user-error "This special column cannot be edited"))
+             ("ITEM" (command-action #'org-edit-headline))
              ("TODO" (command-action #'org-todo))
              ("PRIORITY" (command-action #'org-priority))
              ("TAGS"

Reply via email to