Michael Shields
aa248733c5
Doc fixes for bug#5567 (tiny change)
...
* lisp/window.el (one-window-p, walk-windows, display-buffer): Doc fixes.
* src/window.c (Fnext_window): Doc (and comment) fixes.
2011-03-05 18:14:43 -08:00
Glenn Morris
73b0cd5003
Convert consecutive FSF copyright years to ranges.
2011-01-24 20:08:28 -08:00
Glenn Morris
0d9f702fd0
Nuke arch-tags.
2011-01-15 15:16:57 -08:00
Stefan Monnier
77ab81d054
Merge from emacs-23
2011-01-14 12:18:41 -05:00
Glenn Morris
5df4f04cd3
Add 2011 to FSF/AIST copyright years.
2011-01-02 15:50:46 -08:00
Juanma Barranquero
95b6d681b1
Merge changes from emacs-23 branch.
2010-09-28 01:25:27 +02:00
Juanma Barranquero
fb5f3a23b5
lisp/window.el (walk-windows): Doc fix (bug#7105).
2010-09-26 02:37:50 +02:00
Stefan Monnier
f291fe60fb
Use `declare' in defmacros.
...
* lisp/window.el (save-selected-window):
* lisp/subr.el (with-temp-file, with-temp-message, with-syntax-table):
* lisp/progmodes/python.el (def-python-skeleton):
* lisp/net/dbus.el (dbus-ignore-errors):
* lisp/jka-cmpr-hook.el (with-auto-compression-mode):
* lisp/international/mule.el (with-category-table):
* lisp/emacs-lisp/timer.el (with-timeout):
* lisp/emacs-lisp/lisp-mnt.el (lm-with-file):
* lisp/emacs-lisp/eieio.el (with-slots):
* lisp/emacs-lisp/easymenu.el (easy-menu-define):
* lisp/emacs-lisp/debug.el (debugger-env-macro):
* lisp/emacs-lisp/cl-compat.el (Multiple-value-bind, Multiple-value-setq)
(Multiple-value-call, Multiple-value-prog1):
* lisp/emacs-lisp/cl-seq.el (cl-parsing-keywords, cl-check-key)
(cl-check-test-nokey, cl-check-test, cl-check-match): Move indent and
edebug rule to definition.
* lisp/emacs-lisp/lisp-mode.el (save-selected-window)
(with-current-buffer, combine-after-change-calls)
(with-output-to-string, with-temp-file, with-temp-buffer)
(with-temp-message, with-syntax-table, read-if, eval-after-load)
(dolist, dotimes, when, unless):
* lisp/emacs-lisp/byte-run.el (inline): Remove indent rule, redundant.
2010-08-30 15:03:05 +02:00
Chong Yidong
bd78fa1d54
Add "Package:" file headers to denote built-in packages.
2010-08-29 12:17:13 -04:00
Martin Rudalics
13b5221f4d
* window.el (pop-to-buffer): Remove the conditional that
...
compares new-window and old-window, so it will reselect
the selected window unconditionally.
http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00078.html
* window.c (Fselect_window): Move `record_buffer' up to the
beginning of this function, so the buffer gets recorded
even if the selected window does not change.
http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
2010-06-07 21:28:02 +03:00
Juri Linkov
74f806a116
Move scrolling commands from simple.el to window.el
...
because their primitives are implemented in window.c.
* simple.el (scroll-error-top-bottom)
(scroll-up-command, scroll-down-command, scroll-up-line)
(scroll-down-line, scroll-other-window-down)
(beginning-of-buffer-other-window, end-of-buffer-other-window):
* window.el (scroll-error-top-bottom)
(scroll-up-command, scroll-down-command, scroll-up-line)
(scroll-down-line, scroll-other-window-down)
(beginning-of-buffer-other-window, end-of-buffer-other-window):
Move from simple.el to window.el because their primitives are
implemented in window.c.
2010-04-16 04:41:58 +03:00
Juanma Barranquero
d1f18ec092
Fix typos in docstrings.
2010-01-14 19:59:31 +01:00
Glenn Morris
114f9c9679
Add 2010 to copyright years.
2010-01-13 00:35:10 -08:00
Glenn Morris
782d6e3016
(window--display-buffer-2): Fix previous changes.
2009-12-01 17:04:55 +00:00
Glenn Morris
3689984f00
(window-to-use): Define for compiler.
2009-12-01 03:15:01 +00:00
Juri Linkov
0116abbdeb
Add defcustom to define the cycling order of `recenter-top-bottom'. (Bug#4981)
...
* window.el (recenter-last-op): Doc fix.
(recenter-positions): New defcustom.
(recenter-top-bottom): Rewrite to use `recenter-positions'.
(move-to-window-line-top-bottom): Rewrite to use `recenter-positions'.
2009-11-29 23:34:05 +00:00
Stefan Monnier
04ae543a28
Really make the *Completions* window soft-dedicated (bug#5030).
...
* window.el (window--display-buffer-2): Add `dedicated' argument.
(display-buffer): Pass it when needed so the dedicated flag is set
after calling set-window-buffer, which would otherwise reset it.
2009-11-25 16:36:04 +00:00
Stefan Monnier
0f202d5d8f
(move-to-window-line-last-op): Remove.
...
(move-to-window-line-top-bottom): Reuse recenter-last-op instead.
2009-11-23 05:37:34 +00:00
Stefan Monnier
216349f89e
(move-to-window-line-last-op): New var.
...
(move-to-window-line-top-bottom): New command.
(global-map): Bind M-r move-to-window-line-top-bottom.
2009-11-23 05:32:25 +00:00
Stefan Monnier
d2c9fc4231
* window.el (display-buffer-mark-dedicated): New var.
...
(display-buffer): Obey it.
* minibuffer.el (minibuffer-completion-help): Use it.
2009-11-19 22:05:40 +00:00
Stefan Monnier
7fdbcd8387
* x-dnd.el (x-dnd-maybe-call-test-function):
...
* window.el (split-window-vertically):
* whitespace.el (whitespace-help-on):
* vc-rcs.el (vc-rcs-consult-headers):
* userlock.el (ask-user-about-lock-help)
(ask-user-about-supersession-help):
* type-break.el (type-break-force-mode-line-update):
* time-stamp.el (time-stamp-conv-warn):
* terminal.el (te-set-output-log, te-more-break, te-filter)
(te-sentinel,terminal-emulator):
* term.el (make-term, term-exec, term-sentinel, term-read-input-ring)
(term-write-input-ring, term-check-source, term-start-output-log):
(term-display-buffer-line, term-dynamic-list-completions):
(term-ansi-make-term, serial-term):
* subr.el (selective-display):
* strokes.el (strokes-xpm-to-compressed-string, strokes-decode-buffer)
(strokes-encode-buffer, strokes-xpm-for-compressed-string):
* speedbar.el (speedbar-buffers-tail-notes, speedbar-buffers-item-info)
(speedbar-reconfigure-keymaps, speedbar-add-localized-speedbar-support)
(speedbar-remove-localized-speedbar-support)
(speedbar-set-mode-line-format, speedbar-create-tag-hierarchy)
(speedbar-update-special-contents, speedbar-buffer-buttons-engine)
(speedbar-buffers-line-directory):
* simple.el (shell-command-on-region, append-to-buffer)
(prepend-to-buffer):
* shadowfile.el (shadow-save-todo-file):
* scroll-bar.el (scroll-bar-set-window-start, scroll-bar-drag-1)
(scroll-bar-maybe-set-window-start):
* sb-image.el (speedbar-image-dump):
* saveplace.el (save-place-alist-to-file, save-places-to-alist)
(load-save-place-alist-from-file):
* ps-samp.el (ps-print-message-from-summary):
* ps-print.el (ps-flush-output, ps-insert-file, ps-get-boundingbox)
(ps-background-image, ps-begin-job, ps-do-despool):
* ps-bdf.el (bdf-find-file, bdf-read-font-info):
* printing.el (pr-interface, pr-ps-file-print, pr-find-buffer-visiting)
(pr-ps-message-from-summary, pr-lpr-message-from-summary):
(pr-call-process, pr-file-list, pr-interface-save):
* novice.el (disabled-command-function)
(enable-command, disable-command):
* mouse.el (mouse-buffer-menu-alist):
* mouse-copy.el (mouse-kill-preserving-secondary):
* macros.el (kbd-macro-query):
* ledit.el (ledit-go-to-lisp, ledit-go-to-liszt):
* informat.el (batch-info-validate):
* ido.el (ido-copy-current-word, ido-initiate-auto-merge):
* hippie-exp.el (try-expand-dabbrev-visible):
* help-mode.el (help-make-xrefs):
* help-fns.el (describe-variable):
* generic-x.el (bat-generic-mode-run-as-comint):
* finder.el (finder-mouse-select):
* find-dired.el (find-dired-sentinel):
* filesets.el (filesets-file-close):
* files.el (list-directory):
* faces.el (list-faces-display, describe-face):
* facemenu.el (list-colors-display):
* ezimage.el (ezimage-image-association-dump, ezimage-image-dump):
* epg.el (epg--process-filter, epg-cancel):
* epa.el (epa--marked-keys, epa--select-keys, epa-display-info)
(epa--read-signature-type):
* emerge.el (emerge-copy-as-kill-A, emerge-copy-as-kill-B)
(emerge-file-names):
* ehelp.el (electric-helpify):
* ediff.el (ediff-regions-wordwise, ediff-regions-linewise):
* ediff-vers.el (rcs-ediff-view-revision):
* ediff-util.el (ediff-setup):
* ediff-mult.el (ediff-append-custom-diff):
* ediff-diff.el (ediff-exec-process, ediff-process-sentinel)
(ediff-wordify):
* echistory.el (Electric-command-history-redo-expression):
* dos-w32.el (find-file-not-found-set-buffer-file-coding-system):
* disp-table.el (describe-display-table):
* dired.el (dired-find-buffer-nocreate):
* dired-aux.el (dired-rename-subdir, dired-dwim-target-directory):
* dabbrev.el (dabbrev--same-major-mode-p):
* chistory.el (list-command-history):
* apropos.el (apropos-documentation):
* allout.el (allout-obtain-passphrase):
(allout-copy-exposed-to-buffer):
(allout-verify-passphrase): Use with-current-buffer.
2009-11-13 22:19:45 +00:00
Glenn Morris
ac549fa5e4
Convert comments about autoloads into autoload comments.
...
(No-ops so long as file is dumped.)
2009-10-15 06:18:02 +00:00
Glenn Morris
ccafbf0696
(window-full-height-p): Add doc string.
2009-10-04 00:41:18 +00:00
Glenn Morris
02c6f0980b
Martin Rudalics <rudalics at gmx.at>
...
(window-full-height-p): New function. (Bug#4543)
2009-10-04 00:40:16 +00:00
Glenn Morris
6dc3311d25
Define risky-local-variable property here rather than in files.el.
2009-08-26 03:07:25 +00:00
Martin Rudalics
8b10a2d198
(split-window-sensibly): New function.
...
(split-height-threshold, split-width-threshold): State in
doc-string that these affect split-window-sensibly. Change
customization subtype from number to integer.
(window--splittable-p): Rename to window-splittable-p since it's
referred to in doc-string of split-window-sensibly. Update
doc-string.
(window--try-to-split-window): Unconditionally call
split-window-preferred-function and move splitting functionality
to split-window-sensibly (Bug#3142).
(split-window-preferred-function): Rewrite doc-string. Don't
allow nil as customization type.
2009-05-07 09:21:23 +00:00
Martin Rudalics
0e8ade71d7
Remove experimental code inadvertently introduced when reverting the
...
2009-01-14 change of special-display-p. (Bug#1929, Bug#1930)
2009-01-16 16:51:54 +00:00
Martin Rudalics
987220737d
(special-display-p): Revert 2009-01-14 change.
2009-01-15 07:56:58 +00:00
Martin Rudalics
56f31926ae
(special-display-buffer-names)
...
(special-display-regexps): Add customization support for
function/other-args elements. Rewrite doc-strings.
(special-display-function): Rewrite doc-strings
(same-window-buffer-names, same-window-regexps): Minor
doc-string fixes.
(special-display-p): Minor rewrite.
2009-01-14 09:56:11 +00:00
Martin Rudalics
dcb50c02f5
(special-display-buffer-names)
...
(special-display-regexps, special-display-function): In
doc-strings say "same-window" instead of "same-buffer".
2009-01-09 09:55:38 +00:00
Martin Rudalics
29c4550005
(display-buffer): Fix last fix.
2009-01-05 09:52:53 +00:00
Glenn Morris
ae940284fa
Add 2009 to copyright years.
2009-01-05 03:18:22 +00:00
Martin Rudalics
e331bbf3be
(display-buffer): When a buffer is displayed in the
...
selected and some other window, and not-this-window is non-nil,
try to return that other window instead of popping up a new
frame. (Bug#30)
2009-01-04 19:03:09 +00:00
Martin Rudalics
9992ea0cb4
(set-window-text-height): Fix doc-string.
2008-12-21 11:03:30 +00:00
Martin Rudalics
9adf1f0652
(fit-window-to-buffer): Return non-nil when height
...
was orderly adjusted, nil otherwise.
2008-12-12 09:32:02 +00:00
Martin Rudalics
f7baca2087
(fit-window-to-buffer): Use with-selected-window and
...
condition-case. Do not delete more windows than necessary in
the shrinking (delta < 0) case. Do not raise an error when the
containing frame is too small to show all of buffer. (Bug#1488)
2008-12-11 17:17:44 +00:00
Martin Rudalics
a9d451f034
(display-buffer): Fix handling of not-this-window
...
argument. (Bug#1415)
2008-11-27 13:20:15 +00:00
Stefan Monnier
064e57de23
(window--frame-usable-p): Consider dedicated windows as usable.
2008-11-18 20:45:21 +00:00
Martin Rudalics
a0c859f043
(quit-window): Bind window to selected window when
...
trying to delete it.
2008-11-17 09:58:50 +00:00
Stefan Monnier
4afba8195e
(window--frame-usable-p): Allow use for soft-dedication.
2008-11-17 04:53:55 +00:00
Martin Rudalics
3c448ab65e
Fix EOLs broken with last commit.
2008-11-15 08:54:12 +00:00
Martin Rudalics
f4f45fc52c
(quit-window): Restore delete window with second
...
arg non-nil behavior as of before 2008-10-30 change.
2008-11-15 08:51:13 +00:00
Martin Rudalics
f417bc0a9c
(quit-window): Restore prefix argument behavior
...
removed in 2008-10-30 change. (Bug#1308)
2008-11-05 16:45:19 +00:00
Martin Rudalics
ee434cb1a6
(save-selected-window): Make it behave like
...
save-selected-window-norecord.
(save-selected-window-norecord): Remove, since functionality
fully taken over by save-selected-window.
(walk-windows, set-window-text-height, fit-window-to-buffer):
Use save-selected-window instead of save-selected-window-norecord.
2008-11-04 06:53:44 +00:00
Martin Rudalics
ad91ba4413
(save-selected-window-norecord): New macro
...
(walk-windows): Use save-selected-window-norecord and call
select-window with NORECORD set. (Bug#1237)
(set-window-text-height, fit-window-to-buffer): Use
save-selected-window-norecord and call select-window with
NORECORD set.
2008-11-02 11:02:24 +00:00
Martin Rudalics
5c17a89126
(window-body-height, window-current-scroll-bars)
...
(walk-windows, get-window-with-predicate, get-buffer-window-list)
(minibuffer-window-active-p, count-windows)
(window-safely-shrinkable-p, window--splittable-p)
(window--try-to-split-window, window--frame-usable-p)
(window--even-window-heights, window--display-buffer-1)
(window--display-buffer-2, set-window-text-height)
(fit-window-to-buffer, shrink-window-if-larger-than-buffer)
(truncated-partial-width-window-p): Rewrite doc-string.
(window-fixed-size-p): Simplify code. Rewrite doc-string.
(split-window-vertically, split-window-horizontally):
Rename args, rewrite doc-string, and simplify code.
(split-window-save-restore-data): Rename args and use
when instead of if.
2008-10-31 13:39:37 +00:00
Martin Rudalics
9045be38cd
(quit-window): Simplify code. Say in doc-string
...
that it operates on the selected window's buffer. (Bug#1259)
2008-10-30 15:41:43 +00:00
Martin Rudalics
cf20330bba
(get-buffer-window-list): Rename buffer argument to
...
buffer-or-name and make it optional.
2008-10-25 08:08:19 +00:00
Martin Rudalics
3ad8faa7ff
(enlarge-window-horizontally, shrink-window-horizontally):
...
Make argument names follow Elisp manual.
2008-10-19 13:58:11 +00:00
Martin Rudalics
e6001b5823
(pop-to-buffer): Fix misplacement of arg norecord in
...
call of select-window.
2008-10-10 15:07:28 +00:00