bpt/emacs.git
12 years agoMerge changes made in Gnus trunk.
Lars Magne Ingebrigtsen [Sun, 11 Sep 2011 22:50:22 +0000 (22:50 +0000)]
Merge changes made in Gnus trunk.

gnus.texi (Listing Groups): Explain `gnus-group-list-limit'.
 (Finding the News): Doc clarification.
 (Terminology): Mention naming.
gnus-group.el (gnus-group-list-limit): Explain what the command does.
gnus-sum.el (gnus-fetch-headers): Bump message level.

12 years ago* minibuf.c (Fread_from_minibuffer): Doc fix.
Chong Yidong [Sun, 11 Sep 2011 22:04:52 +0000 (18:04 -0400)]
* minibuf.c (Fread_from_minibuffer): Doc fix.

12 years ago* frame.el (delete-other-frames): Doc fix.
Chong Yidong [Sun, 11 Sep 2011 21:47:39 +0000 (17:47 -0400)]
* frame.el (delete-other-frames): Doc fix.

Fixes: debbugs:276

12 years agoNEWS: fix typo: s/an prefix/a prefix/
Jim Meyering [Sun, 11 Sep 2011 20:27:29 +0000 (22:27 +0200)]
NEWS: fix typo: s/an prefix/a prefix/

12 years agoAdd defcustom definitions for display-buffer vars.
Chong Yidong [Sun, 11 Sep 2011 20:07:34 +0000 (16:07 -0400)]
Add defcustom definitions for display-buffer vars.

* lisp/window.el (display-buffer--action-function-custom-type)
(display-buffer--action-custom-type): New vars.
(display-buffer-alist, display-buffer-default-action)
(display-buffer-overriding-action): Add defcustom types.

12 years ago* play/doctor.el (make-doctor-variables): Define `doctor-sent'.
Lars Magne Ingebrigtsen [Sun, 11 Sep 2011 19:07:41 +0000 (21:07 +0200)]
* play/doctor.el (make-doctor-variables): Define `doctor-sent'.

12 years agoChange modes that used same-window-* vars to use switch-to-buffer.
Chong Yidong [Sun, 11 Sep 2011 18:30:07 +0000 (14:30 -0400)]
Change modes that used same-window-* vars to use switch-to-buffer.

* cmuscheme.el (run-scheme, switch-to-scheme):
* ielm.el (ielm):
* shell.el (shell):
* net/rlogin.el (rlogin):
* net/telnet.el (telnet, rsh):
* progmodes/inf-lisp.el (inferior-lisp): Use switch-to-buffer.

* cus-edit.el (customize-group, custom-buffer-create)
(customize-browse, custom-buffer-create-other-window): Use
switch-to-buffer or switch-to-buffer-other-window.

* info.el (info, Info-find-node, Info-revert-find-node, Info-next)
(Info-prev, Info-up, Info-speedbar-goto-node)
(info-display-manual): Use switch-to-buffer.
(Info-speedbar-goto-node): Use switch-to-buffer-other-frame.

* lisp/gnus/message.el (message-pop-to-buffer): Default to switch-to-buffer.
(message-mail-other-window, message-mail-other-frame)
(message-news-other-window, message-news-other-frame): Use
switch-to-buffer-other-frame and switch-to-buffer-other-window instead
of setting buffer display varibles.

* mail/sendmail.el (mail): Use switch-to-buffer.
(mail-recover): Use switch-to-buffer-other-window.

* progmodes/gdb-mi.el (gdb-restore-windows, gdb-setup-windows):
Use switch-to-buffer.

12 years agoFix bug #9475 with alignment in *Completions* buffer.
Eli Zaretskii [Sun, 11 Sep 2011 17:40:53 +0000 (20:40 +0300)]
Fix bug #9475 with alignment in *Completions* buffer.

 src/xdisp.c (produce_stretch_glyph): Fix a typo made in changes from
 2011-08-30T17:32:44Z!eliz@gnu.org.

12 years ago* lisp/dired.el (dired-sort-toggle-or-edit): Revert last changes.
Andreas Schwab [Sun, 11 Sep 2011 17:08:17 +0000 (19:08 +0200)]
* lisp/dired.el (dired-sort-toggle-or-edit): Revert last changes.

12 years ago(dired-sort-toggle-or-edit): Clarify string further.
Lars Magne Ingebrigtsen [Sun, 11 Sep 2011 17:00:14 +0000 (19:00 +0200)]
(dired-sort-toggle-or-edit): Clarify string further.

12 years agoMerge from gnulib, porting to Tru64.
Paul Eggert [Sun, 11 Sep 2011 16:52:58 +0000 (09:52 -0700)]
Merge from gnulib, porting to Tru64.

* lib/lstat.c, lib/stat.c, m4/include_next.m4, m4/nocrash.m4:
* m4/signal_h.m4, m4/time_h.m4, m4/unistd_h.m4:
Merge from gnulib.  This fixes a compilation error on Tru64 UNIX
aka OSF/1 5.1 DTK cc.  There is also some mingw stuff here that
doesn't affect Emacs.

12 years ago* gnus-dup.el (gnus-dup-suppress-articles): Move "Suppressing duplicates" to a higher...
Lars Magne Ingebrigtsen [Sun, 11 Sep 2011 16:15:00 +0000 (18:15 +0200)]
* gnus-dup.el (gnus-dup-suppress-articles): Move "Suppressing duplicates" to a higher level.

12 years ago(gnus-verbose): Lower default to 6 to get rid of the most egregious messages.
Lars Magne Ingebrigtsen [Sun, 11 Sep 2011 16:12:42 +0000 (18:12 +0200)]
(gnus-verbose): Lower default to 6 to get rid of the most egregious messages.

12 years ago-o doesn't exist on *BSD, so don't mention it
Lars Magne Ingebrigtsen [Sun, 11 Sep 2011 14:54:49 +0000 (16:54 +0200)]
-o doesn't exist on *BSD, so don't mention it

Fixes: debbugs:9301

12 years agoClarify slightly the last checkin.
Lars Magne Ingebrigtsen [Sun, 11 Sep 2011 14:49:24 +0000 (16:49 +0200)]
Clarify slightly the last checkin.

12 years ago(Fvisited_file_modtime): Document `(-1 65535)' as a value for non-existent files.
Lars Magne Ingebrigtsen [Sun, 11 Sep 2011 14:46:38 +0000 (16:46 +0200)]
(Fvisited_file_modtime): Document `(-1 65535)' as a value for non-existent files.

12 years agonnrss.el (nnrss-retrieve-groups): Decode the charset before looking up the file ...
Tetsuo Tsukamoto [Sun, 11 Sep 2011 08:20:33 +0000 (08:20 +0000)]
nnrss.el (nnrss-retrieve-groups): Decode the charset before looking up the file (bug#9351).

12 years agoFix bug #9139 with revisiting non-existent files.
Eli Zaretskii [Sun, 11 Sep 2011 05:52:07 +0000 (01:52 -0400)]
Fix bug #9139 with revisiting non-existent files.

 src/fileio.c (Finsert_file_contents): If the file cannot be opened,
 set its "size" to -1.  This will set the modtime_size field of
 the corresponding buffer to -1, which is what
 verify-visited-file-modtime expects for files that do not exist.

12 years agoMake `(type graphic)' match `x', `w32' and `ns', like the manual says.
Lars Magne Ingebrigtsen [Sun, 11 Sep 2011 04:28:07 +0000 (06:28 +0200)]
Make `(type graphic)' match `x', `w32' and `ns', like the manual says.

Fixes: debbugs:9029

12 years ago(process-kill-buffer-query-function): Mention the buffer name in the query.
Lars Magne Ingebrigtsen [Sun, 11 Sep 2011 03:35:02 +0000 (05:35 +0200)]
(process-kill-buffer-query-function): Mention the buffer name in the query.

12 years ago* subr.el (eval-after-load): Doc string clarification
Lars Magne Ingebrigtsen [Sun, 11 Sep 2011 02:56:39 +0000 (04:56 +0200)]
* subr.el (eval-after-load): Doc string clarification

Fixes: debbugs:9125

12 years ago* image-mode.el (image-next-line): The line parameter is mandatory
Lars Magne Ingebrigtsen [Sun, 11 Sep 2011 02:31:21 +0000 (04:31 +0200)]
* image-mode.el (image-next-line): The line parameter is mandatory

12 years ago* dired.el (dired-sort-toggle-or-edit): Mention -o and -g, too, which can be useful.
Lars Magne Ingebrigtsen [Sun, 11 Sep 2011 02:29:23 +0000 (04:29 +0200)]
* dired.el (dired-sort-toggle-or-edit): Mention -o and -g, too, which can be useful.

Fixes: debbugs:9301

12 years ago* textmodes/flyspell.el: Remove obsolete comment
Lars Magne Ingebrigtsen [Sun, 11 Sep 2011 02:14:10 +0000 (04:14 +0200)]
* textmodes/flyspell.el: Remove obsolete comment

Fixes: debbugs:9368

12 years agoDoc string clarification.
Lars Magne Ingebrigtsen [Sun, 11 Sep 2011 02:10:15 +0000 (04:10 +0200)]
Doc string clarification.

* subr.el (match-string): Mention that the current buffer should
be the same as the search was done in.

Fixes: debbugs:9282

12 years ago* processes.texi (Network Servers): Clarify what the process buffer is used for.
Juanma Barranquero [Sun, 11 Sep 2011 02:04:07 +0000 (04:04 +0200)]
* processes.texi (Network Servers): Clarify what the process buffer is used for.

Fixes: debbugs:9233

12 years ago* facemenu.el: Disable the remove-* commands if the mark isn't active.
Lars Magne Ingebrigtsen [Sun, 11 Sep 2011 01:55:09 +0000 (03:55 +0200)]
* facemenu.el: Disable the remove-* commands if the mark isn't active.

Fixes: debbugs:9162

12 years ago* keymap.h (KEY_DESCRIPTION_SIZE, push_key_description): Move decls
Paul Eggert [Sun, 11 Sep 2011 00:41:48 +0000 (17:41 -0700)]
* keymap.h (KEY_DESCRIPTION_SIZE, push_key_description): Move decls

here ...
* lisp.h: ... from here.  push_key_description is no longer
defined in keyboard.c, so its declaration should not be in
lisp.h's "Defined in keyboard.c" section, and KEY_DESCRIPTION_SIZE
logically belongs with push_key_description.

12 years agoMerge changes made in Gnus trunk.
Gnus developers [Sat, 10 Sep 2011 23:30:53 +0000 (23:30 +0000)]
Merge changes made in Gnus trunk.

gnus.texi: Remove mentions of `recent', which are now obsolete.
 (Interactive): Document `quiet'.
nnimap.el: Redo the charset handling.  Let Gnus encode the names, as it does with all other backends, but decode the names immediately after getting them.
gnus-group.el (gnus-group-name-charset): Always return `utf-7' when decoding nnimap groups.
gnus.el (gnus-variable-list): Don't save `gnus-format-specs' in the newsrc file.  It doesn't seem like an important optimisation any more.
nnimap.el (nnimap-transform-headers): Fix regexp to be less prone to overflows.
gnus.el (gnus-article-mark-lists): Remove `recent'.
 (gnus-interactive-exit): Extend to `quiet'.
gnus-sum.el (gnus-offer-save-summaries): Use it.
gnus-art.el (gnus-treat-hide-citation-maybe): Add more doc to the string.
plstore.el (plstore--get-buffer): Silence compiler warnings by renaming function arguments from `this'.
gnus-sum.el (gnus-newsgroup-recent): Removed.
gnus-spec.el (gnus-lrm-string-p): `bidi-string-mark-left-to-right' has been renamed.
 (gnus-lrm-string-p): Include RLM and PDF, too.
gnus-int.el (gnus-open-server): Make the "denied" message clearer (bug#9225).

12 years agoFix various uses of display-buffer and pop-to-buffer
Chong Yidong [Sat, 10 Sep 2011 21:15:28 +0000 (17:15 -0400)]
Fix various uses of display-buffer and pop-to-buffer
to avoid using special-display-* and same-window-* variables.

* lisp/buff-menu.el (Buffer-menu-switch-other-window): Use second arg
of display-buffer.
(Buffer-menu-2-window): Use switch-to-buffer-other-window.

* lisp/replace.el (occur-mode-goto-occurrence)
(occur-mode-display-occurrence) Use second arg of pop-to-buffer
and display-buffer.

* lisp/window.el (display-buffer-alist): Add *Python*.

* lisp/mail/reporter.el (reporter-submit-bug-report): Use second arg of
display-buffer.

* lisp/mail/sendmail.el (sendmail-user-agent-compose): Don't bind the
special-display and same-window variables.
(mail-other-window): Use switch-to-buffer-other-window.
(mail-other-frame): USe switch-to-buffer-other-frame.

* lisp/progmodes/gdb-mi.el (gdb-frame-gdb-buffer): Use
display-buffer-other-frame.
(gdb-display-gdb-buffer): Use pop-to-buffer.

* lisp/progmodes/gud.el (gud-goto-info): Use info-other-window.

* lisp/progmodes/python.el: Don't set same-window-buffer-names.

* lisp/textmodes/bibtex.el (bibtex-search-entry): Use switch-to-buffer.

12 years agoFix info and customize *-other-window commands.
Chong Yidong [Sat, 10 Sep 2011 20:14:02 +0000 (16:14 -0400)]
Fix info and customize *-other-window commands.

* lisp/cus-edit.el (customize-group): New argument.
(customize-group-other-window): Use it.
(customize-face, customize-face-other-window): Likewise.
(custom-buffer-create-other-window): Use pop-to-buffer directly.

* lisp/info.el (info-setup): New function.
(info-other-window, info): Call it.

12 years ago* buffer.h: Include <sys/types.h> instead of <time.h>.
Paul Eggert [Sat, 10 Sep 2011 19:41:33 +0000 (12:41 -0700)]
* buffer.h: Include <sys/types.h> instead of <time.h>.

Otherwise, off_t wasn't defined on FreeBSD 9.0-BETA2 i386.
Problem reported by Herbert J. Skuhra.

12 years agowindow.el (display-buffer--maybe-same-window): Renamed from display-buffer-maybe...
Chong Yidong [Sat, 10 Sep 2011 19:31:05 +0000 (15:31 -0400)]
window.el (display-buffer--maybe-same-window): Renamed from display-buffer-maybe-same-window.

12 years agoTweaks to display-buffer default actions; remove same-window-* autoload forms.
Chong Yidong [Sat, 10 Sep 2011 18:52:37 +0000 (14:52 -0400)]
Tweaks to display-buffer default actions; remove same-window-* autoload forms.

* lisp/window.el (display-buffer-alist): Add entry for buffers
previously handled same-window-*.
(display-buffer-alist, display-buffer-default-action)
(display-buffer-overriding-action): Mark as risky.
(display-buffer-alist): Document action function changes.
(display-buffer--same-window-action)
(display-buffer--other-frame-action): New variables.
(switch-to-buffer, display-buffer-other-frame): Use them.
(display-buffer): Rename reuse-frame entry to reusable-frames.
(display-buffer-reuse-selected-window): Function deleted.
(display-buffer-reuse-window): Handle reusable-frames alist entry.
If it's omitted, check pop-up-frames/display-buffer-reuse-frames.
(display-buffer-special): New function.
(display-buffer--maybe-pop-up-frame-or-window): Rename from
display-buffer-reuse-or-pop-window.  Split off special-display
part into display-buffer-special.
(display-buffer-use-some-window): Don't perform any special
pop-up-frames handling.
(pop-to-buffer): Use window-normalize-buffer-to-switch-to.

* lisp/cmuscheme.el:
* lisp/ielm.el:
* lisp/shell.el:
* lisp/mail/sendmail.el:
* lisp/progmodes/inf-lisp.el: Don't set same-window-buffer-names.

* lisp/cus-edit.el:
* lisp/info.el:
* lisp/net/rlogin.el:
* lisp/net/telnet.el:
* lisp/progmodes/gud.el: Don't set same-window-regexps.

12 years ago* xml.c (parse_region): Make the parsing work for non-comment-starting XML files...
Lars Magne Ingebrigtsen [Sat, 10 Sep 2011 18:14:50 +0000 (20:14 +0200)]
* xml.c (parse_region): Make the parsing work for non-comment-starting XML files again.

Fixes: debbugs:9144

12 years ago* src/image.c (gif_load): Fix calculation of bottom and right corner.
Andreas Schwab [Sat, 10 Sep 2011 18:13:24 +0000 (20:13 +0200)]
* src/image.c (gif_load): Fix calculation of bottom and right corner.
(Bug#9468)

12 years agoPrevent sluggish bidi redisplay in small windows.
Eli Zaretskii [Sat, 10 Sep 2011 15:23:25 +0000 (18:23 +0300)]
Prevent sluggish bidi redisplay in small windows.

 src/xdisp.c (MAX_DISP_SCAN): Decrease to 250.  Prevents sluggish
 redisplay in small windows.

12 years agoFix docstrings in lisp/isearch.el.
Juri Linkov [Sat, 10 Sep 2011 11:33:38 +0000 (14:33 +0300)]
Fix docstrings in lisp/isearch.el.

* lisp/isearch.el (isearch-edit-string): Remove obsolete mention of
`C-w' (`isearch-yank-word-or-char') from docstring.
(isearch-query-replace): Fix typo in docstring.

Fixes: debbugs:9466

12 years ago* lisp/paren.el (show-paren-function): Don't show escaped parens.
Juri Linkov [Sat, 10 Sep 2011 11:28:19 +0000 (14:28 +0300)]
* lisp/paren.el (show-paren-function): Don't show escaped parens.
Let-bind `unescaped' to `t' when paren is not escaped.

Fixes: debbugs:9461

12 years agoAdd to sendmail.el a new command mail-add-attachment.
Eli Zaretskii [Sat, 10 Sep 2011 08:26:12 +0000 (11:26 +0300)]
Add to sendmail.el a new command mail-add-attachment.

 etc/NEWS: Document the new command and the alias for mail-insert-file.
 lisp/mail/sendmail.el (mml-to-mime, mml-attach-file)
 (mm-default-file-encoding): Remove autoload forms, they are
 replaced with autoload cookies in mml.el and mm-encode.el.
 (mail-add-attachment): New command.
 (mail-mode-map): Add a menu-bar item for mail-add-attachment.
 (mail-mode): Mention mail-insert-file and mail-add-attachment in
 the doc string.
 (mml-to-mime, mml-attach-file, mm-default-file-encoding): Declare.
 lisp/gnus/mm-encode.el (mm-default-file-encoding): Add autoload cookie.
 lisp/gnus/mml.el (mml-to-mime, mml-attach-file): Add autoload cookies.
 doc/emacs/sending.texi (Mail Misc): Document mail-add-attachment.

12 years ago* lisp/simple.el (count-words-region): Use buffer if there's no region.
Reuben Thomas [Sat, 10 Sep 2011 03:02:06 +0000 (23:02 -0400)]
* lisp/simple.el (count-words-region): Use buffer if there's no region.

12 years agoAdd `wdired-isearch-filter-read-only' to lisp/wdired.el.
Juri Linkov [Fri, 9 Sep 2011 15:49:00 +0000 (18:49 +0300)]
Add `wdired-isearch-filter-read-only' to lisp/wdired.el.

* lisp/wdired.el (wdired-change-to-wdired-mode): Set buffer-local
`isearch-filter-predicate' to `wdired-isearch-filter-read-only'.
(wdired-isearch-filter-read-only): New function.

Fixes: debbugs:6362

12 years agognus-art.el (article-date-ut): Work properly even when
Katsumi Yamaoka [Fri, 9 Sep 2011 10:18:45 +0000 (10:18 +0000)]
gnus-art.el (article-date-ut): Work properly even when
 there are things like Date header in the body;
 work for forwarded parts.

12 years agoprogmodes/cc-mode.el (awk-mode): Prevent `define-derived-mode'
Alan Mackenzie [Fri, 9 Sep 2011 09:52:26 +0000 (09:52 +0000)]
progmodes/cc-mode.el (awk-mode): Prevent `define-derived-mode'
spuriously generating `awk-mode-syntax-table'.  (Bug #9448).

12 years agoFix bug #9392 with rmail-forward.
Eli Zaretskii [Fri, 9 Sep 2011 08:59:51 +0000 (11:59 +0300)]
Fix bug #9392 with rmail-forward.

 lisp/simple.el (mail-encode-mml): New defvar.
 lisp/mail/rmail.el (mail-encode-mml): Add a defvar.
 (rmail-enable-mime-composing): Default to t.
 (rmail-forward): Use MIME method of forwarding only if both
 rmail-enable-mime-composing and rmail-enable-mime are non-nil.
 Set mail-encode-mml non-nil if the MIME method was used.
 lisp/mail/sendmail.el (mml-to-mime): Add autoload form.
 (mail-encode-mml): Add a defvar.
 (mail-mode): Make mail-encode-mml buffer-local and initialize it
 to nil.
 (mail-send): If mail-encode-mml is non-nil, run the outgoing
 message through mml-to-mime, and reset mail-encode-mml to nil.

12 years agosrc/frame.c (x_report_frame_params): Cast to avoid compiler warnings.
Eli Zaretskii [Fri, 9 Sep 2011 08:32:43 +0000 (11:32 +0300)]
src/frame.c (x_report_frame_params): Cast to avoid compiler warnings.

12 years ago* lisp/woman.el (woman-special-characters): Add hy character.
Glenn Morris [Fri, 9 Sep 2011 06:34:59 +0000 (23:34 -0700)]
* lisp/woman.el (woman-special-characters): Add hy character.

12 years ago* lisp/woman.el (woman-special-characters): Add oq and cq quote characters.
Glenn Morris [Fri, 9 Sep 2011 06:32:08 +0000 (23:32 -0700)]
* lisp/woman.el (woman-special-characters): Add oq and cq quote characters.

12 years agowoman.el fix for bug#9447.
Glenn Morris [Fri, 9 Sep 2011 06:23:47 +0000 (23:23 -0700)]
woman.el fix for bug#9447.

* lisp/woman.el (woman-if-body): When processing an .el block,
do not delete the next .el block as well.

12 years agoWhitespace changes.
Juanma Barranquero [Fri, 9 Sep 2011 01:06:52 +0000 (03:06 +0200)]
Whitespace changes.

12 years agoDon't have previous and next buffers deal with internal windows.
Martin Rudalics [Thu, 8 Sep 2011 15:45:20 +0000 (17:45 +0200)]
Don't have previous and next buffers deal with internal windows.

* window.c (Fset_window_prev_buffers, Fset_window_next_buffers):
Operate on live windows only.

* window.el (window-deletable-p): Make sure window is live before
invoking window-prev-buffers.

12 years agoNew rcirc command rcirc-cmd-invite
Leo Liu [Thu, 8 Sep 2011 15:25:37 +0000 (23:25 +0800)]
New rcirc command rcirc-cmd-invite

See: http://debbugs.gnu.org/9453

12 years ago* lisp/progmodes/compile.el (compilation-environment): Make it a defcustom.
Juri Linkov [Thu, 8 Sep 2011 12:12:18 +0000 (15:12 +0300)]
* lisp/progmodes/compile.el (compilation-environment): Make it a defcustom.

Fixes: debbugs:8340

12 years ago(grep-regexp-alist): Move dangling comment to the previous rule.
Juri Linkov [Thu, 8 Sep 2011 12:07:52 +0000 (15:07 +0300)]
(grep-regexp-alist): Move dangling comment to the previous rule.

12 years agosrc/emacs.c (my_heap_start): #ifdef to avoid warnings when unused.
Juanma Barranquero [Thu, 8 Sep 2011 10:59:22 +0000 (12:59 +0200)]
src/emacs.c (my_heap_start): #ifdef to avoid warnings when unused.

12 years agoRewrite window/frame auto-deletion code. (Bug#9419) and (Bug#9456)
Martin Rudalics [Thu, 8 Sep 2011 06:28:37 +0000 (08:28 +0200)]
Rewrite window/frame auto-deletion code.  (Bug#9419) and (Bug#9456)

* window.el (frame-auto-delete): Rename to window-auto-delete.
Make it control auto-deletion of windows and/or frames.
(window-deletable-p): New argument FORCE.  Rewrite conditions
for deleting window/frame. (Bug#9419)
(switch-to-prev-buffer, replace-buffer-in-windows, quit-window):
Rewrite handling of case when window/frame can be deleted.
(delete-windows-on): Call window-deletable-p with new FORCE
argument t. (Bug#9456)

12 years agoFix move-if-change permissions.
Paul Eggert [Wed, 7 Sep 2011 18:26:41 +0000 (11:26 -0700)]
Fix move-if-change permissions.

These were inadvertenly changed to 644 in the previous revision;
the file should be executable, so change it back to 755.

12 years agoFix a crash in vertical-motion.
Eli Zaretskii [Wed, 7 Sep 2011 18:14:26 +0000 (21:14 +0300)]
Fix a crash in vertical-motion.

 src/xdisp.c (move_it_in_display_line_to): Call RESTORE_IT on ppos_it
 only under bidi iteration.

12 years ago(xg_make_tool_item): Insert comment about eventbox.
Jan Djärv [Wed, 7 Sep 2011 17:25:24 +0000 (19:25 +0200)]
(xg_make_tool_item): Insert comment about eventbox.

12 years ago* lisp/help-mode.el (help-mode): Restore autoload.
Chong Yidong [Wed, 7 Sep 2011 14:40:27 +0000 (10:40 -0400)]
* lisp/help-mode.el (help-mode): Restore autoload.

12 years ago* lisp/progmodes/compile.el (compilation-start): Let-bind `thisenv' to
Juri Linkov [Wed, 7 Sep 2011 12:17:54 +0000 (15:17 +0300)]
* lisp/progmodes/compile.el (compilation-start): Let-bind `thisenv' to
`compilation-environment'.  Set buffer-local
`compilation-environment' to `thisenv' later after (funcall mode).
(Bug#8340)

* lisp/vc/vc-git.el (vc-git-grep): Remove --no-color.  (Bug#9408)
(vc-git-grep): Prepend "PAGER=" to `compilation-environment'
instead of replacing its value.  (Bug#8340)

12 years ago* lisp/progmodes/grep.el (grep-regexp-alist): Calculate column positions
Juri Linkov [Wed, 7 Sep 2011 12:00:52 +0000 (15:00 +0300)]
* lisp/progmodes/grep.el (grep-regexp-alist): Calculate column positions
based on text properties put by `grep-filter' instead of matching
escape sequences.
(grep-mode): Set buffer-local `compilation-error-screen-columns'
to the value of `grep-error-screen-columns'.

Fixes: debbugs:9438

12 years ago* lisp/simple.el (next-error-highlight, next-error-highlight-no-select): Doc fix.
Juri Linkov [Wed, 7 Sep 2011 11:46:56 +0000 (14:46 +0300)]
* lisp/simple.el (next-error-highlight, next-error-highlight-no-select): Doc fix.

Fixes: debbugs:9432

12 years agoAuto-commit of generated files.
Glenn Morris [Wed, 7 Sep 2011 10:18:28 +0000 (06:18 -0400)]
Auto-commit of generated files.

12 years ago* lib-src/etags.c (Fortran_functions): Handle "elemental" functions.
Glenn Morris [Wed, 7 Sep 2011 07:28:05 +0000 (00:28 -0700)]
* lib-src/etags.c (Fortran_functions): Handle "elemental" functions.

12 years ago* lib-src/etags.c (Fortran_functions): Handle "pure" functions. (tiny change)
Dieter Schuster [Wed, 7 Sep 2011 07:25:55 +0000 (00:25 -0700)]
* lib-src/etags.c (Fortran_functions): Handle "pure" functions.  (tiny change)

Fixes: debbugs:9359

12 years ago* lisp/progmodes/cc-fonts.el: Remove trailing whitespace.
Glenn Morris [Wed, 7 Sep 2011 07:16:40 +0000 (00:16 -0700)]
* lisp/progmodes/cc-fonts.el: Remove trailing whitespace.

12 years agocc-fonts.el fix for bug#9443 (tiny change)
OKAZAKI Tetsurou [Wed, 7 Sep 2011 07:15:42 +0000 (00:15 -0700)]
cc-fonts.el fix for bug#9443 (tiny change)

* lisp/progmodes/cc-fonts.el (c-font-lock-enclosing-decls):
Check for null c-opt-block-decls-with-vars-key.

12 years agoConditionally initialize rcirc-input-ring
Leo Liu [Wed, 7 Sep 2011 03:37:22 +0000 (11:37 +0800)]
Conditionally initialize rcirc-input-ring

12 years ago* lisp/emacs-lisp/find-func.el (find-function-C-source): Only set
Stefan Monnier [Wed, 7 Sep 2011 01:06:09 +0000 (21:06 -0400)]
* lisp/emacs-lisp/find-func.el (find-function-C-source): Only set
find-function-C-source-directory after checking that we found a source
file there.

Fixes: debbugs:9440

12 years agoisnan: Fix porting problem to Solaris 10 with bundled gcc.
Paul Eggert [Tue, 6 Sep 2011 20:47:45 +0000 (13:47 -0700)]
isnan: Fix porting problem to Solaris 10 with bundled gcc.

Without this fix, the command to link temacs failed due to an
undefined symbol __builtin_isnan.  This is because
/usr/include/iso/math_c99.h #defines isnan(x) to
__builtin_isnan(x), but the bundled gcc, which identifies itself
as gcc 3.4.3 (csl-sol210-3_4-branch+sol_rpath), does not have
a __builtin_isnan.
* configure.in (isnan): Remove now-unnecessary check.
* src/floatfns.c (isnan): #undef, and then #define to a clone of
what's in data.c.
(Fisnan): Always define, since it's always available now.
(syms_of_floatfns): Always define isnan at the Lisp level.

12 years agoAuto-commit of generated files.
Paul Eggert [Tue, 6 Sep 2011 18:18:53 +0000 (11:18 -0700)]
Auto-commit of generated files.

12 years agoMerge from trunk.
Paul Eggert [Tue, 6 Sep 2011 16:34:41 +0000 (09:34 -0700)]
Merge from trunk.

12 years agoMerge from trunk.
Paul Eggert [Tue, 6 Sep 2011 15:27:16 +0000 (08:27 -0700)]
Merge from trunk.

12 years agoisearch.el (isearch-other-meta-char): Wherever a key list is unread,
Alan Mackenzie [Tue, 6 Sep 2011 01:01:46 +0000 (01:01 +0000)]
isearch.el (isearch-other-meta-char): Wherever a key list is unread,
"unread" the prefix arg, too.  This fixes bug #8901.

12 years agoMerge changes made in Gnus trunk.
Gnus developers [Mon, 5 Sep 2011 22:07:34 +0000 (22:07 +0000)]
Merge changes made in Gnus trunk.

gnus-sum.el (gnus-summary-exit): Ensure we kill the proper original-article-buffer.
nnir.el (nnir-compose-result): Fix matching of server type.
 (nnir-run-swish++): Ditto.
 (nnir-run-namazu): Ditto.
 (nnir-run-notmuch): Ditto.

12 years agoMerge from trunk.
Paul Eggert [Mon, 5 Sep 2011 20:43:14 +0000 (13:43 -0700)]
Merge from trunk.

12 years agoAuto-commit of generated files.
Glenn Morris [Mon, 5 Sep 2011 10:18:36 +0000 (06:18 -0400)]
Auto-commit of generated files.

12 years ago* lisp/progmodes/grep.el (rgrep): Add "-type d".
Oleksandr Gavenko [Mon, 5 Sep 2011 09:55:11 +0000 (12:55 +0300)]
* lisp/progmodes/grep.el (rgrep): Add "-type d".

Fixes: debbugs:9414

12 years ago* lisp/progmodes/grep.el (grep-process-setup): Fix comments.
Juri Linkov [Mon, 5 Sep 2011 09:48:26 +0000 (12:48 +0300)]
* lisp/progmodes/grep.el (grep-process-setup): Fix comments.

Fixes: debbugs:8084

12 years ago* dbusbind.c (xd_signature_cat): Rename from signature_cat.
Michael Albinus [Mon, 5 Sep 2011 09:34:18 +0000 (11:34 +0200)]
* dbusbind.c (xd_signature_cat): Rename from signature_cat.

12 years agoGrep related fixes.
Juri Linkov [Mon, 5 Sep 2011 08:20:02 +0000 (11:20 +0300)]
Grep related fixes.

* etc/grep.txt: Add `eval' to the Local Variables section that
emulates `grep-filter'.

* lisp/progmodes/grep.el (grep-filter): Avoid incomplete processing by
keeping point where processing of grep matches begins, and
continue to delete remaining escape sequences from the same point.
(grep-filter): Make leading zero optional in "0?1;31m" because
git-grep emits "\033[1;31m" escape sequences unlike expected
"\033[01;31m" as GNU Grep does.
(grep-process-setup): Replace obsolete "ml=" with newer "sl=".

Fixes: debbugs:9408

12 years ago* lisp/subr.el (y-or-n-p): Capitalize "yes".
Juri Linkov [Mon, 5 Sep 2011 08:05:01 +0000 (11:05 +0300)]
* lisp/subr.el (y-or-n-p): Capitalize "yes".

12 years agoMerge from trunk.
Paul Eggert [Sun, 4 Sep 2011 23:58:01 +0000 (16:58 -0700)]
Merge from trunk.

12 years agoMerge changes made in Gnus trunk.
Lars Magne Ingebrigtsen [Sun, 4 Sep 2011 22:17:09 +0000 (22:17 +0000)]
Merge changes made in Gnus trunk.

gnus.el (gnus-home-directory): Add warning about setting in .gnus.el (bug#9405).
gnus-score.el (gnus-summary-increase-score): Doc clarification (bug#9421).
gnus-spec.el (gnus-face-0): Make all the face specs into defcustoms (bug#9425).
gnus-art.el (gnus-treatment-function-alist): Remove CRs as the first thing (bug#9426).

12 years agosprintf-related integer and memory overflow issues
Paul Eggert [Sun, 4 Sep 2011 21:52:59 +0000 (14:52 -0700)]
sprintf-related integer and memory overflow issues

Fixes: debbugs:9397 debbugs:9412

12 years agoMerge from trunk.
Paul Eggert [Sun, 4 Sep 2011 19:18:28 +0000 (12:18 -0700)]
Merge from trunk.

12 years agoInteger overflow fixes for scrolling, etc.
Paul Eggert [Sun, 4 Sep 2011 19:14:54 +0000 (12:14 -0700)]
Integer overflow fixes for scrolling, etc.

12 years agoMerge from trunk.
Paul Eggert [Sun, 4 Sep 2011 19:06:14 +0000 (12:06 -0700)]
Merge from trunk.

12 years ago* xdisp.c: Integer overflow fix.
Paul Eggert [Sun, 4 Sep 2011 18:48:35 +0000 (11:48 -0700)]
* xdisp.c: Integer overflow fix.

(try_window_id): Check Emacs fixnum range before converting to 'int'.

12 years ago* window.c: Integer overflow fixes.
Paul Eggert [Sun, 4 Sep 2011 18:46:51 +0000 (11:46 -0700)]
* window.c: Integer overflow fixes.

(window_scroll_line_based, Frecenter):
Check that an Emacs fixnum is in range before assigning it to 'int'.
(Frecenter, Fmove_to_window_line): Use EMACS_INT, not int, for
values converted from Emacs fixnums.
(Frecenter): Don't wrap around a line count if it is out of 'int'
range; instead, treat it as an extreme value.
(Fset_window_configuration, compare_window_configurations):
Use ptrdiff_t, not int, for index that might exceed 2 GiB.

12 years ago* net/tramp.el (top): Require 'shell. Use `tramp-unload-hook' but
Michael Albinus [Sun, 4 Sep 2011 18:14:34 +0000 (20:14 +0200)]
* net/tramp.el (top): Require 'shell.  Use `tramp-unload-hook' but
`tramp-cache-unload-hook' where appropriate.
(tramp-methods): Rename `tramp-remote-sh' to
`tramp-remote-shell'.  Add `tramp-remote-shell-args'.
(tramp-handle-shell-command): New defun, moved from tramp-sh.el.

* net/tramp-sh.el (top): Don't require 'shell.
(tramp-methods): Add `tramp-remote-shell' and
`tramp-remote-shell-args' entries.
(tramp-sh-file-name-handler-alist): Use `tramp-handle-shell-command'.
(tramp-sh-handle-shell-command): Remove.
(tramp-find-shell, tramp-open-connection-setup-interactive-shell):
Use `tramp-remote-shell'.

12 years ago* search.c: Integer overflow fixes
Paul Eggert [Sun, 4 Sep 2011 17:27:38 +0000 (10:27 -0700)]
* search.c: Integer overflow fixes

(Freplace_match): Use ptrdiff_t, not int, for indexes that can
exceed INT_MAX.  Check that EMACS_INT value is in range before
assigning it to the (possibly-narrower) index.
(match_limit): Don't assume that a fixnum can fit in 'int'.

12 years ago* print.c: Integer overflow fix.
Paul Eggert [Sun, 4 Sep 2011 17:25:23 +0000 (10:25 -0700)]
* print.c: Integer overflow fix.

(print_object): Use ptrdiff_t, not int, for index that can
exceed INT_MAX.

12 years ago* indent.c: Integer overflow fixes.
Paul Eggert [Sun, 4 Sep 2011 17:24:12 +0000 (10:24 -0700)]
* indent.c: Integer overflow fixes.

(position_indentation): Now takes ptrdiff_t, not int.
(Fvertical_motion): Don't wrap around LINES values that don't fit
in 'int'.  Instead, treat them as extreme values.  This is good
enough for windows, which can't have more than INT_MAX lines anyway.

12 years agoFix bug #9433 with indexing of C-x 8 RET.
Eli Zaretskii [Sun, 4 Sep 2011 16:53:44 +0000 (19:53 +0300)]
Fix bug #9433 with indexing of C-x 8 RET.

 doc/emacs/basic.texi (Inserting Text): Add index entries.

12 years agoMerge from gnulib.
Paul Eggert [Sat, 3 Sep 2011 23:08:32 +0000 (16:08 -0700)]
Merge from gnulib.

12 years agoMerge from trunk.
Paul Eggert [Sat, 3 Sep 2011 23:03:38 +0000 (16:03 -0700)]
Merge from trunk.

12 years agonnimap.el (nnimap-open-connection-1): Use the correct port number in the error message.
Lars Magne Ingebrigtsen [Sat, 3 Sep 2011 22:51:26 +0000 (22:51 +0000)]
nnimap.el (nnimap-open-connection-1): Use the correct port number in the error message.

12 years ago* Require libxml/parser.h to avoid compilation warning.
Lars Magne Ingebrigtsen [Sat, 3 Sep 2011 22:20:00 +0000 (00:20 +0200)]
* Require libxml/parser.h to avoid compilation warning.