bpt/emacs.git
12 years agoSpelling fixes.
Paul Eggert [Wed, 23 Nov 2011 07:03:56 +0000 (23:03 -0800)]
Spelling fixes.

12 years ago* xdisp.c (compute_stop_pos): Check validity of end_charpos before using it.
Chong Yidong [Wed, 23 Nov 2011 06:47:09 +0000 (14:47 +0800)]
* xdisp.c (compute_stop_pos): Check validity of end_charpos before using it.

Fixes: debbugs:5984

12 years agoshr.el (shr-table-horizontal-line): Use "?\s" instead of "? " to avoid later breakage.
Lars Magne Ingebrigtsen [Wed, 23 Nov 2011 00:20:17 +0000 (00:20 +0000)]
shr.el (shr-table-horizontal-line): Use "?\s" instead of "? " to avoid later breakage.

12 years ago* etc/NEWS: Mention debug-on-event.
Stefan Monnier [Tue, 22 Nov 2011 21:53:59 +0000 (16:53 -0500)]
* etc/NEWS: Mention debug-on-event.

12 years agoFix bug #10098 with assertion violation during frame resize.
Eli Zaretskii [Tue, 22 Nov 2011 18:00:38 +0000 (20:00 +0200)]
Fix bug #10098 with assertion violation during frame resize.

 src/dispnew.c (adjust_glyph_matrix): Don't verify hash code of mode-
 and header-lines, as they don't have one computed for them.
 src/.gdbinit (prow): Make displayed values more self-explaining.
 Add row's hash code.

12 years ago* lisp/server.el (server-eval-and-print): Allow C-g.
Stefan Monnier [Tue, 22 Nov 2011 15:18:56 +0000 (10:18 -0500)]
* lisp/server.el (server-eval-and-print): Allow C-g.

Fixes: debbugs:6585

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

12 years agoAuto-commit of generated files.
Glenn Morris [Tue, 22 Nov 2011 11:20:22 +0000 (06:20 -0500)]
Auto-commit of generated files.

12 years agoMake configure print EMACSDATA/DOC.
Glenn Morris [Tue, 22 Nov 2011 08:02:21 +0000 (00:02 -0800)]
Make configure print EMACSDATA/DOC.

* configure.in (EMACSDATA, EMACSDOC): If set, print, since they can
have confusing effects on the build.

12 years agoMove rmailmm test functions to test/ directory.
Glenn Morris [Tue, 22 Nov 2011 02:55:06 +0000 (21:55 -0500)]
Move rmailmm test functions to test/ directory.

* lisp/mail/rmailmm.el (test-rmail-mime-handler)
(test-rmail-mime-bulk-handler)
(test-rmail-mime-multipart-handler): Move tests to test/ directory.

* test/rmailmm.el: New file, split from lisp/mail/rmailmm.el.

12 years agognus-art.el (gnus-article-setup-buffer): Decode group name used for article buffers...
Katsumi Yamaoka [Tue, 22 Nov 2011 02:17:20 +0000 (02:17 +0000)]
gnus-art.el (gnus-article-setup-buffer): Decode group name used for article buffers' name.

12 years ago* Makefile.in (install-arch-dep): Tweak previous change.
Glenn Morris [Tue, 22 Nov 2011 01:56:49 +0000 (20:56 -0500)]
* Makefile.in (install-arch-dep): Tweak previous change.

12 years agoSmall fix for --disable-ns-self-contained builds
Yavor Doganov [Tue, 22 Nov 2011 01:37:45 +0000 (20:37 -0500)]
Small fix for --disable-ns-self-contained builds

Do not install arch-dependent files in the app bundle if
--disable-ns-self-contained is requested.

* configure.in (exec_prefix, libexecdir): Define relative to
ns_appbindir' only if configured for a self-contained app.
* Makefile.in (install-arch-dep): Test for the existence of
libexec in the Emacs.app bundle before executing commands.

Fixes: debbugs:1335

12 years agoshr.el (shr-table-horizontal-line): Revert infinite loops introduced by Paul Eggert...
Lars Magne Ingebrigtsen [Tue, 22 Nov 2011 00:59:33 +0000 (00:59 +0000)]
shr.el (shr-table-horizontal-line): Revert infinite loops introduced by Paul Eggert's spellfixes two days ago.

12 years ago* lisp/calc/calc.el (calc-read-key-sequence): Let-bind `input-method-function' to...
Juri Linkov [Mon, 21 Nov 2011 23:59:09 +0000 (01:59 +0200)]
* lisp/calc/calc.el (calc-read-key-sequence): Let-bind `input-method-function' to nil.

Fixes: debbugs:10018

12 years agomm-view.el (mm-display-inline-fontify): Make the font-lock variables buffer-local...
Lars Magne Ingebrigtsen [Mon, 21 Nov 2011 22:08:36 +0000 (22:08 +0000)]
mm-view.el (mm-display-inline-fontify): Make the font-lock variables buffer-local instead of binding them to avoid warnings.  Also demote errors (bug#10063).

12 years agoTell the caller that the next line needs recomputation, even though it doesn't start...
Lars Magne Ingebrigtsen [Mon, 21 Nov 2011 21:58:38 +0000 (22:58 +0100)]
Tell the caller that the next line needs recomputation, even though it doesn't start a sexp.

Fixes: debbugs:10094

12 years ago(wait_reading_process_output): Add comment and URL.
Lars Magne Ingebrigtsen [Mon, 21 Nov 2011 20:39:44 +0000 (21:39 +0100)]
(wait_reading_process_output): Add comment and URL.

12 years agoFix asynchrounous GnuTLS socket handling on some versions of the GnuTLS library.
Lars Magne Ingebrigtsen [Mon, 21 Nov 2011 18:21:42 +0000 (19:21 +0100)]
Fix asynchrounous GnuTLS socket handling on some versions of the GnuTLS library.

Some versions of the GnuTLS library doesn't respons to poll reliably.
Work around this by checking all GnuTLS sockets explicitly from the
idle loop.

12 years ago* xterm.c (x_clear_frame): Reinstate the XClearWindow call.
Jan Djärv [Mon, 21 Nov 2011 18:01:04 +0000 (19:01 +0100)]
* xterm.c (x_clear_frame): Reinstate the XClearWindow call.

12 years ago* lisp/emacs-lisp/autoload.el (autoload-generate-file-autoloads): Simplify.
Stefan Monnier [Mon, 21 Nov 2011 14:22:02 +0000 (09:22 -0500)]
* lisp/emacs-lisp/autoload.el (autoload-generate-file-autoloads): Simplify.

12 years agoFix windows.texi typos.
Martin Rudalics [Mon, 21 Nov 2011 07:28:06 +0000 (08:28 +0100)]
Fix windows.texi typos.

12 years ago* doc/emacs/mark.texi (Global Mark Ring): Fix global mark ring description.
Chong Yidong [Mon, 21 Nov 2011 06:16:49 +0000 (14:16 +0800)]
* doc/emacs/mark.texi (Global Mark Ring): Fix global mark ring description.

Fixes: debbugs:10032

12 years agoMore updates to Windows chapter of Lisp manual.
Chong Yidong [Mon, 21 Nov 2011 06:05:16 +0000 (14:05 +0800)]
More updates to Windows chapter of Lisp manual.

* doc/lispref/windows.texi (Splitting Windows): Fix error in documentation of
window-combination-limit.
(Cyclic Window Ordering): Minor fixes to next-window,
one-window-p, and get-lru-window docs.  Don't document
window-list-1.
(Buffers and Windows): Copyedits.
(Choosing Window): Document special handling of special-display-*.
(Choosing Window Options): Fix display-buffer-reuse-frames doc.
Don't document even-window-heights, which is going away.  Clarify
which options are obeyed by which action functions.

* src/window.c (Fnext_window, Fprevious_window): Doc fix.

12 years ago* NEWS, MH-E-NEWS: Update for MH-E release 8.3.1.
Bill Wohler [Sun, 20 Nov 2011 20:32:21 +0000 (12:32 -0800)]
* NEWS, MH-E-NEWS: Update for MH-E release 8.3.1.

12 years ago* mh-e.el (Version, mh-version): Update for release 8.3.1.
Bill Wohler [Sun, 20 Nov 2011 20:31:38 +0000 (12:31 -0800)]
* mh-e.el (Version, mh-version): Update for release 8.3.1.

12 years ago* doc/lispref/display.texi (Invisible Text): Clarify point adjustment.
Stefan Monnier [Sun, 20 Nov 2011 20:21:22 +0000 (15:21 -0500)]
* doc/lispref/display.texi (Invisible Text): Clarify point adjustment.

Fixes: debbugs:10072

12 years ago* lisp/vc/pcvs-util.el (cvs-pop-to-buffer-same-frame): Use force-same-window.
Stefan Monnier [Sun, 20 Nov 2011 20:17:46 +0000 (15:17 -0500)]
* lisp/vc/pcvs-util.el (cvs-pop-to-buffer-same-frame): Use force-same-window.

12 years ago* src/window.c (get_phys_cursor_glyph): Fix Lisp_Object/int mixup.
Stefan Monnier [Sun, 20 Nov 2011 20:17:13 +0000 (15:17 -0500)]
* src/window.c (get_phys_cursor_glyph): Fix Lisp_Object/int mixup.

12 years agoRemoved deleted command from gnus.texi.
Glenn Morris [Sun, 20 Nov 2011 20:14:54 +0000 (12:14 -0800)]
Removed deleted command from gnus.texi.

* doc/misc/gnus.texi (Group Information):
Remove gnus-group-fetch-faq, command deleted 2010-09-24.

12 years agoFix typos.
Juanma Barranquero [Sun, 20 Nov 2011 19:35:27 +0000 (20:35 +0100)]
Fix typos.

12 years agoAuto-commit of loaddefs files.
Glenn Morris [Sun, 20 Nov 2011 11:27:56 +0000 (06:27 -0500)]
Auto-commit of loaddefs files.

12 years agoAuto-commit of generated files.
Glenn Morris [Sun, 20 Nov 2011 11:21:03 +0000 (06:21 -0500)]
Auto-commit of generated files.

12 years agoRemove term "status" with "window combination limits".
Martin Rudalics [Sun, 20 Nov 2011 10:57:04 +0000 (11:57 +0100)]
Remove term "status" with "window combination limits".

* window.c (Fset_window_combination_limit): Rename argument
STATUS to LIMIT.
(Vwindow_combination_limit): Remove "status" from doc-string.
* windows.texi (Resizing Windows, Splitting Windows): Remove
term "status" when talking about combination limits.

12 years ago* org-list.el (org-list-send-item): Use sort instead of sort*.
Andreas Schwab [Sun, 20 Nov 2011 09:44:39 +0000 (10:44 +0100)]
* org-list.el (org-list-send-item): Use sort instead of sort*.

12 years ago* configure.in: Remove reference to src/m/ibms390.h.
Andreas Schwab [Sun, 20 Nov 2011 09:24:06 +0000 (10:24 +0100)]
* configure.in: Remove reference to src/m/ibms390.h.

* admin/CPP-DEFINES (VIRT_ADDR_VARIES): Remove.

* src/m/ibms390.h: Remove.
* src/m/ibms390x.h: Don't include "ibms390.h".

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

12 years ago* lisp/window.el (replace-buffer-in-windows): Restore interactive spec.
Chong Yidong [Sun, 20 Nov 2011 06:37:46 +0000 (14:37 +0800)]
* lisp/window.el (replace-buffer-in-windows): Restore interactive spec.

(Probably inadvertently removed when converting to Lisp.)

12 years ago* lisp/electric.el (electric-indent-mode): Fix last change (too optimistic).
Stefan Monnier [Sun, 20 Nov 2011 06:29:57 +0000 (01:29 -0500)]
* lisp/electric.el (electric-indent-mode): Fix last change (too optimistic).

12 years ago* src/fileio.c (Finsert_file_contents): Add missing gcpro1 variable.
Stefan Monnier [Sun, 20 Nov 2011 04:34:32 +0000 (23:34 -0500)]
* src/fileio.c (Finsert_file_contents): Add missing gcpro1 variable.
Suggested by Dmitry Antipov <dmantipov@yandex.ru>.

12 years ago* lisp/emacs-lisp/bytecomp.el: Silence obsolete warnings more reliably.
Stefan Monnier [Sun, 20 Nov 2011 04:33:36 +0000 (23:33 -0500)]
* lisp/emacs-lisp/bytecomp.el: Silence obsolete warnings more reliably.
(byte-compile-global-not-obsolete-vars): New var.
(byte-compile-check-variable, byte-compile-make-obsolete-variable):
Use it.
(byte-compile-warn-obsolete): Align text with the one in *Help*.

12 years agoFix typos.
Juanma Barranquero [Sun, 20 Nov 2011 03:48:53 +0000 (04:48 +0100)]
Fix typos.

12 years agoStandardize on VIRT_ADDR_VARIES behavior.
Paul Eggert [Sun, 20 Nov 2011 03:19:22 +0000 (19:19 -0800)]
Standardize on VIRT_ADDR_VARIES behavior.

Otherwise, valgrind does not work on some platforms.
Problem reported by Andreas Schwab in
<http://lists.gnu.org/archive/html/emacs-devel/2011-11/msg00081.html>.
* puresize.h (pure, PURE_P): Always behave as if VIRT_ADDR_VARIES
is set, removing the need for VIRT_ADDRESS_VARIES.
(PURE_P): Use a more-efficient implementation that needs just one
comparison, not two: on x86-64 with GCC 4.6.2, this cut down the
number of instructions from 6 (xorl, cmpq, jge, xorl, cmpq, setge)
to 4 (xorl, subq, cmpq, setbe).
* alloc.c (pure): Always extern now, since that's the
VIRT_ADDR_VARIES behavior.
(PURE_POINTER_P): Use a single comparison, not two, for
consistency with the new puresize.h.
* lisp.h (PNTR_COMPARISON_TYPE): Remove; no longer needed.
* m/ibms390.h, m/intel386.h, m/template.h, s/cygwin.h, s/hpux10-20.h:
Remove VIRT_ADDR_VARIES no longer needed.

Fixes: debbugs:10042

12 years agoMerge from trunk.
Paul Eggert [Sun, 20 Nov 2011 03:07:02 +0000 (19:07 -0800)]
Merge from trunk.

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.