Changeset 29181
- Timestamp:
- 01/28/09 19:10:12 (4 years ago)
- Location:
- lang/elisp/widen-window-mode/trunk
- Files:
-
- 2 modified
-
ChangeLog (modified) (1 diff)
-
widen-window.el (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/elisp/widen-window-mode/trunk/ChangeLog
r23751 r29181 1 2009-01-28 Yuto Hayamizu <haya@killie> 2 3 * widen-window.el: Rewrote some documentation 4 (ww-advised-functions): added `help-do-xref' 5 ver 0.1.1 6 1 7 2008-11-15 Yuto Hayamizu <haya@killie> 2 8 -
lang/elisp/widen-window-mode/trunk/widen-window.el
r23751 r29181 5 5 ;; Author: Yuto Hayamizu <y.hayamizu@gmail.com> 6 6 ;; Keywords: convenience 7 ;; Version: 0.1. 07 ;; Version: 0.1.1 8 8 9 9 ;; This file is free software; you can redistribute it and/or modify … … 39 39 ;; `ww-ratio' must be greater than 0.0 and less than 1.0 . 40 40 41 ;; If you want to avoid widen window mode in a certain 42 ;; major mode(say `foo-mode'), customize the variable `ww-nonwide-modes'. 43 44 ;; Because this is still early release, sometimes window widening 45 ;; might not work even if it should. If you find some functions to be 46 ;; advised, add them to `ww-advised-functions'. 41 ;; If you want to disable widen window mode in a certain 42 ;; major mode(say `foo-mode'), add `foo-mode' to the variable `ww-nonwide-modes'. 43 44 ;; If `ww-width' is non-nil, horizontal window widening is done. 45 ;; You can turn it off by setting `ww-width' nil. 46 ;; `ww-height' is the same as. 47 48 ;; Window widening function `widen-current-window' is called after the 49 ;; invocation of a function listed in `ww-advised-functions'. 50 ;; By adding functions to or removing from this variable, you can 51 ;; control the invocation of window widening. 47 52 48 53 ;;; Code: … … 89 94 delete-window 90 95 add-change-log-entry-other-window 96 help-do-xref 91 97 ) 92 98 "Functions to be advised. Window widening function `widen-current-window' is fired after advised function was called." … … 95 101 96 102 (defun widen-current-window () 103 "The very function which resizes the current window." 104 97 105 (interactive) 98 106 … … 108 116 ;; by calling ww-subtree only once. 109 117 ;; So ww-subtree is called repeatedly until 110 ;; you can get what you want.118 ;; www-subtree makes no change. 111 119 (let ((sizeinfo-history nil) 112 120 (last-sizeinfo nil) … … 127 135 128 136 (defun ww-bw-wid (window-or-tree) 137 "Returns the width of WINDOW-OR-TREE" 129 138 (- (bw-r window-or-tree) (bw-l window-or-tree))) 130 139 131 140 (defun ww-bw-hei (window-or-tree) 141 "Returns the height of WINDOW-OR-TREE" 132 142 (- (bw-b window-or-tree) (bw-t window-or-tree))) 133 143 … … 249 259 250 260 (defun widen-window-mode-maybe () 251 "Return t if `widen-current-window' can runon current buffer."261 "Return t and enable widen-window-mode if `widen-current-window' can called on current buffer." 252 262 (if (and (not (minibufferp (current-buffer))) 253 263 (not (memq major-mode ww-nonwide-modes)))
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)