|
@@ -4429,7 +4429,7 @@ or nil."
|
|
|
(error (make-indirect-buffer (current-buffer) "*org-goto*"))))
|
|
|
(with-output-to-temp-buffer "*Help*"
|
|
|
(princ help))
|
|
|
- (shrink-window-if-larger-than-buffer (get-buffer-window "*Help*"))
|
|
|
+ (org-fit-window-to-buffer (get-buffer-window "*Help*"))
|
|
|
(setq buffer-read-only nil)
|
|
|
(let ((org-startup-truncated t)
|
|
|
(org-startup-folded nil)
|
|
@@ -6420,7 +6420,7 @@ used as the link location instead of reading one interactively."
|
|
|
(reverse org-stored-links) "\n"))))
|
|
|
(let ((cw (selected-window)))
|
|
|
(select-window (get-buffer-window "*Org Links*"))
|
|
|
- (shrink-window-if-larger-than-buffer)
|
|
|
+ (org-fit-window-to-buffer)
|
|
|
(setq truncate-lines t)
|
|
|
(select-window cw))
|
|
|
;; Fake a link history, containing the stored links.
|
|
@@ -8121,8 +8121,7 @@ Returns the new TODO keyword, or nil if no state change should occur."
|
|
|
(setq cnt 0)))))
|
|
|
(insert "\n")
|
|
|
(goto-char (point-min))
|
|
|
- (if (and (not expert) (fboundp 'fit-window-to-buffer))
|
|
|
- (fit-window-to-buffer))
|
|
|
+ (if (not expert) (org-fit-window-to-buffer))
|
|
|
(message "[a-z..]:Set [SPC]:clear")
|
|
|
(setq c (let ((inhibit-quit t)) (read-char-exclusive)))
|
|
|
(cond
|
|
@@ -9507,8 +9506,7 @@ Returns the new tags string, or nil to not change the current settings."
|
|
|
(setq ntable (nreverse ntable))
|
|
|
(insert "\n")
|
|
|
(goto-char (point-min))
|
|
|
- (if (and (not expert) (fboundp 'fit-window-to-buffer))
|
|
|
- (fit-window-to-buffer))
|
|
|
+ (if (not expert) (org-fit-window-to-buffer))
|
|
|
(setq rtn
|
|
|
(catch 'exit
|
|
|
(while t
|
|
@@ -9530,8 +9528,7 @@ Returns the new tags string, or nil to not change the current settings."
|
|
|
(delete-other-windows)
|
|
|
(split-window-vertically)
|
|
|
(org-switch-to-buffer-other-window " *Org tags*")
|
|
|
- (and (fboundp 'fit-window-to-buffer)
|
|
|
- (fit-window-to-buffer))))
|
|
|
+ (org-fit-window-to-buffer)))
|
|
|
((or (= c ?\C-g)
|
|
|
(and (= c ?q) (not (rassoc c ntable))))
|
|
|
(org-detach-overlay org-tags-overlay)
|