[BUG] query-replace breaks org-mode [9.6.6 (release_9.6.6 @ /Applications/Emacs.app/Contents/Resources/lisp/org/)]

2024-04-16 Thread Joe Gilder
Noticed this a few times. When I run query-replace, it functions as usual. 
However, when I’m done with the query-replace, it seems to break org-fold. I 
can’t fold/unfold headings anymore. 

I had the same issue the other day with replace-string as well. 

Killing buffer and coming back fixes it. 





Emacs  : GNU Emacs 29.1 (build 1, aarch64-apple-darwin21.6.0, Carbon Version 
165 AppKit 2113.6)
 of 2023-08-08
Package: Org mode version 9.6.6 (release_9.6.6 @ 
/Applications/Emacs.app/Contents/Resources/lisp/org/)

current state:
==
(setq
 org-agenda-prefix-format '((agenda . " %?-10t %s ") (timeline . "  % s")
(todo . " %s ") (tags . " %i ") (search . " %i 
%-12:c"))
 org-archive-location "~/Emacs/Archive.org::"
 org-log-note-headings '((note . "%t"))
 org-link-elisp-confirm-function nil
 org-agenda-skip-deadline-prewarning-if-scheduled t
 org-hide-emphasis-markers t
 org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 "\n\n(fn 
ENTRY)"]
 org-download-file-format-function 'org-download-file-format-default
 org-attach-id-to-path-function-list '(org-attach-id-ts-folder-format)
 org-agenda-custom-commands '(("i" "INBOX + AGENDA"
   ((todo "NEXT" ((org-agenda-overriding-header 
"Next"))
 (org-agenda-skip-function
  '(org-agenda-skip-entry-if 'date 'timestamp
'deadline 'scheduled)
  )
 (org-agenda-block-separator nil))
(tags-todo "inbox"
 ((org-agenda-overriding-header "Inbox")
  (org-agenda-skip-function
   '(org-agenda-skip-entry-if 'timestamp 
'deadline
 'scheduled 'todo
 '("PROJECT" "NEXT" "WAITING" "DONE" 
"CANCELLED"))
   )
  (org-agenda-block-separator nil))
 )
(agenda "")
(todo "PROJECT"
 ((org-agenda-overriding-header "Projects")
  (org-agenda-skip-function
   '(org-agenda-skip-entry-if 'tags 
'("tickler")))
  (org-agenda-block-separator 61))
 )
(tags-todo "@pam"
 ((org-agenda-overriding-header "@Pam")
  (org-agenda-block-separator 61)
  (org-agenda-skip-function
   '(org-agenda-skip-entry-if 'deadline 
'scheduled
 'todo
 '("PROJECT" "NEXT" "WAITING" "DONE" 
"CANCELLED"))
   )
  )
 )
(tags-todo "@work"
 ((org-agenda-overriding-header "@Work")
  (org-agenda-block-separator nil)
  (org-agenda-skip-function
   '(org-agenda-skip-entry-if 'deadline 
'scheduled
 'todo
 '("PROJECT" "NEXT" "WAITING" "DONE" 
"CANCELLED"))
   )
  )
 )
(tags-todo "@home"
 ((org-agenda-overriding-header "@Home")
  (org-agenda-block-separator nil)
  (org-agenda-skip-function
   '(org-agenda-skip-entry-if 'deadline 
'scheduled
 'todo
 '("PROJECT" "NEXT" "WAITING" "DONE" 
"CANCELLED"))
   )
  )
 )
(todo "WAITING"
 ((org-agenda-overriding-header 
"@Waiting/@Calendar")
  (org-agenda-block-separator nil))
 )
)
   )
  )
 org-agenda-skip-scheduled-if-done t
 org-agenda-files '("~/Emacs/Todo.org" "~/Emacs/Journal.org" "~/Emacs/Notes.org"
"~/Emacs/.emacs.d/config.org" "~/Emacs/calendar-beorg.org")
 org-capture-templates '(("t" "Todo" entry
  (file+olp+datetree "~/Dropbox/Emacs/Todo.org")
 

Re: How do I get rid of this icon

2024-04-16 Thread Colin Baxter
> Colin Baxter  writes:

> How do I change this icon (or whatever it's called) :email: to the
> word email between colons.

> Best wishes,

Solved!




How do I get rid of this icon

2024-04-16 Thread Colin Baxter
How do I change this icon (or whatever it's called) :email: to the word
email between colons.

Best wishes,




Re: [DISCUSSION] "quick-help" popup for org-columns (column view)

2024-04-16 Thread Philip Kaludercic
Sławomir Grochowski  writes:

> Philip Kaludercic  writes:
>> I have pushed the changes to master.
>
> Thank you Philip for your help.  It works.
>
> But there is one more small thing. 
> A message that is displayed in the minibuffer. 
> It contains two pieces of information:
>
> (1) command name
> Right now it's hardcoded. 
> We need to change the it from `help-quick-toggle' to
> `org-columns-help-quick-toggle'.
> How to do it? 
> Add another variable like `help-quick-use-map'?
> Maybe 'help-quick-command-name'?

Instead of using substitute-command-keys, we could just use
this-command, but that assumes that help-quick can always be toggled by
the command that invokes it.

> (2) keybinding to the command name
> Just to modify message string. Add '\\'.
> To use other keymap.
> Change is in the diff below. 

I don't see how this would work in general, at the very least it breaks
the regular usage.

Furthermore, I am not convinced we have to change anything here, since
C-h C-q (the default binding for `help-quick-toggle') should also hide
the buffer if one uses your command, or am I mistaken?

>
> diff --git a/lisp/help.el b/lisp/help.el
> index d4e39f04e53..35412b9d2fe 100644
> --- a/lisp/help.el
> +++ b/lisp/help.el
> @@ -263,7 +263,9 @@ help-quick
>;; ... and shrink it immediately.
>(fit-window-to-buffer))
>  (message
> - (substitute-command-keys "Toggle display of quick-help buffer using 
> \\[help-quick-toggle]."
> + (substitute-command-keys "Toggle display of quick-help buffer 
> using\\ \\[org-columns-help-quick-toggle]."
> +
> +
>  
>  (defun help-quick-toggle ()
>"Toggle display of a window showing popular commands and their bindings.
> -- 
>
> 2.30.2
>
>
> Regards,

-- 
Philip Kaludercic on peregrine