org-agenda: Fix bug when showing the new time
* org-agenda.el (org-agenda-show-new-time): Ignore invisible text when inserting the new time as a text property. * org-compat.el (org-move-to-column): New argument `ignore-invisible' to turn on `buffer-invisibility-spec'. Thanks to Marcin Borkowski and Karl Voit for reporting this.
This commit is contained in:
parent
06ae4f07a1
commit
2911965bfe
|
@ -9149,7 +9149,7 @@ Called with a universal prefix arg, show the priority instead of setting it."
|
|||
(goto-char (point-max))
|
||||
(while (not (bobp))
|
||||
(when (equal marker (org-get-at-bol 'org-marker))
|
||||
(org-move-to-column (- (window-width) (length stamp)) t)
|
||||
(org-move-to-column (- (window-width) (length stamp)) t nil t)
|
||||
(org-agenda-fix-tags-filter-overlays-at (point))
|
||||
(if (featurep 'xemacs)
|
||||
;; Use `duplicable' property to trigger undo recording
|
||||
|
|
|
@ -335,10 +335,8 @@ Works on both Emacs and XEmacs."
|
|||
(org-xemacs-without-invisibility (indent-line-to column))
|
||||
(indent-line-to column)))
|
||||
|
||||
(defun org-move-to-column (column &optional force buffer)
|
||||
;; set buffer-invisibility-spec to nil so that move-to-column
|
||||
;; does the right thing despite the presence of invisible text.
|
||||
(let ((buffer-invisibility-spec nil))
|
||||
(defun org-move-to-column (column &optional force buffer ignore-invisible)
|
||||
(let ((buffer-invisibility-spec ignore-invisible))
|
||||
(if (featurep 'xemacs)
|
||||
(org-xemacs-without-invisibility (move-to-column column force buffer))
|
||||
(move-to-column column force))))
|
||||
|
|
Loading…
Reference in New Issue