Kaynağa Gözat

org-export: Make sure that window displaying UI is tall enough

* contrib/lisp/org-export.el (org-export-dispatch-ui): Make sure that
  window displaying UI is tall enough. This fixes a bug where only
  a part of the menu was displayed.
Nicolas Goaziou 12 yıl önce
ebeveyn
işleme
468d860528
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3 0
      contrib/lisp/org-export.el

+ 3 - 0
contrib/lisp/org-export.el

@@ -4592,7 +4592,10 @@ back to standard interface."
 	(delete-other-windows)
 	(org-switch-to-buffer-other-window
 	 (get-buffer-create "*Org Export Dispatcher*"))
+	(org-fit-window-to-buffer)
 	(setq cursor-type nil))
+      ;; At this point, the buffer containing the menu exists and is
+      ;; visible in the current window.  So, refresh it.
       (with-current-buffer "*Org Export Dispatcher*"
 	(erase-buffer)
 	(insert help))