1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-20 10:23:57 +00:00
Commit Graph

54743 Commits

Author SHA1 Message Date
Paul Eggert
f6b1b0a848 Spelling fixes. 2011-11-12 23:48:23 -08:00
Martin Rudalics
89d612214e Don't handle splits status.
* window.h (window): Remove splits slot.
* window.c (Fwindow_splits, Fset_window_splits): Remove.
(Fdelete_other_windows_internal, make_parent_window)
(make_window, Fsplit_window_internal, Fdelete_window_internal)
(Fset_window_configuration, save_window_save): Don't deal with
split status of windows.
(saved_window): Remove splits slot.
(Vwindow_splits): Rewrite doc-string.
* window.el (window-resize, delete-window): Use window-splits
variable instead of function.
(window-state-get-1, window-state-put-2, window-state-put):
Don't deal with windows' splits status.
* windows.texi (Splitting Windows, Deleting Windows): Remove
references to splits status of windows.
2011-11-12 10:55:50 +01:00
Glenn Morris
98282f6f12 apropos.el doc fixes.
* lisp/apropos.el (apropos-do-all, apropos-library, apropos-value)
(apropos-documentation): Doc fixes.
2011-11-11 21:13:23 -05:00
Juanma Barranquero
9b8ba1e59d Fix more typos. 2011-11-12 00:34:43 +01:00
Juanma Barranquero
40a8bdf60f Fix typos. 2011-11-12 00:17:16 +01:00
Stefan Monnier
65bd19ff8a * lisp/electric.el: Make electric-indent-mode better behaved.
* lisp/electric.el (electric-indent-post-self-insert-function): Make it
possible for a char to only indent in some circumstances.
(electric-indent-mode): Simplify.
2011-11-11 10:55:24 -05:00
Martin Rudalics
5e92ca23ec Further rename and clean up of functions in window.el.
* window.el (window-size-ignore, window-size-fixed-1)
(window-in-direction-2): Prefix with "window--".
(window-tree-1): Rename to window--subtree, fix doc-string.
2011-11-11 11:23:23 +01:00
Paul Eggert
dbdb703130 Spelling fixes. 2011-11-11 02:04:08 -08:00
Martin Rudalics
54f9154ca1 Rename and clean up functions in window.el.
* window.el (windows-with-parameter): Remove unused function.
(windows-at-side): Rename to window-at-side-list.
(window-check, window-atom-check, window-atom-check-1)
(window-side-check): Prefix with "window--".
2011-11-11 10:59:00 +01:00
Glenn Morris
68cbc58be5 eval-after-load fix for bug#10009
* lisp/subr.el (eval-after-load): If FILE is already loaded,
evaluate FORM before it gets wrapped in more stuff.
2011-11-10 20:46:03 -05:00
Glenn Morris
9a4de11022 Always use svn --non-interactive in vc-svn.el (bug#9993)
* lisp/vc/vc-svn.el (vc-svn-create-repo, vc-svn-modify-change-comment):
Call svn via vc-svn-command rather than vc-do-command.
(vc-svn-command): Add --non-interactive.
(vc-svn-update, vc-svn-merge-news): No need for --non-interactive.
2011-11-09 21:36:48 -05:00
Glenn Morris
b2621720c3 toggle-read-only fixes for bugs#7292, 10006.
* doc/lispref/buffers.texi (Read Only Buffers): Expand a bit on why
toggle-read-only should only be used interactively.

* lisp/files.el (toggle-read-only): Mention that it should only
be used interactively.

* lisp/emacs-lisp/bytecomp.el (byte-compile-interactive-only-functions):
Add toggle-read-only.
2011-11-09 21:17:45 -05:00
Juanma Barranquero
c4e7c63af1 Fix typos. 2011-11-09 17:18:33 +01:00
Stefan Monnier
d9ac1a1e5d * lisp/progmodes/compile.el: Adjust regexp for OCaml warnings.
(compilation-error-regexp-alist-alist): OCaml warnings (can?) have a number.

Fixes: debbugs:9749
2011-11-09 10:39:32 -05:00
Stefan Monnier
0c32508203 * lisp/electric.el (electric-pair-post-self-insert-function): Let user
turn it off buffer-locally.

Fixes: debbugs:9932
2011-11-09 10:10:25 -05:00
Stefan Monnier
90132c1485 * lisp/progmodes/python.el (python-beginning-of-statement): Rewrite.
Fixes: debbugs:2703
2011-11-09 10:00:32 -05:00
Stefan Monnier
1dce71935c * lisp/progmodes/compile.el: Better handle TABs.
(compilation-internal-error-properties)
(compilation-next-error-function): Obey the target buffer's
compilation-error-screen-columns.

Fixes: debbugs:9749
2011-11-09 09:04:13 -05:00
Martin Rudalics
2cffd68198 Rewrite window-resizable.
* window.el (window-size-fixed-p): Rewrite doc-string.
(window-resizable-p): Rename to window--resizable-p.  Update
callers.
(window--resizable): New function.  Make all callers of
window-resizable call window--resizable instead.
(window-resizable): Rewrite in terms of window--resizable.
* windows.texi (Resizing Windows): Rewrite documentation of
window-resizable.
2011-11-09 10:36:05 +01:00
Paul Eggert
fe3c566957 Spelling fixes. 2011-11-08 22:10:51 -08:00
Glenn Morris
0edcba87d0 delphi syntax table fix for bug#9994
* lisp/progmodes/delphi.el (delphi-mode-syntax-table):
Let define-derived-mode define a proper syntax table.
2011-11-08 14:19:36 -05:00
Martin Rudalics
b3f4a882bf Fix doc-string typo in window-min-delta 2011-11-08 20:06:29 +01:00
Stefan Monnier
4b0d61e310 * lisp/window.el: Stay away from defsubst.
(window-list-no-nils): Remove.
(window-state-get-1, window-state-get): Use backquote instead.
2011-11-08 11:52:10 -05:00
thierry volpiatto
fcbcac2e86 Update changelog. 2011-11-08 16:08:59 +01:00
thierry volpiatto
341cabd841 * emacs-lisp/find-func.el (find-function-read): Fix incorrect use of default argument in `completing-read'. 2011-11-08 16:06:47 +01:00
Martin Rudalics
e1c2c6f2c3 Remove stale references to help-setup parameter in doc-strings.
* window.el (display-buffer-function, special-display-function):
Mention display-buffer-record-window but do not mention
help-setup parameter in doc-strings.
2011-11-08 10:33:22 +01:00
Chong Yidong
105216ed03 Move low-level window width/height functions to C, and high-level functions to Lisp.
* lisp/window.el (window-total-height, window-total-width): Doc fix.
(window-body-size): Move from C.
(window-body-height, window-body-width): Move to C.

* src/window.c (Fwindow_left_column, Fwindow_top_line): Doc fix.
(Fwindow_body_height, Fwindow_body_width): Move from Lisp.  Signal
an error if not a live window.
(Fwindow_total_width, Fwindow_total_height): Move from Lisp.
(Fwindow_total_size, Fwindow_body_size): Move to Lisp.
2011-11-08 15:25:56 +08:00
Stefan Monnier
0a9f9ab528 * lisp/window.el: Make special-display like display-buffer-alist.
(display-buffer--special-action): New function, morphed
from display-buffer--special.
(display-buffer): Use it to handle special-display-buffers at higher
priority (just after display-buffer-alist).
(display-buffer-fallback-action, display-buffer--other-frame-action)
(pop-to-buffer-same-window): Remove display-buffer--special.

Fixes: debbugs:9532
2011-11-07 21:57:59 -05:00
Glenn Morris
a769dd157d Small cal-menu fix for bug#9976
* lisp/calendar/cal-menu.el (cal-menu-set-date-title):
Do nothing if not in a calendar.
2011-11-07 14:00:54 -05:00
Stefan Monnier
05a61ee3e6 * lisp/files.el (find-file): Always use selected-window. 2011-11-07 09:34:02 -05:00
Martin Rudalics
be7f55452c Remove term "subwindow" from code and documentation.
* window.h: Declare delete_all_child_windows instead of
delete_all_subwindows.
* window.c (Fwindow_nest, Fset_window_nest)
(Fset_window_new_total, Fset_window_new_normal)
(Fwindow_resize_apply): Don't use term subwindow in doc-strings.
(delete_all_subwindows): Rename to delete_all_child_windows.
(Fdelete_other_windows_internal, Fset_window_configuration):
Call delete_all_child_windows instead of delete_all_subwindows.
* frame.c (delete_frame): Call delete_all_child_windows instead
of delete_all_subwindows.

* window.el (window-combinations): Make WINDOW argument
mandatory.  Rewrite doc-string.
(walk-window-subtree, window-atom-check, window-min-delta)
(window-max-delta, window--resize-this-window)
(window--resize-root-window-vertically, window-tree)
(balance-windows, window-state-put): Rewrite doc-strings as to
not mention the term "subwindow".
(window--resize-subwindows-skip-p): Rename to
window--resize-child-windows-skip-p.
(window--resize-subwindows-normal): Rename to
window--resize-child-windows-normal.
(window--resize-subwindows): Rename to
window--resize-child-windows.
(window-or-subwindow-p): Rename to window--in-subtree-p.

* windows.texi (Resizing Windows, Splitting Windows)
(Window Configurations): Use "child window" instead of
"subwindow".
2011-11-07 10:51:08 +01:00
Mark Lillibridge
3c6702ef8a Fix rmail-mbox handling of terminating newlines.
* lisp/mail/rmail.el (rmail-get-new-mail, rmail-insert-inbox-text):
Ensure that mbox format messages end in two newlines.

Fixes: debbugs:9974
2011-11-07 10:52:29 +08:00
Chong Yidong
49745b39a1 Delete window-combination-p; tweaks to window-top-child and window-left-child.
* lisp/window.el (window-combination-p): Function deleted; its
side-effect is not used in any existing code.
(window-combinations, window-combined-p): Call window-*-child
directly.

* window.c (Fwindow_live_p, Fwindow_frame, Fframe_root_window)
(Fminibuffer_window, Fwindow_buffer, Fwindow_splits)
(Fset_window_splits, Fwindow_nest, Fset_window_nest)
(Fwindow_use_time, Fwindow_total_size, Fwindow_normal_size)
(Fwindow_new_normal, Fwindow_left_column, Fwindow_top_line)
(Fwindow_margins, Fwindow_fringes, Fwindow_scroll_bars)
(Fwindow_vscroll): Doc fix.
(Fwindow_top_child, Fwindow_left_child): Eliminate a nil default
argument, since it makes no sense to pass a live window and for
consistency with window-child.
2011-11-06 11:59:53 +08:00
Chong Yidong
447f16b85d * window.el (window-normalize-window): Rename from window-normalize-any-window.
New arg LIVE-ONLY, replacing window-normalize-live-window.
(window-normalize-live-window): Deleted.
(window-combination-p, window-combined-p, window-combinations)
(walk-window-subtree, window-atom-root, window-min-size)
(window-sizable, window-sizable-p, window-size-fixed-p)
(window-min-delta, window-max-delta, window-resizable)
(window-resizable-p, window-full-height-p, window-full-width-p)
(window-current-scroll-bars, window-point-1, set-window-point-1)
(window-at-side-p, window-in-direction, window-resize)
(adjust-window-trailing-edge, maximize-window, minimize-window)
(window-deletable-p, delete-window, delete-other-windows)
(record-window-buffer, unrecord-window-buffer)
(switch-to-prev-buffer, switch-to-next-buffer, window--delete)
(quit-window, split-window, window-state-put)
(set-window-text-height, fit-window-to-buffer)
(shrink-window-if-larger-than-buffer): Callers changed.
2011-11-05 12:04:33 +08:00
Chong Yidong
24300f5fed * lisp/window.el (window-valid-p): Rename from window-any-p.
(window-normalize-any-window, window-size-ignore)
(window-state-get): Callers changed.
2011-11-05 11:20:45 +08:00
Eli Zaretskii
53479029f7 Fix rmail-next/prev-same-subject.
lisp/mail/rmail.el (rmail-simplified-subject): Decode subject with
 rfc2047-decode-string.
 (rmail-mime-toggle-hidden): Declare to avoid byte-compilation
 warnings.
2011-11-05 00:07:12 +02:00
Eli Zaretskii
89bd5ee15a Fix documentation per bug #9949.
src/window.c (Fwindow_body_size): Mention in the doc string that the
 return value is in frame's canonical units.
 lisp/window.el (window-body-height, window-body-width): Mention in
 the doc string that the return values are in frame's canonical
 units.
 doc/lispref/windows.texi (Window Sizes): Mention in the doc string that the
 return values of `window-body-height' and `window-body-width' are
 in frame's canonical units.
2011-11-04 12:09:41 +02:00
Lars Magne Ingebrigtsen
56c31147dc gnus-sum.el (gnus-articles-to-read): Change wording in prompt to be slightly clearer. 2011-11-03 23:28:52 +00:00
Alan Mackenzie
9996e0ee1b Add c-nonlabel-token-2-key to cc-langs.el. 2011-11-03 22:14:11 +00:00
Lars Magne Ingebrigtsen
9d217cacde message.el (message-send-and-exit): Document `arg'. 2011-11-03 22:16:08 +00:00
Alan Mackenzie
bd17fdeeea Edit lisp/ChangeLog 2011-11-03 22:10:02 +00:00
Alan Mackenzie
85ba4cded3 Merge. 2011-11-03 22:03:18 +00:00
Alan Mackenzie
a6ba2ab927 Add c-nonlabel-token-2-key to cc-langs.el. 2011-11-03 21:55:15 +00:00
Lars Magne Ingebrigtsen
14e1d9eab9 (url-cookie-expired-p): Protect against zero-length cookie expiry dates. 2011-11-03 22:53:59 +01:00
David Engster
07a79ce4b4 * srecode.el:
* srecode/texi.el:
* srecode/template.el:
* srecode/java.el:
* srecode/insert.el:
* srecode/document.el:
* srecode/dictionary.el:
* srecode/compile.el:
* semantic/wisent/java-tags.el:
* semantic/texi.el:
* semantic/sort.el:
* semantic/lex-spp.el:
* semantic/idle.el:
* semantic/html.el:
* semantic/db-typecache.el:
* semantic/analyze/complete.el:
* ede/generic.el:
* ede/custom.el:
* ede/cpp-root.el:
* ede/base.el: Fix filenames in comments and headers.

* semantic/db-find.el:
* srecode/insert.el (srecode-insert-include-lookup):
* ede/proj-comp.el (ede-compilation-program): Fix it's -> its in
comments and docstrings.

* semantic/ctxt.el (semantic-end-of-context-default):
* semantic/find.el (semantic-find-tags-by-scope-protection):
* semantic/java.el (semantic-documentation-for-tag): Fix typos in
docstrings.

* semantic/db.el (semanticdb-table, semanticdb-abstract-cache)
(semanticdb-abstract-db-cache):
* semantic/decorate/include.el
(semantic-decoration-unknown-include-describe): Fix filenames in
docstring.

* semantic/ede-grammar.el (semantic-ede-grammar-compiler-wisent):
(semantic-ede-grammar-compiler-bovine): Fix requires that are
added to the grammar-make-script.
2011-11-03 21:03:45 +01:00
Stefan Monnier
3ccc1742ba * lisp/gnus/nnimap.el (nnimap-open-connection-1): Use tcp-keealive if possible. 2011-11-03 15:28:45 -04:00
Teodor Zlatanov
5bb8ec778b gnus-util.el (gnus-bound-and-true-p): Another comment to explain why we don't use `bound-and-true-p'. 2011-11-02 22:59:23 +00:00
Stefan Monnier
acc825c5c4 * lisp/window.el (switch-to-buffer): Use `force-same-window' interactively. 2011-11-02 08:56:48 -04:00
Martin Rudalics
1885e5b80a In quit-window call unrecord-window-buffer later. (Bug#9937)
* window.el (quit-window): Call unrecord-window-buffer after
showing another buffer in the window.  (Bug#9937)
(bury-buffer): Call switch-to-prev-buffer with second argument
'bury.
2011-11-02 10:39:18 +01:00
Teodor Zlatanov
b7351677d7 Rename gnus-bound-and-true-dumber-p' to gnus-bound-and-true-p'. 2011-11-02 07:28:14 +00:00
Juanma Barranquero
db22a3c27b Fix typos. 2011-11-02 03:05:53 +01:00