bpt/emacs.git
13 years ago* charset.c (load_charset): Abort instead of using uninitialized var.
Paul Eggert [Tue, 8 Mar 2011 00:46:23 +0000 (16:46 -0800)]
* charset.c (load_charset): Abort instead of using uninitialized var.

13 years ago* charset.c (load_charset_map): Mark variables that gcc -Wuninitialized
Paul Eggert [Tue, 8 Mar 2011 00:36:30 +0000 (16:36 -0800)]
* charset.c (load_charset_map): Mark variables that gcc -Wuninitialized

does not deduce are never used uninitialized.

13 years ago* charset.c: Include <limits.h>.
Paul Eggert [Tue, 8 Mar 2011 00:35:37 +0000 (16:35 -0800)]
* charset.c: Include <limits.h>.

(Fsort_charsets): Redo min/max calculation to shorten the code a bit
and to avoid gcc -Wuninitialized warning.

13 years ago* charset.h (CHECK_CHARSET_GET_CHARSET): Rename locals to avoid
Paul Eggert [Tue, 8 Mar 2011 00:22:52 +0000 (16:22 -0800)]
* charset.h (CHECK_CHARSET_GET_CHARSET): Rename locals to avoid

shadowing.
* charset.c (map_charset_for_dump, Fchar_charset): Likewise.

13 years ago2011-03-08 Paul Eggert <eggert@cs.ucla.edu>
Paul Eggert [Tue, 8 Mar 2011 00:06:36 +0000 (16:06 -0800)]
2011-03-08  Paul Eggert  <eggert@cs.ucla.edu>

* window.c (size_window): Mark variables that gcc -Wuninitialized
does not deduce are never used uninitialized.

13 years ago* window.h (check_all_windows): New decl, to forestall
Paul Eggert [Mon, 7 Mar 2011 07:07:38 +0000 (23:07 -0800)]
* window.h (check_all_windows): New decl, to forestall

gcc -Wmissing-prototypes diagnostic.

13 years ago* window.c (display_buffer): Now static.
Paul Eggert [Mon, 7 Mar 2011 07:06:05 +0000 (23:06 -0800)]
* window.c (display_buffer): Now static.

13 years ago* window.c (window_loop, size_window):
Paul Eggert [Mon, 7 Mar 2011 06:58:49 +0000 (22:58 -0800)]
* window.c (window_loop, size_window):
(run_window_configuration_change_hook, enlarge_window):
Rename locals to avoid shadowing.

13 years ago* xmenu.c (next_menubar_widget_id): Declare only if USE_X_TOOLKIT,
Paul Eggert [Mon, 7 Mar 2011 06:46:29 +0000 (22:46 -0800)]
* xmenu.c (next_menubar_widget_id): Declare only if USE_X_TOOLKIT,

since it's unused otherwise.

13 years ago* xmenu.c (xmenu_show, xdialog_show, xmenu_show): Make local pointers "const"
Paul Eggert [Mon, 7 Mar 2011 06:43:11 +0000 (22:43 -0800)]
* xmenu.c (xmenu_show, xdialog_show, xmenu_show): Make local pointers "const"

since they might point to immutable storage.

13 years ago* xdisp.c (redisplay_window): Rename local to avoid shadowing.
Paul Eggert [Mon, 7 Mar 2011 06:39:56 +0000 (22:39 -0800)]
* xdisp.c (redisplay_window): Rename local to avoid shadowing.

13 years agoMerge from mainline.
Paul Eggert [Mon, 7 Mar 2011 06:26:47 +0000 (22:26 -0800)]
Merge from mainline.

13 years ago* xmenu.c (xmenu_show): Rename parameter to avoid shadowing.
Paul Eggert [Mon, 7 Mar 2011 06:23:15 +0000 (22:23 -0800)]
* xmenu.c (xmenu_show): Rename parameter to avoid shadowing.

13 years agoRevert incorrect logic in 2011-03-06T07:50:01Z!eggert@cs.ucla.edu.
Chong Yidong [Sun, 6 Mar 2011 23:19:25 +0000 (18:19 -0500)]
Revert incorrect logic in 2011-03-06T07:50:01Z!eggert@cs.ucla.edu.

* src/xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06 change.

13 years ago* xmenu.c (set_frame_menubar): Remove unused local.
Paul Eggert [Sun, 6 Mar 2011 22:36:06 +0000 (14:36 -0800)]
* xmenu.c (set_frame_menubar): Remove unused local.

13 years ago* xmenu.c (menu_highlight_callback): Now static.
Paul Eggert [Sun, 6 Mar 2011 22:34:54 +0000 (14:34 -0800)]
* xmenu.c (menu_highlight_callback): Now static.

13 years agoxdisp.c (draw_glyphs):
Paul Eggert [Sun, 6 Mar 2011 22:22:56 +0000 (14:22 -0800)]
xdisp.c (draw_glyphs):
Mark variables that gcc -Wuninitialized cannot deduce are never
used uninitialized.

13 years agoxdisp.c (draw_glyphs):
Paul Eggert [Sun, 6 Mar 2011 22:11:02 +0000 (14:11 -0800)]
xdisp.c (draw_glyphs):
Mark variables that gcc -Wuninitialized cannot deduce are never
used uninitialized.

13 years agoxdisp.c (BUILD_COMPOSITE_GLYPH_STRING): Mark variables that
Paul Eggert [Sun, 6 Mar 2011 22:04:59 +0000 (14:04 -0800)]
xdisp.c (BUILD_COMPOSITE_GLYPH_STRING): Mark variables that
gcc -Wuninitialized cannot deduce are never used uninitialized.

13 years agoDocument package archives in the Lisp manual.
Chong Yidong [Sun, 6 Mar 2011 21:52:17 +0000 (16:52 -0500)]
Document package archives in the Lisp manual.

* doc/lispref/package.texi: Update index keywords.
(Package Archives): New node contents.  Document package-x.el.

13 years ago* lisp/progmodes/gud.el (gdb-script-syntax-propertize-function):
Stefan Monnier [Sun, 6 Mar 2011 20:55:52 +0000 (15:55 -0500)]
* lisp/progmodes/gud.el (gdb-script-syntax-propertize-function):
Don't change the syntax of a \n that closes a comment.

Fixes: debbugs:8169

13 years agoUsability improvements to commands in package-x.el.
Chong Yidong [Sun, 6 Mar 2011 20:19:39 +0000 (15:19 -0500)]
Usability improvements to commands in package-x.el.

* lisp/emacs-lisp/package-x.el (package-archive-upload-base): Make it a
defcustom.
(package--update-file): Doc fix.  Accept relative file names.
(package--archive-contents-from-file): Remove the argument, since
it's necessarily always "archive-contents".
(package-maint-add-news-item): Pass relative file name args to
package--update-file.
(package-upload-buffer-internal): Prompt for a destination if
package-archive-upload-base is invalid.  Create the directory if
it does not exist.
(package-upload-buffer, package-upload-file): Doc fix.

13 years ago* xdisp.c (display_line): Mark variables that gcc -Wuninitialized cannot
Paul Eggert [Sun, 6 Mar 2011 20:15:10 +0000 (12:15 -0800)]
* xdisp.c (display_line): Mark variables that gcc -Wuninitialized cannot

deduce are never used uninitialized.
* lisp.h (IF_LINT): New macro, copied from ../lib-src/emacsclient.c
which in turn is copied from coreutils.

13 years agodoc/lispref/makefile.w32-in (srcs): Add package.texi.
Juanma Barranquero [Sun, 6 Mar 2011 20:11:19 +0000 (21:11 +0100)]
doc/lispref/makefile.w32-in (srcs): Add package.texi.

13 years ago* xdisp.c (Fcurrent_bidi_paragraph_direction): Simplify slightly; this
Paul Eggert [Sun, 6 Mar 2011 19:53:35 +0000 (11:53 -0800)]
* xdisp.c (Fcurrent_bidi_paragraph_direction): Simplify slightly; this

avoids a gcc -Wuninitialized diagnostic.

13 years ago* xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.
Paul Eggert [Sun, 6 Mar 2011 19:43:58 +0000 (11:43 -0800)]
* xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.

Add a FIXME comment, since the code still doesn't look right.

13 years agoBind C-y in Isearch to isearch-yank-kill.
Chong Yidong [Sun, 6 Mar 2011 18:24:11 +0000 (13:24 -0500)]
Bind C-y in Isearch to isearch-yank-kill.

* lisp/isearch.el (isearch-mode-map): Bind C-y to isearch-yank-kill,
and move isearch-yank-line to M-s C-e.

* doc/emacs/search.texi (Isearch Yank): C-y now bound to isearch-yank-kill.

13 years ago(c-guess-basic-syntax): Move CASE 19 to a different place, correctly to
Alan Mackenzie [Sun, 6 Mar 2011 17:03:45 +0000 (17:03 +0000)]
(c-guess-basic-syntax): Move CASE 19 to a different place, correctly to
process template-args-cont lines.

13 years agoprogmodes/cc-engine.el (c-guess-basic-syntax): Reindent.
Alan Mackenzie [Sun, 6 Mar 2011 16:57:31 +0000 (16:57 +0000)]
progmodes/cc-engine.el (c-guess-basic-syntax): Reindent.

13 years agoImprove packaging documentation.
Chong Yidong [Sun, 6 Mar 2011 15:54:36 +0000 (10:54 -0500)]
Improve packaging documentation.

* package.texi (Packaging, Packaging Basics, Simple Packages)
(Multi-file Packages): Expand and clarify.
(Package Archives): Temporary placeholder node.

* elisp.texi (Top): Update node listing.

13 years agoMerge: current_column: Now returns EMACS_INT, fixing some iftc
Paul Eggert [Sun, 6 Mar 2011 10:53:51 +0000 (02:53 -0800)]
Merge: current_column: Now returns EMACS_INT, fixing some iftc
that was introduced in the 2002-06-02 change "temporarily"; see
<http://lists.gnu.org/archive/html/emacs-devel/2002-06/msg00039.html>.
* bytecode.c (Fbyte_code): Don't cast current_column () to int.
* cmds.c (internal_self_insert): Likewise.
* indent.c (Fcurrent_column): Likewise.
* keymap.c (describe_command): Likewise.
* minibuf.c (read_minibuf): Likewise.
* indent.c (Fcurrent_indentation): Don't cast position_indentation ()
to int.
* xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
Likewise.
* cmds.c (internal_self_insert): Declare locals to be EMACS_INT,
not int or double, if they might contain a column number.
* indent.c (current_column, Findent_to, indented_beyond_p):
(compute_motion, vmotion): Likewise.
* keymap.c (describe_command): Likewise.
* xdisp.c (pint2str): Likewise.
* indent.c (last_known_column): Now EMACS_INT, not int.
* minibuf.c (minibuf_prompt_width): Likewise.
* indent.c (current_column, current_column_1, position_indentation):
Return EMACS_INT, not double.
* lisp.h (current_column): Likewise.
* indent.c (indented_beyond_p): Last arg is now EMACS_INT, not double.
All callers changed.
* lisp.h (indented_beyond_p): Likewise.

* minibuf.c (minibuf_prompt, minibuf_prompt_width): Move here
from xdisp.c, and make static, since these are used only here.
* window.h, xdisp.c (minibuf_prompt, minibuf_prompt_width):
Remove decls.
* xdisp.c (redisplay_window): Reindent to match Emacs style.

13 years agocurrent_column: Now returns EMACS_INT, fixing some iftc.
Paul Eggert [Sun, 6 Mar 2011 10:27:06 +0000 (02:27 -0800)]
current_column: Now returns EMACS_INT, fixing some iftc.

* bytecode.c (Fbyte_code): Don't cast current_column () to int.
* cmds.c (internal_self_insert): Likewise.
* indent.c (Fcurrent_column): Likewise.
* keymap.c (describe_command): Likewise.
* minibuf.c (read_minibuf): Likewise.
* indent.c (Fcurrent_indentation): Don't cast position_indentation ()
to int.
* xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
Likewise.
* cmds.c (internal_self_insert): Declare locals to be EMACS_INT,
not int or double, if they might contain a column number.
* indent.c (current_column, Findent_to, indented_beyond_p):
(compute_motion, vmotion): Likewise.
* keymap.c (describe_command): Likewise.
* xdisp.c (pint2str): Likewise.
* indent.c (last_known_column): Now EMACS_INT, not int.
* minibuf.c (minibuf_prompt_width): Likewise.
* indent.c (current_column, current_column_1, position_indentation):
Return EMACS_INT, not double.
* lisp.h (current_column): Likewise.
* indent.c (indented_beyond_p): Last arg is now EMACS_INT, not double.
All callers changed.
* lisp.h (indented_beyond_p): Likewise.

13 years ago* xdisp.c (redisplay_window): Likewise.
Paul Eggert [Sun, 6 Mar 2011 09:54:06 +0000 (01:54 -0800)]
* xdisp.c (redisplay_window): Likewise.

13 years ago* minibuf.c (minibuf_prompt, minibuf_prompt_width): Move here
Paul Eggert [Sun, 6 Mar 2011 09:52:06 +0000 (01:52 -0800)]
* minibuf.c (minibuf_prompt, minibuf_prompt_width): Move here

from xdisp.c, and make static, since these are used only here.
* window.h, xdisp.c (minibuf_prompt, minibuf_prompt_width):
Remove decls.

13 years ago* cmds.c (internal_self_insert): Reindent to match Emacs style.
Paul Eggert [Sun, 6 Mar 2011 09:00:53 +0000 (01:00 -0800)]
* cmds.c (internal_self_insert): Reindent to match Emacs style.

13 years ago* xdisp.c (SKIP_GLYPHS): Removed unused macro.
Paul Eggert [Sun, 6 Mar 2011 08:17:04 +0000 (00:17 -0800)]
* xdisp.c (SKIP_GLYPHS): Removed unused macro.

13 years ago* xdisp.c (update_window_cursor): Now static, since it's not used elsewhere.
Paul Eggert [Sun, 6 Mar 2011 08:15:49 +0000 (00:15 -0800)]
* xdisp.c (update_window_cursor):  Now static, since it's not used elsewhere.

13 years ago* xdisp.c (produce_glyphless_glyph): Make a pointer "const"
Paul Eggert [Sun, 6 Mar 2011 08:14:14 +0000 (00:14 -0800)]
* xdisp.c (produce_glyphless_glyph): Make a pointer "const"

since it might point to immutable storage.

13 years ago* xdisp.c (BUILD_GLYPHLESS_GLYPH_STRING): Omit unused local var.
Paul Eggert [Sun, 6 Mar 2011 08:11:52 +0000 (00:11 -0800)]
* xdisp.c (BUILD_GLYPHLESS_GLYPH_STRING): Omit unused local var.

13 years agoMerge from mainline.
Paul Eggert [Sun, 6 Mar 2011 07:53:03 +0000 (23:53 -0800)]
Merge from mainline.

13 years ago* xdisp.c: Rename or move local decls to avoid shadowing.
Paul Eggert [Sun, 6 Mar 2011 07:50:01 +0000 (23:50 -0800)]
* xdisp.c: Rename or move local decls to avoid shadowing.

(init_iterator, handle_fontified_prop, handle_single_display_spec):
(message_dolog, message_with_string, redisplay_internal):
(redisplay_window, try_window_reusing_current_matrix, try_window_id):
(compute_line_metrics, highlight_trailing_whitespace, cursor_row_p):
(display_line, display_string, rows_from_pos_range):
(mouse_face_from_buffer_pos, note_mouse_highlight, expose_frame):
Rename or move local decls.

13 years agoAdd package.texi to doc/lispref/Makefile.in.
Chong Yidong [Sun, 6 Mar 2011 05:34:35 +0000 (00:34 -0500)]
Add package.texi to doc/lispref/Makefile.in.

13 years ago* calc/calc-units.el (math-midi-round): Translate calc-note-threshold
Jay Belanger [Sun, 6 Mar 2011 04:36:15 +0000 (22:36 -0600)]
* calc/calc-units.el (math-midi-round): Translate calc-note-threshold
  to an appropriate fraction.

13 years ago* calc/calc-units.el (math-midi-round, math-freqp, math-midip)
Jay Belanger [Sun, 6 Mar 2011 04:28:39 +0000 (22:28 -0600)]
* calc/calc-units.el (math-midi-round, math-freqp, math-midip)
  (math-spnp, math-spn-to-midi, math-midi-to-spn, math-freq-to-spn)
  (math-midi-to-freq, math-spn-to-freq, calcFunc-spn, calcFunc-midi)
  (calcFunc-freq, calc-freq, calc-midi, calc-spn): New functions.
  (math-notes): New variable.

* calc/calc.el (calc-note-threshold): New variable.

* calc/calc-ext.el (calc-init-extensions): Add keybindings for
  calc-spn, calc-midi, calc-freq.  Add autoloads for calcFunc-spn,
  calcFunc-midi, calcFunc-freq, calc-spn, calc-midi and calc-freq.

* doc/misc/calc.tex (Musical Notes): New section.
  (Customizing Calc): Mention calc-note-threshold.

13 years ago* doc/misc/calc.texi (Logarithmic Units): Rename calc-logunits-dblevel
Jay Belanger [Sun, 6 Mar 2011 03:51:28 +0000 (21:51 -0600)]
* doc/misc/calc.texi (Logarithmic Units): Rename calc-logunits-dblevel
  and calc-logunits-nplevel to calc-dblevel and calc-nplevel,
  respectively.

* calc/calc-ext.el (calc-init-extensions): Rename calc-logunits-dblevel
  and calc-logunits-nplevel to calc-dblevel and calc-nplevel,
  respectively.

* calc/calc-units.el (calc-dblevel): Rename from calc-logunits-dblevel.
  (calc-nplevel): Rename from calc-logunits-nplevel.

13 years agoAllow specifying local ELPA mirrors in package-archives.
Chong Yidong [Sun, 6 Mar 2011 03:22:06 +0000 (22:22 -0500)]
Allow specifying local ELPA mirrors in package-archives.

* emacs-lisp/package.el (package-archives): Accept either ordinary
directory names, in addition to HTTP URLs.
(package--with-work-buffer): New macro.   Handle normal directories.
(package-handle-response): Don't display the failing buffer.
(package-download-single, package-download-tar)
(package--download-one-archive): Use package--with-work-buffer.
(package-archive-base): Rename from package-archive-url.

13 years agoMention xmodmap-generic-mode in NEWS.
Glenn Morris [Sun, 6 Mar 2011 03:01:23 +0000 (19:01 -0800)]
Mention xmodmap-generic-mode in NEWS.

13 years agogeneric-x trivia.
Glenn Morris [Sun, 6 Mar 2011 02:59:21 +0000 (18:59 -0800)]
generic-x trivia.

* lisp/generic-x.el (generic-unix-modes): Add xmodmap-generic-mode.
(xmodmap-generic-mode): Respect generic-extras-enable-list.

13 years ago* lisp/generic-x.el (xmodmap-generic-mode): New. (Bug#2065) (tiny change)
Daniel Clemente [Sun, 6 Mar 2011 02:56:39 +0000 (18:56 -0800)]
* lisp/generic-x.el (xmodmap-generic-mode): New.  (Bug#2065)  (tiny change)

13 years agoFix typos.
Juanma Barranquero [Sun, 6 Mar 2011 02:43:19 +0000 (03:43 +0100)]
Fix typos.

* etc/srecode/el.srt: Fix typo.

* lisp/allout.el (allout-init, allout-prefixed-keybindings)
  (allout-unprefixed-keybindings):
* lisp/progmodes/prolog.el (prolog-find-term):
  Fix typos in docstrings.

* lisp/org/org.el (org-blank-before-new-entry, org-context-in-file-links)
  (org-refile-targets, org-log-repeat, org-insert-link)
  (org-speed-command-default-hook, org-speed-command-hook)
  (org-in-regexps-block-p, org-yank-generic, org-goto-first-child):
  Fix typos in docstrings.
  (org-toggle-pretty-entities): Fix typo in message.

13 years ago* lisp/emacs-lisp/elp.el (elp-results): Fix off-by-one in header. (Bug#2746)
Nikolaj Schumacher [Sun, 6 Mar 2011 02:38:48 +0000 (18:38 -0800)]
* lisp/emacs-lisp/elp.el (elp-results): Fix off-by-one in header.  (Bug#2746)

13 years ago* lisp/textmodes/sgml-mode.el (sgml-fill-nobreak): Give it a doc. (Bug#5326)
Kevin Ryde [Sun, 6 Mar 2011 02:30:44 +0000 (18:30 -0800)]
* lisp/textmodes/sgml-mode.el (sgml-fill-nobreak): Give it a doc.  (Bug#5326)

13 years agoDoc fixes for bug#5567 (tiny change)
Michael Shields [Sun, 6 Mar 2011 02:14:43 +0000 (18:14 -0800)]
Doc fixes for bug#5567 (tiny change)

* lisp/window.el (one-window-p, walk-windows, display-buffer): Doc fixes.
* src/window.c (Fnext_window): Doc (and comment) fixes.

13 years ago* cus-edit.el (custom-prompt-variable): Use the `custom-get' property
Jay Belanger [Sun, 6 Mar 2011 02:04:41 +0000 (20:04 -0600)]
* cus-edit.el (custom-prompt-variable):  Use the `custom-get' property
  of the variable if it exists.

13 years agoNEWS.
Glenn Morris [Sun, 6 Mar 2011 01:48:44 +0000 (17:48 -0800)]
NEWS.

13 years agoRegenerate autotools stuff, grumble.
Glenn Morris [Sun, 6 Mar 2011 01:45:56 +0000 (17:45 -0800)]
Regenerate autotools stuff, grumble.

13 years ago* configure.in (FREETYPE_LIBS): Actually set it to something.
Glenn Morris [Sun, 6 Mar 2011 01:42:13 +0000 (17:42 -0800)]
* configure.in (FREETYPE_LIBS): Actually set it to something.

This was needed for linking a lucid toolkit build on a recent
Debian testing system.  Without this, it failed with:
ftfont.o: undefined reference to symbol 'FT_New_Face'

13 years ago* lisp/bookmark.el:
Juanma Barranquero [Sun, 6 Mar 2011 00:30:16 +0000 (01:30 +0100)]
* lisp/bookmark.el:
* lisp/desktop.el:
* lisp/emacs-lock.el:
* lisp/ps-print.el:
* lisp/saveplace.el:
* lisp/net/tramp-cache.el:
* lisp/textmodes/reftex.el:
* lisp/org/org-id.el: Don't set `kill-emacs-hook' on noninteractive sessions.

Fixes: debbugs:8137

13 years agognus-uu.el (gnus-uu-decode-save): Typo fix.
Katsumi Yamaoka [Sun, 6 Mar 2011 00:08:33 +0000 (00:08 +0000)]
gnus-uu.el (gnus-uu-decode-save): Typo fix.

13 years agoFix last change.
Chong Yidong [Sat, 5 Mar 2011 23:55:43 +0000 (18:55 -0500)]
Fix last change.

13 years ago* nsterm.m (ns_draw_window_cursor): Fix typo in 2011-02-23 commit.
Chong Yidong [Sat, 5 Mar 2011 23:52:45 +0000 (18:52 -0500)]
* nsterm.m (ns_draw_window_cursor): Fix typo in 2011-02-23 commit.

13 years agoRemove "tiny change" ChangeLog tags for Antoine Levitt, who signed papers.
Chong Yidong [Sat, 5 Mar 2011 21:58:57 +0000 (16:58 -0500)]
Remove "tiny change" ChangeLog tags for Antoine Levitt, who signed papers.

13 years agoReplace many instances of read-file-name with read-directory-name.
Antoine Levitt [Sat, 5 Mar 2011 21:56:00 +0000 (16:56 -0500)]
Replace many instances of read-file-name with read-directory-name.

* lisp/files.el (delete-directory, copy-directory, list-directory): Use
read-directory-name.

* lisp/find-file.el (ff-find-the-other-file):
* lisp/net/ange-ftp.el (ange-ftp-make-directory):
* lisp/printing.el (pr-interactive-dir):
* lisp/progmodes/ada-prj.el (ada-prj-load-directory):
* lisp/progmodes/ebnf2ps.el (ebnf-print-directory)
(ebnf-spool-directory, ebnf-eps-directory)
(ebnf-syntax-directory):
* lisp/shell.el (shell):
* lisp/speedbar.el (speedbar-create-directory):
* lisp/vc/emerge.el (emerge-merge-directories):
* lisp/vc/vc-dir.el (vc-dir):
* lisp/vc/vc.el (vc-create-tag, vc-retrieve-tag): Likewise.

* lisp/gnus.el (gnus-interactive): Use read-directory-name.

* lisp/gnus-uu.el (gnus-uu-decode-uu-and-save)
(gnus-uu-decode-unshar-and-save, gnus-uu-decode-save)
(gnus-uu-decode-binhex, gnus-uu-decode-yenc)
(gnus-uu-decode-save-view, gnus-uu-decode-postscript-and-save):
Likewise.

* lisp/mh-funcs.el (mh-store-msg, mh-store-buffer):
* lisp/mh-mime.el (mh-mime-save-parts): Use read-directory-name.

* lisp/dired.el: Clarify comment.

13 years agoFix to help-buffer to ensure it returns a valid buffer (Bug#8147).
Chong Yidong [Sat, 5 Mar 2011 21:10:03 +0000 (16:10 -0500)]
Fix to help-buffer to ensure it returns a valid buffer (Bug#8147).

* lisp/help-mode.el (help-buffer): If we are to return the current
buffer, signal an error if it's not in Help mode.

13 years ago* processes.texi (Synchronous Processes): Minor clarification (Bug#8149).
Chong Yidong [Sat, 5 Mar 2011 20:45:09 +0000 (15:45 -0500)]
* processes.texi (Synchronous Processes): Minor clarification (Bug#8149).

13 years agoAdd ChangeLog bug ref.
Glenn Morris [Sat, 5 Mar 2011 20:43:35 +0000 (12:43 -0800)]
Add ChangeLog bug ref.

13 years agoHandle git-style backup names in file-name-version-regexp (Bug#8159).
Reuben Thomas [Sat, 5 Mar 2011 20:35:08 +0000 (15:35 -0500)]
Handle git-style backup names in file-name-version-regexp (Bug#8159).

* files.el (file-name-version-regexp): Handle backup files of the
form `foo.js.~HEAD~1~' (Bug#8159).

13 years agoChangeLog fix.
Glenn Morris [Sat, 5 Mar 2011 20:09:37 +0000 (12:09 -0800)]
ChangeLog fix.

13 years agoMove eshell's self-tests to the test/ directory.
Glenn Morris [Sat, 5 Mar 2011 20:07:27 +0000 (12:07 -0800)]
Move eshell's self-tests to the test/ directory.

* lisp/eshell/esh-var.el: Don't require esh-test when compiling.
* lisp/eshell/em-banner.el, lisp/eshell/esh-cmd.el, lisp/eshell/esh-mode.el:
* lisp/eshell/esh-var.el, lisp/eshell/eshell.el: Move tests to esh-test.
* lisp/eshell/esh-test.el: Move to ../../test/eshell.el

* test/eshell.el: Move here from lisp/eshell/esh-test.el.

13 years agoMake save-some-buffers message more informative (Bug#8134).
David Engster [Sat, 5 Mar 2011 19:37:46 +0000 (14:37 -0500)]
Make save-some-buffers message more informative (Bug#8134).

* files.el (save-some-buffers): Report the names of buffers saved
automatically due to buffer-save-without-query.

13 years ago* lisp/eshell/esh-proc.el (eshell-kill-process-function): Fix typo in previous.
Glenn Morris [Sat, 5 Mar 2011 19:36:33 +0000 (11:36 -0800)]
* lisp/eshell/esh-proc.el (eshell-kill-process-function): Fix typo in previous.

13 years ago* lisp/net/rcirc.el: Add QuakeNet authentication support.
Deniz Dogan [Sat, 5 Mar 2011 15:40:50 +0000 (16:40 +0100)]
* lisp/net/rcirc.el: Add QuakeNet authentication support.
(rcirc-authinfo, rcirc-check-auth-status)
(rcirc-authenticate): Support QuakeNet.

13 years ago* lisp/net/rcirc.el: Add functionality to authenticate before autojoining channels.
Deniz Dogan [Sat, 5 Mar 2011 13:34:55 +0000 (14:34 +0100)]
* lisp/net/rcirc.el: Add functionality to authenticate before autojoining channels.
(rcirc-authenticate-before-join): New option.
(rcirc-authenticated-hook): New variable.
(rcirc-connect): Make local variable rcirc-user-authenticated.
(rcirc-handler-001): Respect rcirc-authenticate-before-join.
(rcirc-check-auth-status, rcirc-join-channels-post-auth): New
functions.
(rcirc-handler-PRIVMSG, rcirc-handler-NOTICE): Call
rcirc-check-auth-status.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Sat, 5 Mar 2011 13:01:56 +0000 (13:01 +0000)]
Merge changes made in Gnus trunk.

gnus-sum.el (gnus-update-read-articles): Fix typo.
gnus.el (gnus-valid-select-methods): Mark nnimap as a backend that really have server-side marks.
gnus-sum.el (gnus-propagate-marks): Change default back to nil again, since most backends do not usefully have server-side marks.
 (gnus-update-read-articles): Propagate marks to all backends that really have server-side marks.
message.el (message-cite-reply-position, message-cite-style): New variables.
 (message-yank-original): Use the new citation styles.

13 years agoAdd package name. Fix author email address.
Michael Albinus [Sat, 5 Mar 2011 10:32:10 +0000 (11:32 +0100)]
Add package name. Fix author email address.

* net/soap-client.el (soap-namespace-put-link): Check if the target
name is fully qualified -- use only the name part.
(soap-parse-complex-type, soap-parse-sequence): Recognize xsd:all
types, treated the same as xsd:sequence.  (Bug#8166)

13 years agoFix bug #8177 with re-visiting image files.
Eli Zaretskii [Sat, 5 Mar 2011 08:48:52 +0000 (10:48 +0200)]
Fix bug #8177 with re-visiting image files.

 files.el (find-file-noselect): Don't ask about re-visiting
 non-literally if the file is already visited in image-mode.

13 years agoesh-util.el comment fix.
Glenn Morris [Sat, 5 Mar 2011 04:24:44 +0000 (20:24 -0800)]
esh-util.el comment fix.

13 years agoDefault all eshell hooks to nil (bug#5375)
Glenn Morris [Sat, 5 Mar 2011 04:11:05 +0000 (20:11 -0800)]
Default all eshell hooks to nil (bug#5375)

* eshell/esh-mode.el (eshell-kill-buffer-function): New function.
(eshell-mode): Use eshell-kill-buffer-function.
Run the -initialize functions independently of the -load-hooks.
* eshell/esh-proc.el (eshell-kill-process-function): New function.
(eshell-gather-process-output, eshell-sentinel)
(eshell-interrupt-process, eshell-kill-process, eshell-quit-process):
Use eshell-kill-process-function.
* eshell/em-alias.el (eshell-alias-load-hook):
* eshell/em-banner.el (eshell-banner-load-hook):
* eshell/em-cmpl.el (eshell-cmpl-load-hook):
* eshell/em-dirs.el (eshell-dirs-load-hook):
* eshell/em-glob.el (eshell-glob-load-hook):
* eshell/em-hist.el (eshell-hist-load-hook):
* eshell/em-pred.el (eshell-pred-load-hook):
* eshell/em-prompt.el (eshell-prompt-load-hook):
* eshell/em-rebind.el (eshell-rebind-load-hook):
* eshell/em-script.el (eshell-script-load-hook):
* eshell/em-smart.el (eshell-smart-load-hook):
* eshell/em-term.el (eshell-term-load-hook):
* eshell/em-unix.el (eshell-unix-load-hook):
* eshell/esh-arg.el (eshell-arg-load-hook):
* eshell/esh-cmd.el (eshell-cmd-load-hook):
* eshell/esh-ext.el (eshell-ext-load-hook):
* eshell/esh-io.el (eshell-io-load-hook):
* eshell/esh-mode.el (eshell-exit-hook):
* eshell/esh-proc.el (eshell-proc-load-hook, eshell-kill-hook):
* eshell/esh-var.el (eshell-var-load-hook):
Set default hook values to nil.  (Bug#5375)

13 years agoesh-module doc fixes.
Glenn Morris [Sat, 5 Mar 2011 03:59:53 +0000 (19:59 -0800)]
esh-module doc fixes.

* lisp/eshell/esh-module.el (eshell-module-unload-hook)
(eshell-modules-list): Remove leading * from defcustom docs.

13 years agomessage.el (message-options): Don't mark it buffer-local when running under XEmacs.
Daiki Ueno [Sat, 5 Mar 2011 03:56:02 +0000 (03:56 +0000)]
message.el (message-options): Don't mark it buffer-local when running under XEmacs.

13 years agoMake eshell-for obsolete (replaced by dolist)
Glenn Morris [Sat, 5 Mar 2011 03:53:41 +0000 (19:53 -0800)]
Make eshell-for obsolete (replaced by dolist)

* eshell/esh-util.el (eshell-for): Make it obsolete.
* eshell/em-alias.el (eshell/alias, eshell-alias-completions):
* eshell/em-dirs.el (eshell-save-some-last-dir):
* eshell/em-hist.el (eshell-save-some-history, eshell-hist-parse-modifier):
* eshell/em-ls.el (eshell-ls-dir, eshell-ls-files, eshell-ls-entries):
* eshell/em-unix.el (eshell/cat, eshell/du, eshell/su):
* eshell/esh-cmd.el (eshell-invoke-directly, eshell-do-eval, eshell/which):
* eshell/esh-ext.el (eshell-find-interpreter):
* eshell/esh-mode.el (eshell-mode):
* eshell/esh-module.el (eshell-unload-extension-modules):
* eshell/esh-proc.el (eshell-process-interact):
* eshell/esh-test.el (eshell-test):
* eshell/esh-util.el (eshell-flatten-list, eshell-winnow-list):
* eshell/esh-var.el (eshell/env, eshell-environment-variables)
(eshell-variables-list):
* eshell/eshell.el (eshell-unload-all-modules):
Replace eshell-for with dolist.

13 years ago* lisp/vc/vc-bzr.el (vc-bzr-after-dir-status): Handle bzr 2.3.0. (Bug#8170)
Glenn Morris [Fri, 4 Mar 2011 17:24:02 +0000 (09:24 -0800)]
* lisp/vc/vc-bzr.el (vc-bzr-after-dir-status): Handle bzr 2.3.0.  (Bug#8170)

13 years ago* progmodes/gud.el (gdb-script-mode): Derive from prog-mode.
Tom Tromey [Fri, 4 Mar 2011 16:19:56 +0000 (09:19 -0700)]
* progmodes/gud.el (gdb-script-mode): Derive from prog-mode.

13 years agomessage.el (message-options): Revert the change that's a workaround for XEmacs buffer...
Daiki Ueno [Fri, 4 Mar 2011 13:59:21 +0000 (13:59 +0000)]
message.el (message-options): Revert the change that's a workaround for XEmacs buffer-local issue.

13 years agooutline.el fix for bug#7619.
Glenn Morris [Fri, 4 Mar 2011 08:40:00 +0000 (00:40 -0800)]
outline.el fix for bug#7619.

It turns out the use of nil in the :type of outline regexp was for
very hysterical raisons.  Prior to 2001-09-12T20:42:08Z!rms@gnu.org, the
default value was nil, then it was initialized afterwards.
Everywhere in the code assumes it cannot be nil, so no need to allow
that any more.

* lisp/outline.el (outline-regexp): No longer allow nil.
(outline-heading-end-regexp): Add safety predicate.

13 years agobrowse-url fix for bug#6077.
Glenn Morris [Fri, 4 Mar 2011 08:21:56 +0000 (00:21 -0800)]
browse-url fix for bug#6077.

* lisp/net/browse-url.el (browse-url): Handle deleted default-directory.

13 years agorecentf.el fix for bug#5843.
Glenn Morris [Fri, 4 Mar 2011 08:14:57 +0000 (00:14 -0800)]
recentf.el fix for bug#5843.

* lisp/recentf.el (recentf-include-p): In case of a buggy predicate,
err on the side of including, not excluding.

13 years ago* lisp/vc/diff-mode.el (diff-mode): Fix whitespace-style. (Bug#8139)
Leo Liu [Fri, 4 Mar 2011 08:01:24 +0000 (00:01 -0800)]
* lisp/vc/diff-mode.el (diff-mode): Fix whitespace-style.  (Bug#8139)

13 years ago* calc/calc-units.el (math-to-standard-rec): Don't treat subscripted
Jay Belanger [Fri, 4 Mar 2011 06:35:49 +0000 (00:35 -0600)]
* calc/calc-units.el (math-to-standard-rec): Don't treat subscripted
  variables as units.

13 years agoMinor ewoc fix for bug#3261.
Bob Rogers [Fri, 4 Mar 2011 05:16:56 +0000 (21:16 -0800)]
Minor ewoc fix for bug#3261.

* lisp/emacs-lisp/ewoc.el (ewoc-goto-next): Give a more explicit error
if there is no node.

13 years ago* lisp/erc/erc-track.el (erc-track-visibility): Fix :type. (Bug#6369)
Julien Danjou [Fri, 4 Mar 2011 05:04:51 +0000 (21:04 -0800)]
* lisp/erc/erc-track.el (erc-track-visibility): Fix :type.  (Bug#6369)

13 years ago* lisp/time.el (display-time-world-list): Fix typo.
Leo Liu [Fri, 4 Mar 2011 05:00:40 +0000 (21:00 -0800)]
* lisp/time.el (display-time-world-list): Fix typo.

Fixes: debbugs:7571

13 years agoChangeLog fixes.
Glenn Morris [Fri, 4 Mar 2011 04:51:14 +0000 (20:51 -0800)]
ChangeLog fixes.

13 years agolisp/cus-edit.el (custom-buffer-create-internal): Fix bug#8136.
Zachary Kanfer [Fri, 4 Mar 2011 02:24:47 +0000 (03:24 +0100)]
lisp/cus-edit.el (custom-buffer-create-internal): Fix bug#8136.
Split search string before passing it to `customize-apropos'.

13 years agolisp/image-dired.el (image-dired-cmd-read-exif-data-options): Fix typo.
Drew Adams [Fri, 4 Mar 2011 01:36:40 +0000 (02:36 +0100)]
lisp/image-dired.el (image-dired-cmd-read-exif-data-options): Fix typo.

Fixes: debbugs:8156

13 years agoFixing old typo.
Deniz Dogan [Thu, 3 Mar 2011 16:02:52 +0000 (17:02 +0100)]
Fixing old typo.

13 years ago* lisp/net/rcirc.el (rcirc-cmd-join): Accept comma-separated input.
Deniz Dogan [Thu, 3 Mar 2011 15:56:38 +0000 (16:56 +0100)]
* lisp/net/rcirc.el (rcirc-cmd-join): Accept comma-separated input.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Thu, 3 Mar 2011 13:21:50 +0000 (13:21 +0000)]
Merge changes made in Gnus trunk.

nnimap.el (nnimap-parse-flags): Add a workaround for FETCH lines with numbers too big to be `read'.
password-cache.el (password-in-cache-p): Add autoload.
message.el (message-options): Make buffer-local two ways to attempt to fix a XEmacs bug.

13 years agoMerged an ERT fix and a speedup.
Christian Ohler [Thu, 3 Mar 2011 09:10:19 +0000 (02:10 -0700)]
Merged an ERT fix and a speedup.

13 years agoAdded fast path to ERT explanation of `equal'.
Christian Ohler [Thu, 3 Mar 2011 09:01:51 +0000 (02:01 -0700)]
Added fast path to ERT explanation of `equal'.
* emacs-lisp/ert.el (ert--explain-equal): New function.
(ert--explain-equal-rec): Renamed from `ert--explain-not-equal'.
All callers changed.
(ert--explain-equal-including-properties): Renamed from
`ert--explain-not-equal-including-properties'.  All callers
changed.
* automated/ert-tests.el (ert-test-explain-not-equal-keymaps):
New test.