bpt/emacs.git
12 years agoSpelling fixes.
Paul Eggert [Sat, 26 Nov 2011 08:26:37 +0000 (00:26 -0800)]
Spelling fixes.

12 years agoRename locals to avoid shadowing.
Paul Eggert [Sat, 26 Nov 2011 07:42:44 +0000 (23:42 -0800)]
Rename locals to avoid shadowing.

* fileio.c (Finsert_file_contents):
Rename inner 'gcpro1' to 'inner_gcpro1' to avoid shadowing.
* process.c (wait_reading_process_output):
Rename inner 'proc' to 'p' to avoid shadowing.
Indent for consistency with usual Emacs style.

12 years agoAdd grammar files for grammar-wy.el and wrt-wy.el.
Chong Yidong [Sat, 26 Nov 2011 06:28:10 +0000 (14:28 +0800)]
Add grammar files for grammar-wy.el and wrt-wy.el.
Regenerate the relevant CEDET parsers.

* admin/grammars/bovine-grammar.el:
* admin/grammars/wisent-grammar.el: Add scripts for generating the parsers.

12 years agoFix bug #10119 with C-e and whitespace-mode.
Eli Zaretskii [Fri, 25 Nov 2011 19:52:46 +0000 (21:52 +0200)]
Fix bug #10119 with C-e and whitespace-mode.

 src/xdisp.c (start_display): Don't move to the next line if the display
 should start at a newline that is part of a display vector or an overlay
 string.

12 years agoFixes and updates for Frames chapter in Emacs manual.
Chong Yidong [Fri, 25 Nov 2011 15:43:34 +0000 (23:43 +0800)]
Fixes and updates for Frames chapter in Emacs manual.

* doc/emacs/files.texi (Visiting): `C-x 5 f' works on ttys too.

* doc/emacs/frames.texi (Frames): Rewrite introduction.
(Mouse Commands): Default for mouse-drag-copy-region is now t.
The mouse-save-then-kill-command does not copy to kill ring by
default.  Behavior of DEL is not special to mouse commands now.
(Mouse References): Document mouse-1-click-follows-link more
thoroughly.
(Menu Mouse Clicks): Move footnote to the main text and add xref
to Init Rebinding node.
(Mode Line Mouse): Mouse-3 on the mode-line does not bury buffer.

* lisp/window.el (display-buffer--special-action): Minor doc fix.

12 years agoFix a thinko in 2011-11-25T11:32:14Z!eliz@gnu.org.
Eli Zaretskii [Fri, 25 Nov 2011 15:22:30 +0000 (17:22 +0200)]
Fix a thinko in 2011-11-25T11:32:14Z!eliz@gnu.org.

12 years agoFix description of window-combination-limit.
Martin Rudalics [Fri, 25 Nov 2011 14:24:05 +0000 (15:24 +0100)]
Fix description of window-combination-limit.

* windows.texi (Splitting Windows): Fix description of
window-combination-limit.  Suggested by Eli Zaretskii.

12 years agoFix typos.
Juanma Barranquero [Fri, 25 Nov 2011 13:26:30 +0000 (14:26 +0100)]
Fix typos.

12 years agont/INSTALL: Elaborate on debugging fatal errors.
Eli Zaretskii [Fri, 25 Nov 2011 12:17:33 +0000 (14:17 +0200)]
nt/INSTALL: Elaborate on debugging fatal errors.

12 years agoFix bug #10105 with Isearch triggered scrolling under scroll-conservatively.
Eli Zaretskii [Fri, 25 Nov 2011 11:32:14 +0000 (13:32 +0200)]
Fix bug #10105 with Isearch triggered scrolling under scroll-conservatively.

 src/xdisp.c (redisplay_window): If cursor row is not fully visible
 after recentering, and scroll-conservatively is set to a large
 number, scroll window by a few more lines to make the cursor fully
 visible and out of scroll-margin.

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

12 years ago* src/image.c (imagemagick_load_image): Move `MagickSetResolution' down
Juri Linkov [Thu, 24 Nov 2011 19:02:39 +0000 (21:02 +0200)]
* src/image.c (imagemagick_load_image): Move `MagickSetResolution' down
after the `MagickPingImage' call.

Fixes: debbugs:10112

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

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

12 years agoGive some autoloaded things doc-strings.
Glenn Morris [Thu, 24 Nov 2011 08:21:03 +0000 (00:21 -0800)]
Give some autoloaded things doc-strings.

* lisp/lpr.el (lpr-windows-system, lpr-lp-system):
* lisp/mail/binhex.el (binhex-begin-line):
* lisp/progmodes/grep.el (grep-history, grep-find-history):
* lisp/textmodes/flyspell.el:
* lisp/vc/pcvs-defs.el (cvs-global-menu):
* lisp/vc/vc-bzr.el (vc-bzr-admin-checkout-format-file):
* lisp/vc/vc-mtn.el (vc-mtn-admin-dir, vc-mtn-admin-format):
* lisp/vc/vc-cvs.el (vc-cvs-registered): Give them basic doc-strings.

12 years agoFix case of "GnuTLS" in docs.
Glenn Morris [Thu, 24 Nov 2011 07:44:51 +0000 (23:44 -0800)]
Fix case of "GnuTLS" in docs.

* doc/misc/gnus.texi, doc/misc/smtpmail.texi:
* etc/NEWS:
* lisp/gnus/starttls.el, lisp/net/tls.el: Fix case of "GnuTLS".

12 years ago* lib-src/make-docfile.c (scan_lisp_file): Treat defcustom like defvar.
Glenn Morris [Thu, 24 Nov 2011 07:32:40 +0000 (23:32 -0800)]
* lib-src/make-docfile.c (scan_lisp_file): Treat defcustom like defvar.

* lisp/paths.el (rmail-file-name): Format doc-string for make-docfile.

12 years ago* lisp/version.el (emacs-build-system): Give it a doc-string.
Glenn Morris [Thu, 24 Nov 2011 07:24:31 +0000 (23:24 -0800)]
* lisp/version.el (emacs-build-system): Give it a doc-string.

Consolidate local variables at the end of the file.

12 years ago* lisp/view.el (view-buffer): Revert 2011-07-19T15:01:49Z!larsi@gnus.org from 2011...
Juri Linkov [Thu, 24 Nov 2011 07:09:56 +0000 (09:09 +0200)]
* lisp/view.el (view-buffer): Revert 2011-07-19T15:01:49Z!larsi@gnus.org from 2011-07-19.

Fixes: debbugs:8615

12 years agoMake rmail-mime toggle headers of non-mime messages.
Glenn Morris [Thu, 24 Nov 2011 03:59:09 +0000 (19:59 -0800)]
Make rmail-mime toggle headers of non-mime messages.

* lisp/mail/rmailmm.el (rmail-mime): When rmail-enable-mime is non-nil,
if called on a non-mime message just toggle the headers.

Fixes: debbugs:8006

12 years agodoc/lispintro/makefile.w32-in, doc/misc/makefile.w32-in: Update dependencies.
Juanma Barranquero [Thu, 24 Nov 2011 02:22:09 +0000 (03:22 +0100)]
doc/lispintro/makefile.w32-in, doc/misc/makefile.w32-in: Update dependencies.

12 years agoFix typos.
Juanma Barranquero [Thu, 24 Nov 2011 01:58:14 +0000 (02:58 +0100)]
Fix typos.

12 years agomail-source.el (mail-source-fetch-maildir): Don't expect the return value of `delete...
Adam W [Thu, 24 Nov 2011 00:15:19 +0000 (00:15 +0000)]
mail-source.el (mail-source-fetch-maildir): Don't expect the return value of `delete-file', that returns nil for a local file but returns t for a remote file using ssh.

12 years ago* rmail.texi (Rmail Output): Mention rmail-automatic-folder-directives.
Glenn Morris [Thu, 24 Nov 2011 00:12:46 +0000 (19:12 -0500)]
* rmail.texi (Rmail Output): Mention rmail-automatic-folder-directives.

12 years ago* rfn-eshadow.el (rfn-eshadow-update-overlay): Let-bind
Michael Albinus [Wed, 23 Nov 2011 20:05:50 +0000 (21:05 +0100)]
* rfn-eshadow.el (rfn-eshadow-update-overlay): Let-bind
`non-essential' to t, in order to avoid remote connections.

12 years agoFix "make autoloads" on MS-Windows.
Eli Zaretskii [Wed, 23 Nov 2011 18:39:38 +0000 (20:39 +0200)]
Fix "make autoloads" on MS-Windows.

 lisp/emacs-lisp/autoload.el (autoload-generate-file-autoloads): On
 MS-DOS and MS-Windows, compare with loaddefs.el case-insensitively.

12 years agoUpdate Coordinates and Windows node of Lisp manual.
Chong Yidong [Wed, 23 Nov 2011 16:25:11 +0000 (00:25 +0800)]
Update Coordinates and Windows node of Lisp manual.

* doc/lispref/windows.texi (Window Sizes): Move window-top-line,
window-left-column, and window-*-pixel-edges to Coordinates and
Windows node.
(Coordinates and Windows): Restore window-edges doc.

12 years ago* src/window.c (Fcoordinates_in_window_p): Accept only live windows.
Chong Yidong [Wed, 23 Nov 2011 16:09:08 +0000 (00:09 +0800)]
* src/window.c (Fcoordinates_in_window_p): Accept only live windows.

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

12 years agoIn Fkill_buffer do replace_buffer_in_windows before Fset_buffer. (Bug#10114)
Martin Rudalics [Wed, 23 Nov 2011 09:57:27 +0000 (10:57 +0100)]
In Fkill_buffer do replace_buffer_in_windows before Fset_buffer.  (Bug#10114)

* buffer.c (Fkill_buffer): Run replace_buffer_in_windows before
making another buffer current.  (Bug#10114)

12 years ago* paths.el (rmail-file-name): Reformat the doc-string so that it is picked up.
Glenn Morris [Wed, 23 Nov 2011 08:48:07 +0000 (00:48 -0800)]
* paths.el (rmail-file-name): Reformat the doc-string so that it is picked up.

12 years agoDoc fixes related to rmail-automatic-folder-directives.
Glenn Morris [Wed, 23 Nov 2011 08:29:08 +0000 (00:29 -0800)]
Doc fixes related to rmail-automatic-folder-directives.

* mail/rmail.el (rmail-message-filter, rmail-auto-file): Doc fixes.
(rmail-auto-file): Ignore case in the "special" field names,
as mail-fetch-field does for all others.

12 years ago* lisp/mail/unrmail.el (unrmail): Always add blank line. (tiny change)
Mark Lillibridge [Wed, 23 Nov 2011 07:49:53 +0000 (23:49 -0800)]
* lisp/mail/unrmail.el (unrmail): Always add blank line.  (tiny change)

Fixes: debbugs:7743

12 years agoRmail trivia: give explicit errors for empty folders.
Glenn Morris [Wed, 23 Nov 2011 07:41:17 +0000 (23:41 -0800)]
Rmail trivia: give explicit errors for empty folders.

* mail/rmail.el (rmail-forward):
* mail/rmailkwd.el (rmail-set-label):
* mail/rmailout.el (rmail-output, rmail-output-as-seen)
(rmail-output-body-to-file): Give error if no message.

Fixes: debbugs:10082

12 years ago* lisp/mail/rmail.el (rmail-current-message): Doc fix.
Glenn Morris [Wed, 23 Nov 2011 07:31:39 +0000 (23:31 -0800)]
* lisp/mail/rmail.el (rmail-current-message): Doc fix.

12 years ago* lisp/mail/rmail.el (rmail-message-filter): Mark as obsolete.
Glenn Morris [Wed, 23 Nov 2011 07:17:48 +0000 (23:17 -0800)]
* lisp/mail/rmail.el (rmail-message-filter): Mark as obsolete.

* etc/NEWS: Mention this.

Fixes: debbugs:2624

12 years ago* src/font.c (font_find_for_lface) [HAVE_NS]: Ignore case.
Glenn Morris [Wed, 23 Nov 2011 07:09:27 +0000 (23:09 -0800)]
* src/font.c (font_find_for_lface) [HAVE_NS]: Ignore case.

Fixes: debbugs:2526

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.