Changeset 29181

Show
Ignore:
Timestamp:
01/28/09 19:10:12 (4 years ago)
Author:
hayamiz
Message:

rewrote some documentation
added help-do-xref' to ww-advised-functions'
ver 0.1.1

Location:
lang/elisp/widen-window-mode/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lang/elisp/widen-window-mode/trunk/ChangeLog

    r23751 r29181  
     12009-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 
    172008-11-15  Yuto Hayamizu  <haya@killie> 
    28 
  • lang/elisp/widen-window-mode/trunk/widen-window.el

    r23751 r29181  
    55;; Author: Yuto Hayamizu <y.hayamizu@gmail.com> 
    66;; Keywords: convenience 
    7 ;; Version: 0.1.0 
     7;; Version: 0.1.1 
    88 
    99;; This file is free software; you can redistribute it and/or modify 
     
    3939;; `ww-ratio' must be greater than 0.0 and less than 1.0 . 
    4040 
    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. 
    4752 
    4853;;; Code: 
     
    8994    delete-window 
    9095    add-change-log-entry-other-window 
     96    help-do-xref 
    9197    ) 
    9298  "Functions to be advised. Window widening function `widen-current-window' is fired after advised function was called." 
     
    95101 
    96102(defun widen-current-window () 
     103  "The very function which resizes the current window." 
     104 
    97105  (interactive) 
    98106 
     
    108116        ;; by calling ww-subtree only once. 
    109117        ;; So ww-subtree is called repeatedly until 
    110         ;; you can get what you want. 
     118        ;; www-subtree makes no change. 
    111119        (let ((sizeinfo-history nil) 
    112120              (last-sizeinfo nil) 
     
    127135 
    128136(defun ww-bw-wid (window-or-tree) 
     137  "Returns the width of WINDOW-OR-TREE" 
    129138  (- (bw-r window-or-tree) (bw-l window-or-tree))) 
    130139 
    131140(defun ww-bw-hei (window-or-tree) 
     141  "Returns the height of WINDOW-OR-TREE" 
    132142  (- (bw-b window-or-tree) (bw-t window-or-tree))) 
    133143 
     
    249259 
    250260(defun widen-window-mode-maybe () 
    251   "Return t if `widen-current-window' can run on current buffer." 
     261  "Return t and enable widen-window-mode if `widen-current-window' can called on current buffer." 
    252262  (if (and (not (minibufferp (current-buffer))) 
    253263           (not (memq major-mode ww-nonwide-modes)))