bpt/emacs.git
12 years agoSpelling fixes.
Paul Eggert [Sun, 20 Nov 2011 02:29:42 +0000 (18:29 -0800)]
Spelling fixes.

12 years agoSmall rmail fixes.
Glenn Morris [Sun, 20 Nov 2011 02:23:48 +0000 (18:23 -0800)]
Small rmail fixes.

* lisp/mail/rmail.el (rmail-enable-mime-composing): Make it a defcustom.
(rmail-insert-mime-forwarded-message-function, rmail-mime-feature):
Doc fixes.
(rmail-decode-mime-charset): Mark as obsolete.

* lisp/mail/rmailsum.el (rmail-message-regexp-p-1):
* lisp/mail/rmail.el (rmail-search-message, rmail-forward, rmail-resend):
Before using mime functions, check they are set.

Fixes: debbugs:10077

12 years ago* lisp/info.el (Info-finder-find-node): Use `package--builtins' instead
Juri Linkov [Sat, 19 Nov 2011 23:34:40 +0000 (01:34 +0200)]
* lisp/info.el (Info-finder-find-node): Use `package--builtins' instead
of `package-alist'.  Use node names formed by the pattern "Keyword "
and the keyword name.

12 years ago* lisp/progmodes/sh-script.el (sh-assignment-regexp): Add entry for
Andreas Schwab [Sat, 19 Nov 2011 23:05:41 +0000 (00:05 +0100)]
* lisp/progmodes/sh-script.el (sh-assignment-regexp): Add entry for
bash.

12 years agoDon't kill the *info* buffer in `Info-revert-find-node'.
Juri Linkov [Sat, 19 Nov 2011 21:43:40 +0000 (23:43 +0200)]
Don't kill the *info* buffer in `Info-revert-find-node'.
Add `revert-buffer' to defcustom `Info-hide-node-references'.

* lisp/info.el (Info-hide-note-references): Add `:set' tag to `defcustom'
that calls `revert-buffer' on all Info buffers.
(Info-revert-find-node): Remove let-bindings `old-buffer-name',
`old-history', `old-history-forward'.  Add let-binding
`window-selected'.  Remove calls to `kill-buffer',
`switch-to-buffer' and `Info-mode'.  Set `Info-current-file' to nil
before calling `Info-find-node', so `Info-find-node-2' will reread
the Info file.  Restore window positions only when `window-selected'
is non-nil.

Fixes: debbugs:9915

12 years ago* lisp/isearch.el (isearch-lazy-highlight-new-loop):
Juri Linkov [Sat, 19 Nov 2011 21:03:12 +0000 (23:03 +0200)]
* lisp/isearch.el (isearch-lazy-highlight-new-loop):
Remove condition `(not isearch-error)'.

* lisp/misearch.el (multi-isearch-search-fun): Add condition
`(not bound)' to ignore lazy-highlighting search.
Add the search-failed message "end of multi" when the end of
multi-sequence is reached.  Uncapitalize the search-failed
message "Repeat for next buffer".

* lisp/info.el (Info-search): Add the search-failed message
"end of the manual" when the end of the manual is reached
in Isearch mode.

Fixes: debbugs:9918

12 years agoReplace `delete' with `remove' in info.el.
Juri Linkov [Sat, 19 Nov 2011 20:14:56 +0000 (22:14 +0200)]
Replace `delete' with `remove' in info.el.

* lisp/info.el (Info-find-node-2, Info-select-node, Info-history-find-node):
Use non-destructive `remove' instead of `delete' because
`Info-history-list' stored to `Info-isearch-initial-history-list' in
`Info-isearch-start' might need to be restored in `Info-isearch-end'.

12 years ago* lisp/isearch.el (isearch-edit-string): Let-bind `history-add-new-input'
Juri Linkov [Sat, 19 Nov 2011 19:59:37 +0000 (21:59 +0200)]
* lisp/isearch.el (isearch-edit-string): Let-bind `history-add-new-input'
to nil instead of binding `search-ring' and `regexp-search-ring'.

Fixes: debbugs:9185

12 years agoFix bug #10076 with vertical cursor motion in hscrolled windows.
Eli Zaretskii [Sat, 19 Nov 2011 19:49:56 +0000 (21:49 +0200)]
Fix bug #10076 with vertical cursor motion in hscrolled windows.

 lisp/simple.el (line-move): Force movement by logical lines for any
 hscrolled window, not only when auto-hscroll-mode is on.
 (line-move-visual): Update doc string to that effect.

12 years agoFix bug #10075 with cursor drawing in an hscrolled window.
Eli Zaretskii [Sat, 19 Nov 2011 15:50:23 +0000 (17:50 +0200)]
Fix bug #10075 with cursor drawing in an hscrolled window.

 src/xdisp.c (x_write_glyphs, draw_phys_cursor_glyph)
 (erase_phys_cursor, update_window_cursor, show_mouse_face)
 (cursor_in_mouse_face_p): If the cursor position is out of bounds,
 behave as if the cursor position were at the window margin.
 src/window.c (get_phys_cursor_glyph): If the window is hscrolled,
 and the cursor position is out of bounds, behave as if the cursor
 position were at the window margin.

12 years agoChange arg names of walk-windows etc from "proc" to "fun".
Chong Yidong [Sat, 19 Nov 2011 15:22:08 +0000 (23:22 +0800)]
Change arg names of walk-windows etc from "proc" to "fun".
They shouldn't be named "proc" since they are not processes.

* lisp/window.el (walk-window-tree-1, walk-window-tree)
(walk-window-subtree, walk-windows): Change argument name.

12 years agoAdd a coding cookie to subr.el.
Eli Zaretskii [Sat, 19 Nov 2011 13:17:13 +0000 (15:17 +0200)]
Add a coding cookie to subr.el.

12 years ago* language/european.el (macintosh): Define as alias for mac-roman.
Andreas Schwab [Sat, 19 Nov 2011 13:13:48 +0000 (14:13 +0100)]
* language/european.el (macintosh): Define as alias for mac-roman.

12 years agoFix bug #9520 with MIME display toggling.
Eli Zaretskii [Sat, 19 Nov 2011 11:49:54 +0000 (13:49 +0200)]
Fix bug #9520 with MIME display toggling.

 lisp/mail/rmailmm.el (rmail-mime-display-header)
 (rmail-mime-display-tagline, rmail-mime-display-body): New defsubsts.
 (rmail-mime-entity-segment, rmail-mime-toggle-raw)
 (rmail-mime-toggle-hidden, rmail-mime-insert-text)
 (rmail-mime-insert-bulk, rmail-mime-insert-multipart)
 (rmail-mime-insert, rmail-mime-insert-tagline): Use them instead
 of a raw aref.
 (rmail-mime-entity-segment): To get past the tagline, move forward
 2 more lines, to account for the 2 empty lines that precede and
 follow the line with the buttons.
 (rmail-mime-update-tagline): Move one more line, to get past the
 empty line that follows the buttons in the tagline.

12 years agoMore updates to Window chapter of Lisp manual.
Chong Yidong [Sat, 19 Nov 2011 11:11:38 +0000 (19:11 +0800)]
More updates to Window chapter of Lisp manual.

* doc/lispref/windows.texi (Splitting Windows): Clarify role of window
parameters in split-window.  Shorten the example.
(Deleting Windows): Rewrite intro to handle internal windows.  Fix
delete-windows-on doc.
(Selecting Windows): Copyedits.

12 years ago* window.c (Fwindow_combination_limit): Make first arg non-optional
Chong Yidong [Sat, 19 Nov 2011 11:09:10 +0000 (19:09 +0800)]
* window.c (Fwindow_combination_limit): Make first arg non-optional
since it is meaningless for live windows like the selected window.

12 years agoPrefix a few more internal functions with "window--".
Martin Rudalics [Sat, 19 Nov 2011 10:53:05 +0000 (11:53 +0100)]
Prefix a few more internal functions with "window--".

* window.el (window-max-delta-1, window-min-delta-1)
(window-min-size-1, window-state-get-1, window-state-put-1)
(window-state-put-2): Use "window--" prefix.

12 years agoSpelling fixes.
Paul Eggert [Sat, 19 Nov 2011 09:18:31 +0000 (01:18 -0800)]
Spelling fixes.

12 years agoRevert last commit.
Eli Zaretskii [Sat, 19 Nov 2011 08:39:42 +0000 (10:39 +0200)]
Revert last commit.

12 years agoFix minor problems found by static checking.
Paul Eggert [Fri, 18 Nov 2011 18:29:29 +0000 (10:29 -0800)]
Fix minor problems found by static checking.

* dispextern.h, xdisp.c (row_hash): Declare extern only if XASSERTS.
* dispnew.c (verify_row_hash): Now static.

12 years ago* src/keymap.c (Fwhere_is_internal): Add missing RETURN_UNGCPROs.
Dmitry Antipov [Fri, 18 Nov 2011 16:50:16 +0000 (11:50 -0500)]
* src/keymap.c (Fwhere_is_internal): Add missing RETURN_UNGCPROs.

12 years ago* lisp/emacs-lisp/smie.el: Improve warnings and conflict detection.
Stefan Monnier [Fri, 18 Nov 2011 16:30:43 +0000 (11:30 -0500)]
* lisp/emacs-lisp/smie.el: Improve warnings and conflict detection.
(smie-warning-count): New var.
(smie-set-prec2tab): Use it.
(smie-bnf->prec2): Improve warnings.  Add docstring.
(smie-bnf--closer-alist): Rename from smie-bnf-closer-alist.
(smie-bnf--set-class): New function.
(smie-bnf--classify): Rename from smie-bnf-classify.  Rewrite to fix
corner case.

12 years ago* src/intervals.c: Fix grafting over the whole buffer.
Stefan Monnier [Fri, 18 Nov 2011 16:00:40 +0000 (11:00 -0500)]
* src/intervals.c: Fix grafting over the whole buffer.
(graft_intervals_into_buffer): Simplify.

Fixes: debbugs:10071

12 years ago* lisp/progmodes/compile.el: Obey compilation-first-column in dest buffer.
Stefan Monnier [Fri, 18 Nov 2011 15:09:42 +0000 (10:09 -0500)]
* lisp/progmodes/compile.el: Obey compilation-first-column in dest buffer.
(compilation-error-properties, compilation-move-to-column):
Handle compilation-first-column while in the target buffer.

12 years ago* lisp/progmodes/cc-engine.el (c-remove-stale-state-cache-backwards):
Stefan Monnier [Fri, 18 Nov 2011 15:06:20 +0000 (10:06 -0500)]
* lisp/progmodes/cc-engine.el (c-remove-stale-state-cache-backwards):
Don't hardcode point-min==1.

12 years ago* lisp/eshell/esh-cmd.el (eshell-do-eval): Handle `setq'.
Stefan Monnier [Fri, 18 Nov 2011 14:49:42 +0000 (09:49 -0500)]
* lisp/eshell/esh-cmd.el (eshell-do-eval): Handle `setq'.
(eshell-rewrite-for-command): Remove workaround.
(eshell-do-pipelines, eshell-do-pipelines-synchronously)
(eshell-do-eval, eshell-exec-lisp): Avoid gratuitous setq.
* lisp/eshell/esh-util.el (eshell-condition-case, eshell-for): Use declare.

Fixes: debbugs:9907

12 years ago* lisp/files-x.el (modify-file-local-variable): Obey commenting conventions.
Stefan Monnier [Fri, 18 Nov 2011 14:34:39 +0000 (09:34 -0500)]
* lisp/files-x.el (modify-file-local-variable): Obey commenting conventions.

12 years agoAdd assertion for hash values of rows.
Eli Zaretskii [Fri, 18 Nov 2011 12:41:36 +0000 (14:41 +0200)]
Add assertion for hash values of rows.

 src/dispnew.c (add_row_entry): Add xassert to verify that ROW's hash code
 is valid.

12 years agoFix another crash due to incorrect hash value of glyph rows, bug #10035.
Eli Zaretskii [Fri, 18 Nov 2011 12:21:42 +0000 (14:21 +0200)]
Fix another crash due to incorrect hash value of glyph rows, bug #10035.

 src/dispnew.c (swap_glyph_pointers): Swap the used[] arrays and the
 hash values of the two rows.
 (copy_row_except_pointers): Preserve the used[] arrays and the
 hash values of the two rows.
 src/xdisp.c (row_hash): New function, body extracted from
 compute_line_metrics.
 (compute_line_metrics): Call row_hash, instead of computing the
 hash code inline.
 src/dispnew.c (verify_row_hash): Call row_hash for computing the
 hash code of a row, instead of duplicating code from xdisp.c.
 src/dispextern.h (row_hash): Add prototype.

12 years agoWork around GTK bug crashing emacs GTK builds.
Tassilo Horn [Fri, 18 Nov 2011 09:36:59 +0000 (10:36 +0100)]
Work around GTK bug crashing emacs GTK builds.

* frame.c (delete_frame): Don't delete the terminal when the last
X frame is closed if emacs is built with GTK toolkit.

12 years agoSpelling fixes.
Paul Eggert [Fri, 18 Nov 2011 08:31:02 +0000 (00:31 -0800)]
Spelling fixes.

12 years agoTypo fix.
Glenn Morris [Fri, 18 Nov 2011 08:25:45 +0000 (00:25 -0800)]
Typo fix.

12 years agoautoload.el fix for bug#10049
Glenn Morris [Thu, 17 Nov 2011 21:34:16 +0000 (16:34 -0500)]
autoload.el fix for bug#10049

* lisp/emacs-lisp/autoload.el (autoload-generate-file-autoloads):
Ignore buffer-local generated-autoload-file if it is the same
as the global value.

12 years agoSpelling fixes.
Paul Eggert [Thu, 17 Nov 2011 17:40:48 +0000 (09:40 -0800)]
Spelling fixes.

12 years agoFix typos.
Juanma Barranquero [Thu, 17 Nov 2011 12:16:44 +0000 (13:16 +0100)]
Fix typos.

12 years agoAuto-commit of loaddefs files.
Glenn Morris [Thu, 17 Nov 2011 11:22:38 +0000 (06:22 -0500)]
Auto-commit of loaddefs files.

12 years agoRename window-splits to window-combination-resize.
Martin Rudalics [Thu, 17 Nov 2011 10:27:56 +0000 (11:27 +0100)]
Rename window-splits to window-combination-resize.

* window.c (Vwindow_splits): Rename to
Vwindow_combination_resize.  Suggested by Juri Linkov.
(Fsplit_window_internal): Use Vwindow_combination_resize instead
of Vwindow_splits.
* window.el (window-resize, delete-window, split-window):
Replace window-splits by window-combination-resize.
* cus-start.el (window-splits): Replace by
window-combination-resize.
* windows.texi (Resizing Windows, Splitting Windows)
(Deleting Windows): Use term window-combination-resize instead
of window-splits.

12 years agoSpelling fixes.
Paul Eggert [Thu, 17 Nov 2011 09:09:20 +0000 (01:09 -0800)]
Spelling fixes.

12 years ago* doc/emacs/regs.texi (Bookmarks): Small fixes related to saving. (Bug#10058)
Glenn Morris [Thu, 17 Nov 2011 03:23:50 +0000 (22:23 -0500)]
* doc/emacs/regs.texi (Bookmarks): Small fixes related to saving.  (Bug#10058)

12 years agoSmall fix for sh-font-lock-keywords-var bash entry.
Glenn Morris [Thu, 17 Nov 2011 02:38:54 +0000 (21:38 -0500)]
Small fix for sh-font-lock-keywords-var bash entry.

* lisp/progmodes/sh-script.el (sh-font-lock-keywords-var):
Make bash entry derive from sh entry, not shell entry.

12 years ago* net/tramp.el (tramp-handle-file-truename): Cache only the local
Michael Albinus [Wed, 16 Nov 2011 21:32:46 +0000 (22:32 +0100)]
* net/tramp.el (tramp-handle-file-truename): Cache only the local
file name.

* net/tramp-cache.el (tramp-flush-file-property): Flush also
properties of linked files.  (Bug#9879)

12 years agoChangeLog fixes:
Glenn Morris [Wed, 16 Nov 2011 18:21:51 +0000 (10:21 -0800)]
ChangeLog fixes:

python-pdbtrack-stack-entry-regexp was not changed.
Mark an odd kind of change with no real attribution as tiny.
Remove conflict marker.

12 years agoFix typos.
Juanma Barranquero [Wed, 16 Nov 2011 17:47:25 +0000 (18:47 +0100)]
Fix typos.

12 years ago* python.el (python-pdbtrack-stack-entry-regexp)
Ken Manheimer [Wed, 16 Nov 2011 16:47:28 +0000 (11:47 -0500)]
* python.el (python-pdbtrack-stack-entry-regexp)
(python-pdbtrack-input-prompt, python-pdbtrack-track-stack-file):
Adjust to recognize ipdb as well as regular python pdb prompts.
Adjustments shamelessly taken exactly as suggested in EmacsWiki
page: http://www.emacswiki.org/PythonProgrammingInEmacs#toc14

* allout-widgets.el: (file metadata): Attribute copyright to FSF
and collapse date sequence, obscure author/maintainer email
address better, remove extra version line, track relocation of
author's allout webpage.

* allout.el: (file metadata): Attribute copyright to FSF
and collapse date sequence, obscure author/maintainer email
address better, track relocation of author's allout webpage.

12 years ago* python.el (python-pdbtrack-stack-entry-regexp)
Ken Manheimer [Wed, 16 Nov 2011 16:37:48 +0000 (11:37 -0500)]
* python.el (python-pdbtrack-stack-entry-regexp)
(python-pdbtrack-input-prompt, python-pdbtrack-track-stack-file):
Adjust to recognize ipdb as well as regular python pdb prompts.
Adjustments shamelessly taken exactly as suggested in EmacsWiki
page: http://www.emacswiki.org/PythonProgrammingInEmacs#toc14

12 years agoFix typos.
Juanma Barranquero [Wed, 16 Nov 2011 12:34:47 +0000 (13:34 +0100)]
Fix typos.

12 years agoAuto-commit of loaddefs files.
Glenn Morris [Wed, 16 Nov 2011 11:22:17 +0000 (06:22 -0500)]
Auto-commit of loaddefs files.

12 years agoRename window-nest to window-combination-limit.
Martin Rudalics [Wed, 16 Nov 2011 10:10:40 +0000 (11:10 +0100)]
Rename window-nest to window-combination-limit.

* window.h (window): Rename slot "nest" to "combination_limit".
* window.c (Fwindow_nest): Rename to Fwindow_combination_limit.
(Fset_window_nest): Rename to Fset_window_combination_limit.
(Vwindow_nest): Rename to Vwindow_combination_limit.
(recombine_windows, make_parent_window, make_window)
(Fsplit_window_internal, saved_window)
(Fset_window_configuration, save_window_save): Rename all
occurrences of window_nest to window_combination_limit.
* window.el (split-window, window-state-get-1)
(window-state-put-1, window-state-put-2): Rename occurrences of
window-nest to window-combination-limit.
* cus-start.el (window-nest): Rename to
window-combination-limit.
* windows.texi (Resizing Windows, Splitting Windows): Rename
occurrences of window-nest to window-combination-limit.

12 years ago* autoconf.el (autoconf-mode): Fix comment-start-skip regexp.
Chong Yidong [Wed, 16 Nov 2011 03:17:29 +0000 (11:17 +0800)]
* autoconf.el (autoconf-mode): Fix comment-start-skip regexp.

Fixes: debbugs:10033

12 years ago* lisp/tmm.el (tmm-prompt): Use minibuffer-with-setup-hook.
Stefan Monnier [Wed, 16 Nov 2011 02:26:00 +0000 (21:26 -0500)]
* lisp/tmm.el (tmm-prompt): Use minibuffer-with-setup-hook.
`completing-read' will remove *Completions* and will preserve
current-buffer for us.
(tmm-add-prompt): Users of *Completions* will always (re)set its
major mode.
(tmm-old-comp-map): Remove.

Fixes: debbugs:10053

12 years agoTry to stop rmailedit destroying mime messages (bug#9840)
Glenn Morris [Wed, 16 Nov 2011 02:06:06 +0000 (21:06 -0500)]
Try to stop rmailedit destroying mime messages (bug#9840)

* lisp/mail/rmailedit.el: Require rmailmm when compiling.
(rmail-old-mime-state): New declaration.
(rmail-edit-current-message): If editing a mime message,
edit the "raw" message from the mbox buffer.
(rmail-cease-edit): Handle mime messages.

12 years agoAdd optional arguments to rmailmm to force state, not just toggle.
Glenn Morris [Tue, 15 Nov 2011 23:36:54 +0000 (18:36 -0500)]
Add optional arguments to rmailmm to force state, not just toggle.

* lisp/mail/rmailmm.el (rmail-mime-toggle-raw): Remove entity arg,
which wasn't being used.  Add optional arg to force given state.
(rmail-mime): Add optional arg to force given state.

12 years agoUpdate information about PNG libraries for MS-Windows.
Eli Zaretskii [Tue, 15 Nov 2011 18:08:38 +0000 (20:08 +0200)]
Update information about PNG libraries for MS-Windows.

 admin/nt/README-ftp-server: Update the information about PNG libraries.
 nt/README.W32: Update the GTK Windows download URL for libpng.

12 years agoUndo a bad spelling fix.
Paul Eggert [Tue, 15 Nov 2011 17:46:34 +0000 (09:46 -0800)]
Undo a bad spelling fix.

I did not realize the comment was in Latin.

12 years agoFix typos.
Juanma Barranquero [Tue, 15 Nov 2011 17:37:37 +0000 (18:37 +0100)]
Fix typos.

12 years agoAuto-commit of loaddefs files.
Glenn Morris [Tue, 15 Nov 2011 11:23:14 +0000 (06:23 -0500)]
Auto-commit of loaddefs files.

12 years agoSmall rmail and rmailmm changes, many doc fixes.
Glenn Morris [Tue, 15 Nov 2011 08:23:03 +0000 (00:23 -0800)]
Small rmail and rmailmm changes, many doc fixes.

* lisp/mail/rmail.el (rmail-file-coding-system): It's only ever used
in a boolean sense, so just make it a boolean, and fix the doc.
(rmail-show-mime-function, rmail-mime-feature)
(rmail-require-mime-maybe): Doc fixes.
(rmail-show-message-1): Check rmail-show-mime-function is non-nil.

* lisp/mail/rmailmm.el (rmail-show-mime): Doc fix.

12 years agoSpelling fixes.
Paul Eggert [Tue, 15 Nov 2011 07:55:13 +0000 (23:55 -0800)]
Spelling fixes.

12 years agormailmm doc fixes.
Glenn Morris [Tue, 15 Nov 2011 07:45:45 +0000 (23:45 -0800)]
rmailmm doc fixes.

* lisp/mail/rmailmm.el (rmail-mime-entity, rmail-mime-entity-segment)
(rmail-mime-shown-mode, rmail-mime-hidden-mode, rmail-mime-raw-mode)
(rmail-mime-toggle-hidden, rmail-mime-insert-tagline)
(rmail-mime-insert-header, rmail-mime-handle, rmail-mime-parse)
(rmail-mime, rmail-show-mime): Doc fixes.

12 years agons-win.el fix for bug#10051
Glenn Morris [Tue, 15 Nov 2011 01:04:06 +0000 (20:04 -0500)]
ns-win.el fix for bug#10051

* lisp/term/ns-win.el (mode-line-frame-identification): Leave it alone.

12 years agoFix typos.
Juanma Barranquero [Tue, 15 Nov 2011 00:54:19 +0000 (01:54 +0100)]
Fix typos.

12 years ago* lisp/simple.el (mark-whole-buffer): Doc fix. (Bug#10023)
Glenn Morris [Tue, 15 Nov 2011 00:38:10 +0000 (19:38 -0500)]
* lisp/simple.el (mark-whole-buffer): Doc fix.  (Bug#10023)

12 years agormailout fix for bug#9978.
Glenn Morris [Tue, 15 Nov 2011 00:34:01 +0000 (19:34 -0500)]
rmailout fix for bug#9978.

* lisp/mail/rmailout.el (rmail-output-to-rmail-buffer):
Handle empty buffers.

12 years agoSpelling fixes.
Paul Eggert [Mon, 14 Nov 2011 23:59:56 +0000 (15:59 -0800)]
Spelling fixes.

12 years ago* lib-src/Makefile.in (all): Make sure "all" is the first target.
Dan Nicolaescu [Mon, 14 Nov 2011 22:54:16 +0000 (15:54 -0700)]
* lib-src/Makefile.in (all): Make sure "all" is the first target.

12 years agoFix typos.
Juanma Barranquero [Mon, 14 Nov 2011 21:00:24 +0000 (22:00 +0100)]
Fix typos.

12 years agoSpelling fixes.
Paul Eggert [Mon, 14 Nov 2011 20:23:26 +0000 (12:23 -0800)]
Spelling fixes.

12 years agoFix bug #10035 with assertion violation in row_equal_p.
Eli Zaretskii [Mon, 14 Nov 2011 20:15:38 +0000 (22:15 +0200)]
Fix bug #10035 with assertion violation in row_equal_p.

 src/xdisp.c (display_line): Move the call to
 highlight_trailing_whitespace before the call to
 compute_line_metrics, since the latter needs to see the final
 faces of all the glyphs to compute ROW's hash value.  Fixes
 assertion violations in row_equal_p.

12 years agoFix bug#10044
Juanma Barranquero [Mon, 14 Nov 2011 17:52:09 +0000 (18:52 +0100)]
Fix bug#10044
src/w32proc.c (reader_thread): Don't check pending input if cp->fd < 0,
just return.

12 years agoAuto-commit of loaddefs files.
Glenn Morris [Mon, 14 Nov 2011 17:45:14 +0000 (12:45 -0500)]
Auto-commit of loaddefs files.

12 years agoIf the server hangs up while we're talking to it, just `message' the error instead...
Lars Magne Ingebrigtsen [Mon, 14 Nov 2011 16:09:13 +0000 (17:09 +0100)]
If the server hangs up while we're talking to it, just `message' the error instead of throwing an error.

12 years agormail-summary fix.
Glenn Morris [Mon, 14 Nov 2011 09:22:45 +0000 (01:22 -0800)]
rmail-summary fix.

* lisp/mail/rmailsum.el (rmail-summary): Remove movement to beginning
of message - not necessary, and causes problems.

I believe the call to rmail-summary-beginning-of-message was only
thought to be necessary due to a couple of bugs in rmail-new-summary
that are hopefully fixed now (`mesg' not being set,
rmail-summary-buffer's buffer locality not being considered).

Fixes: debbugs:9831

12 years ago* mail/rmailsum.el (rmail-new-summary): Preserve message number.
Glenn Morris [Mon, 14 Nov 2011 09:09:03 +0000 (01:09 -0800)]
* mail/rmailsum.el (rmail-new-summary): Preserve message number.

Nothing was setting the local variable `mesg'.
Eg when looking at message 10, pressing h to get a summary would
send you to message 1.

12 years agoSpelling fixes.
Paul Eggert [Mon, 14 Nov 2011 06:27:12 +0000 (22:27 -0800)]
Spelling fixes.

12 years agoSmall executable.el fix related to bug#9879.
Glenn Morris [Mon, 14 Nov 2011 02:14:01 +0000 (18:14 -0800)]
Small executable.el fix related to bug#9879.

* lisp/progmodes/executable.el
(executable-make-buffer-file-executable-if-script-p):
Handle file-modes returning nil.

12 years ago* lisp/mail/rmail.el (rmail-no-mail-p): Remove mode-line N/M indicator.
Glenn Morris [Mon, 14 Nov 2011 02:01:00 +0000 (18:01 -0800)]
* lisp/mail/rmail.el (rmail-no-mail-p): Remove mode-line N/M indicator.

12 years agoRmail summary fixes for empty summaries.
Glenn Morris [Mon, 14 Nov 2011 01:43:50 +0000 (17:43 -0800)]
Rmail summary fixes for empty summaries.

* lisp/mail/rmailsum.el (rmail-summary, rmail-new-summary)
(rmail-new-summary-1): Allow empty summaries.
(rmail-new-summary): Remember that rmail-summary-buffer is buffer-local.

Fixes: debbugs:9964

12 years ago* inc/stdint.h (UINT64_MAX, UINT32_MAX): Fix values.
Christoph Scholtes [Sun, 13 Nov 2011 14:43:13 +0000 (07:43 -0700)]
* inc/stdint.h (UINT64_MAX, UINT32_MAX): Fix values.

12 years agoSpelling fixes.
Paul Eggert [Sun, 13 Nov 2011 07:48:23 +0000 (23:48 -0800)]
Spelling fixes.

12 years ago* INSTALL: Tiny updates for disk space used during installation.
Glenn Morris [Sun, 13 Nov 2011 01:03:55 +0000 (17:03 -0800)]
* INSTALL: Tiny updates for disk space used during installation.

12 years agoAllow building temacs with a larger heap on MS-Windows.
Eli Zaretskii [Sat, 12 Nov 2011 12:11:54 +0000 (14:11 +0200)]
Allow building temacs with a larger heap on MS-Windows.

 src/makefile.w32-in (HEAPSIZE): New variable, allows to build temacs
 with user-defined heap size.  Bump the default size of the temacs
 heap to 27MB, to avoid memory warning when running temacs.
 ($(TEMACS)): Use HEAPSIZE instead of a hardcoded value.

12 years agoVerify glyph row's hash values.
Eli Zaretskii [Sat, 12 Nov 2011 11:56:57 +0000 (13:56 +0200)]
Verify glyph row's hash values.

 src/dispnew.c (verify_row_hash) [XASSERTS]: New function.
 (adjust_glyph_matrix, row_equal_p): Use it in xassert to verify
 that the hash value of glyph rows is correct.

12 years agodispnew.c (scrolling_window): Fix index usage.
Eli Zaretskii [Sat, 12 Nov 2011 10:09:38 +0000 (12:09 +0200)]
dispnew.c (scrolling_window): Fix index usage.

 src/dispnew.c (scrolling_window): Fix incorrect indices in accessing
 current_matrix and desired_matrix.  (Bug#9990)

12 years agoDon't handle splits status.
Martin Rudalics [Sat, 12 Nov 2011 09:55:50 +0000 (10:55 +0100)]
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.

12 years agoapropos.el doc fixes.
Glenn Morris [Sat, 12 Nov 2011 02:13:23 +0000 (21:13 -0500)]
apropos.el doc fixes.

* lisp/apropos.el (apropos-do-all, apropos-library, apropos-value)
(apropos-documentation): Doc fixes.

12 years agoFix more typos.
Juanma Barranquero [Fri, 11 Nov 2011 23:34:43 +0000 (00:34 +0100)]
Fix more typos.

12 years agoFix typos.
Juanma Barranquero [Fri, 11 Nov 2011 23:17:16 +0000 (00:17 +0100)]
Fix typos.

12 years ago* xfns.c (unwind_create_frame):
Jan Djärv [Fri, 11 Nov 2011 18:33:30 +0000 (19:33 +0100)]
* xfns.c (unwind_create_frame):
* nsfns.m (unwind_create_frame):
* w32fns.c (unwind_create_frame): Use Fmemq to check if frame is in
Vframe_list.

Fixes: debbugs:9999

12 years ago* lisp/electric.el: Make electric-indent-mode better behaved.
Stefan Monnier [Fri, 11 Nov 2011 15:55:24 +0000 (10:55 -0500)]
* 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.

12 years agoFurther rename and clean up of functions in window.el.
Martin Rudalics [Fri, 11 Nov 2011 10:23:23 +0000 (11:23 +0100)]
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.

12 years agoSpelling fixes.
Paul Eggert [Fri, 11 Nov 2011 10:04:08 +0000 (02:04 -0800)]
Spelling fixes.

12 years agoRename and clean up functions in window.el.
Martin Rudalics [Fri, 11 Nov 2011 09:59:00 +0000 (10:59 +0100)]
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--".

12 years ago* xdisp.c (syms_of_xdisp): Remove duplicated definition of Qtext.
Dmitry Antipov [Fri, 11 Nov 2011 09:18:32 +0000 (01:18 -0800)]
* xdisp.c (syms_of_xdisp): Remove duplicated definition of Qtext.

12 years agocallproc.c (Fcall_process): Set the member dst_multibyte of process_coding.
Kenichi Handa [Fri, 11 Nov 2011 08:09:40 +0000 (17:09 +0900)]
callproc.c (Fcall_process): Set the member dst_multibyte of process_coding.

12 years agomerge trunk
Kenichi Handa [Fri, 11 Nov 2011 07:08:47 +0000 (16:08 +0900)]
merge trunk

12 years agoxdisp.c (fill_composite_glyph_string): Always set s->face, to avoid a crash (bug...
Kenichi Handa [Fri, 11 Nov 2011 07:08:10 +0000 (16:08 +0900)]
xdisp.c (fill_composite_glyph_string): Always set s->face, to avoid a crash (bug#9496).

12 years agoeval-after-load fix for bug#10009
Glenn Morris [Fri, 11 Nov 2011 01:46:03 +0000 (20:46 -0500)]
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.

12 years agoAlways use svn --non-interactive in vc-svn.el (bug#9993)
Glenn Morris [Thu, 10 Nov 2011 02:36:48 +0000 (21:36 -0500)]
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.

12 years agotoggle-read-only fixes for bugs#7292, 10006.
Glenn Morris [Thu, 10 Nov 2011 02:17:45 +0000 (21:17 -0500)]
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.

12 years agoFix typos.
Juanma Barranquero [Wed, 9 Nov 2011 16:18:33 +0000 (17:18 +0100)]
Fix typos.