emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ivan Necas <necasik@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [PATCH] org-fold: (org-fold-hide-drawer-all): Make interactive
Date: Wed, 18 Oct 2023 16:42:37 +0200	[thread overview]
Message-ID: <CAFmwT7WEMvGVyQhP8NcZY5vZMzz4NcvBjchd4jBqgHCPwjOgFA@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 339 bytes --]

Hi,

Sometimes, I want to unfold all the drawers using `org-fold-show-all',
and then I want to hide them all back. I've noticed, there is a function
`org-fold-hide-drawer-all' does just that, but it's not marked
as a command, so the patch is as simple as adding `(interactive)` there,
as I don't see a reason it shouldn't be one.

-- Ivan

[-- Attachment #1.2: Type: text/html, Size: 473 bytes --]

[-- Attachment #2: 0001-lisp-org-fold.el-org-fold-hide-drawer-all-Make-inter.patch --]
[-- Type: text/x-patch, Size: 726 bytes --]

From b059c1def1df57921b08b5a350f8b67148dfbc67 Mon Sep 17 00:00:00 2001
From: Ivan Necas <necasik@gmail.com>
Date: Wed, 18 Oct 2023 14:51:33 +0200
Subject: [PATCH] * lisp/org-fold.el (org-fold-hide-drawer-all): Make
 interactive

TINYCHANGE
---
 lisp/org-fold.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/org-fold.el b/lisp/org-fold.el
index 18ccbf0bb..67a2a25a6 100644
--- a/lisp/org-fold.el
+++ b/lisp/org-fold.el
@@ -594,6 +594,7 @@ (defun org-fold-hide-block-all ()
   (org-block-map (apply-partially #'org-fold-hide-block-toggle 'hide)))
 
 (defun org-fold-hide-drawer-all ()
+  (interactive)
   "Fold all drawers in the current buffer."
   (let ((begin (point-min))
         (end (point-max)))
-- 
2.41.0


             reply	other threads:[~2023-10-18 14:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-18 14:42 Ivan Necas [this message]
2023-10-19  9:34 ` [PATCH] org-fold: (org-fold-hide-drawer-all): Make interactive Ihor Radchenko
2023-10-19 15:15   ` Ivan Necas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFmwT7WEMvGVyQhP8NcZY5vZMzz4NcvBjchd4jBqgHCPwjOgFA@mail.gmail.com \
    --to=necasik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).