bpt/emacs.git
13 years agoMerge from emacs-23; up to 2010-06-08T03:06:47Z!dann@ics.uci.edu.
Glenn Morris [Sat, 9 Apr 2011 17:40:29 +0000 (10:40 -0700)]
Merge from emacs-23; up to 2010-06-08T03:06:47Z!dann@ics.uci.edu.

13 years agoMark tiny change.
Glenn Morris [Sat, 9 Apr 2011 17:37:33 +0000 (10:37 -0700)]
Mark tiny change.

13 years agoFix ChangeLog attribution.
Glenn Morris [Sat, 9 Apr 2011 17:31:13 +0000 (10:31 -0700)]
Fix ChangeLog attribution.

See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8450
and http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=610576

13 years agoReplace some uses of `int' with EMACS_INT.
Eli Zaretskii [Sat, 9 Apr 2011 16:35:19 +0000 (19:35 +0300)]
Replace some uses of `int' with EMACS_INT.

 src/search.c (string_match_1, fast_string_match)
 (fast_c_string_match_ignore_case, fast_string_match_ignore_case)
 (scan_buffer, find_next_newline_no_quit)
 (find_before_next_newline, search_command, Freplace_match)
 (Fmatch_data): Make some `int' variables be EMACS_INT.
 src/xdisp.c (display_count_lines): 3rd argument and return value now
 EMACS_INT.  All callers changed.
 (pint2hrstr): Last argument is now EMACS_INT.
 src/coding.c (detect_coding_utf_8, detect_coding_emacs_mule)
 (detect_coding_iso_2022, detect_coding_sjis, detect_coding_big5)
 (detect_coding_ccl, detect_coding_charset, decode_coding_utf_8)
 (decode_coding_utf_16, decode_coding_emacs_mule)
 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
 (decode_coding_ccl, decode_coding_charset)
 <consumed_chars, consumed_chars_base>: Declare EMACS_INT.
 (decode_coding_iso_2022, decode_coding_emacs_mule)
 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
 <char_offset, last_offset>: Declare EMACS_INT.
 (encode_coding_utf_8, encode_coding_utf_16)
 (encode_coding_emacs_mule, encode_invocation_designation)
 (encode_designation_at_bol, encode_coding_iso_2022)
 (encode_coding_sjis, encode_coding_big5, encode_coding_ccl)
 (encode_coding_raw_text, encode_coding_charset) <produced_chars>:
 Declare EMACS_INT.
 (ASSURE_DESTINATION): Declare more_bytes EMACS_INT.
 (encode_invocation_designation): Last argument P_NCHARS is now
 EMACS_INT.
 (decode_eol): Declare pos_byte, pos, and pos_end EMACS_INT.
 (produce_chars): from_nchars and to_nchars are now EMACS_INT.
 src/coding.h (struct coding_system) <head_ascii>: Declare EMACS_INT.
 All users changed.
 src/ccl.c (Fccl_execute_on_string): Declare some variables
 EMACS_INT.

13 years agoProduce more accurate results from file-size-human-readable.
Eli Zaretskii [Sat, 9 Apr 2011 06:59:26 +0000 (09:59 +0300)]
Produce more accurate results from file-size-human-readable.

 lisp/files.el (file-size-human-readable): Produce one digit after
 decimal, like "ls -lh" does.
 lisp/ls-lisp.el (ls-lisp-format-file-size): Allow for 7 characters in
 the file size representation.

13 years agoFix more GCC strict-aliasing warnings.
Chong Yidong [Fri, 8 Apr 2011 20:41:28 +0000 (16:41 -0400)]
Fix more GCC strict-aliasing warnings.

* src/ftfont.c (get_adstyle_property, ftfont_pattern_entity): Use
unsigned char, to match FcChar8 type definition.

* src/xmenu.c (create_and_show_popup_menu):
* src/xselect.c (x_decline_selection_request)
(x_reply_selection_request): Avoid type-punned deref of X events.

13 years agoFit contents to emacs window support for doc-view by Sho Nakatani.
Tassilo Horn [Fri, 8 Apr 2011 20:09:19 +0000 (22:09 +0200)]
Fit contents to emacs window support for doc-view by Sho Nakatani.

2011-03-28  Sho Nakatani <lay.sakura <at> gmail.com>

* doc-view.el (doc-view-fit-width-to-window)
(doc-view-fit-height-to-window, doc-view-fit-page-to-window): New
functions for fitting the shown image to the Emacs window size.
(doc-view-mode-map): Add bindings for the new functions.

13 years ago* xterm.c (handle_one_xevent): Avoid type-punned derefencing of X events.
Chong Yidong [Fri, 8 Apr 2011 19:18:25 +0000 (15:18 -0400)]
* xterm.c (handle_one_xevent): Avoid type-punned derefencing of X events.

13 years agoMerge changes from emacs-23 branch
Chong Yidong [Fri, 8 Apr 2011 18:53:26 +0000 (14:53 -0400)]
Merge changes from emacs-23 branch

13 years ago* term.c (init_tty): Fix incorrect ifdef placement (Bug#8450).
Svante Signell [Fri, 8 Apr 2011 18:44:36 +0000 (14:44 -0400)]
* term.c (init_tty): Fix incorrect ifdef placement (Bug#8450).

13 years agoBail out from list-processes if async subprocesses aren't available.
Eli Zaretskii [Fri, 8 Apr 2011 17:08:17 +0000 (20:08 +0300)]
Bail out from list-processes if async subprocesses aren't available.

 lisp/simple.el (list-processes): If async subprocesses are not
 available, error out with a clear error message.

13 years ago* src/xml.c (parse_region): Avoid creating spurious whiespace nodes.
T.V. Raman [Fri, 8 Apr 2011 16:15:30 +0000 (12:15 -0400)]
* src/xml.c (parse_region): Avoid creating spurious whiespace nodes.

See http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00200.html

13 years ago* keyboard.c (syms_of_keyboard): Use DEFSYM macro.
Chong Yidong [Fri, 8 Apr 2011 15:51:28 +0000 (11:51 -0400)]
* keyboard.c (syms_of_keyboard): Use DEFSYM macro.

13 years agoRemove internal_with_output_to_temp_buffer, replacing sole user with Lisp.
Chong Yidong [Fri, 8 Apr 2011 15:37:15 +0000 (11:37 -0400)]
Remove internal_with_output_to_temp_buffer, replacing sole user with Lisp.

* lisp/help.el (help-form-show): New function, to be called from C.
Put help-form output in a buffer named differently than *Help*.

* src/keyboard.c (read_char): Call Lisp function help-form-show,
instead of using internal_with_output_to_temp_buffer.
(Qhelp_form_show): New var.

* src/lisp.h (internal_with_output_to_temp_buffer): Remove prototype.

* src/print.c (internal_with_output_to_temp_buffer): Function deleted.

13 years agoNew function file-size-human-readable.
Eli Zaretskii [Fri, 8 Apr 2011 15:31:33 +0000 (18:31 +0300)]
New function file-size-human-readable.

 lisp/files.el (file-size-human-readable): New function.
 lisp/ls-lisp.el (ls-lisp-format-file-size): Use it, instead of
 computing the representation inline.  Don't require `cl'.

13 years ago* lisp/man.el (Man-page-header-regexp): Solaris < 2.6 no longer supported.
Glenn Morris [Fri, 8 Apr 2011 03:30:26 +0000 (20:30 -0700)]
* lisp/man.el (Man-page-header-regexp): Solaris < 2.6 no longer supported.

13 years agobrowse-url.el trivia.
Glenn Morris [Fri, 8 Apr 2011 03:26:40 +0000 (20:26 -0700)]
browse-url.el trivia.

* lisp/net/browse-url.el (browse-url-firefox):
Test system-type, not system-configuration.

13 years agolog-edit.el fix for bug#7598.
Glenn Morris [Fri, 8 Apr 2011 03:21:30 +0000 (20:21 -0700)]
log-edit.el fix for bug#7598.

* lisp/vc/log-edit.el (log-edit-empty-buffer-p): New function.
(log-edit-insert-cvs-template, log-edit-insert-cvs-rcstemplate):
Use log-edit-empty-buffer-p.

13 years agorlogin.el trivia.
Glenn Morris [Fri, 8 Apr 2011 03:11:31 +0000 (20:11 -0700)]
rlogin.el trivia.

* lisp/net/rlogin.el (rlogin-process-connection-type): Simplify.
(rlogin-mode-map): Initialize in the defvar.
(rlogin): Use ignore-errors.

13 years ago* lisp/replace.el (occur-mode-map): Some fixes for menu items.
Glenn Morris [Fri, 8 Apr 2011 03:05:58 +0000 (20:05 -0700)]
* lisp/replace.el (occur-mode-map): Some fixes for menu items.

13 years agoFix typos in comments.
Juanma Barranquero [Thu, 7 Apr 2011 23:59:27 +0000 (01:59 +0200)]
Fix typos in comments.

13 years agognus-registry.el (gnus-registry-handle-action): More debugging.
Gnus developers [Thu, 7 Apr 2011 22:48:21 +0000 (22:48 +0000)]
gnus-registry.el (gnus-registry-handle-action): More debugging.
gnus-start.el (gnus-gnus-to-newsrc-format): Add a way to run interactively so the newsrc file can contain foreign groups too.  Useful for debugging but not much for users.
registry.el (registry-usage-test): Only do `registry-lookup-breaks-before-lexbind' testing for Emacs24 with lexical binding.

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

13 years ago* lisp/play/morse.el (denato-region): Handle varying case.
Aaron S. Hawley [Thu, 7 Apr 2011 03:27:15 +0000 (20:27 -0700)]
* lisp/play/morse.el (denato-region): Handle varying case.

Fixes: debbugs:8386

13 years ago* autogen/update_autogen: Ignore comment diffs in ldefs-boot.el.
Glenn Morris [Thu, 7 Apr 2011 03:22:10 +0000 (20:22 -0700)]
* autogen/update_autogen: Ignore comment diffs in ldefs-boot.el.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Wed, 6 Apr 2011 22:08:31 +0000 (22:08 +0000)]
Merge changes made in Gnus trunk.

registry.el, gnus-registry.el: Use `ignore-errors' instead of third argument NOERROR for `require', since XEmacs 21.4 does not support it.
registry.el (initialize-instance): Change :after to :AFTER to be compatible with old EIEIO version in XEmacs.
gnus-registry.el (gnus-registry-post-process-groups)
 (gnus-registry--split-fancy-with-parent-internal): Fix splitting bugs and provide better messaging.
gnus-registry.el: Load ERT unconditionally anyway, discarding errors.
registry.el: Load ERT unconditionally anyway, discarding errors.

13 years agoRemove list-processes C function; misc fixes to last change.
Chong Yidong [Wed, 6 Apr 2011 21:55:08 +0000 (17:55 -0400)]
Remove list-processes C function; misc fixes to last change.

* src/process.c (Flist_processes): Removed to Lisp.
(list_processes_1): Deleted.

* lisp/emacs-lisp/cconv.el (cconv--analyse-use): Ignore "ignored" when
issuing unused warnings.

* lisp/emacs-lisp/tabulated-list.el (tabulated-list-print): Use lambda
macro directly.

13 years agoReimplement list-processes in Lisp.
Chong Yidong [Wed, 6 Apr 2011 21:13:17 +0000 (17:13 -0400)]
Reimplement list-processes in Lisp.

* lisp/simple.el: Lisp reimplement of list-processes.  Based on an
earlier reimplementation by Leo Liu, but using tabulated-list.el.
(process-menu-mode): New major mode.
(list-processes--refresh, list-processes):
(process-menu-visit-buffer): New functions.

* lisp/files.el (save-buffers-kill-emacs): Don't assume any return
value of list-processes, which is undocumented anyway.

13 years agoMake Package Menu a child of Tabulated List mode.
Chong Yidong [Wed, 6 Apr 2011 20:33:30 +0000 (16:33 -0400)]
Make Package Menu a child of Tabulated List mode.

* emacs-lisp/package.el: Use Tabulated List mode.
(package-menu-mode-map): Inherit from tabulated-list-mode-map.
(package-menu-mode): Derive from tabulated-list-mode.  Set up the
table format using Tabulated List mode variables.
(package--push): New macro, replacing package-list-maybe-add.
(package-menu--generate): Use package--push.  Renamed from
package--generate-package-list.
(package-menu-refresh, list-packages): Use it.
(package-menu--print-info): Renamed from package-print-package.
Return insertion data instead of inserting it directly.
(package-menu-describe-package, package-menu-execute): Use
tabulated-list-get-id.
(package-menu-mark-delete, package-menu-mark-install)
(package-menu-mark-unmark, package-menu-backup-unmark)
(package-menu-mark-obsolete-for-deletion): Use
tabulated-list-put-tag.
(package--list-packages, package-menu-revert)
(package-menu-get-package, package-menu-get-version)
(package-menu-sort-by-column): Functions deleted.
(package-menu-package-list, package-menu-sort-key): Vars deleted.
(package-menu--status-predicate, package-menu--version-predicate)
(package-menu--name-predicate)
(package-menu--description-predicate): Handle arguments in the
Tabulated List format.
(package-list-packages-no-fetch): Call list-packages.

13 years ago* lisp/emacs-lisp/tabulated-list.el: New file.
Chong Yidong [Wed, 6 Apr 2011 20:10:51 +0000 (16:10 -0400)]
* lisp/emacs-lisp/tabulated-list.el: New file.

13 years agoNew variable `revert-buffer-in-progress-p'.
Juanma Barranquero [Wed, 6 Apr 2011 19:38:46 +0000 (21:38 +0200)]
New variable `revert-buffer-in-progress-p'.

* lisp/files.el (after-find-file-from-revert-buffer): Remove variable.
  (after-find-file): Dont' bind it.
  (revert-buffer-in-progress-p): New variable.
  (revert-buffer): Bind it.
  Pass nil for `after-find-file-from-revert-buffer'.

* lisp/saveplace.el (save-place-find-file-hook): Use new variable
  `rever-buffer-in-progress-p', not `after-find-file-from-revert-buffer'.

* etc/NEWS: New variable `revert-buffer-in-progress-p'.

13 years agoupdate_autogen
Paul Eggert [Wed, 6 Apr 2011 19:11:15 +0000 (12:11 -0700)]
update_autogen

13 years agoAdapt the MS-DOS build to changes in gnulib.
Eli Zaretskii [Wed, 6 Apr 2011 17:49:21 +0000 (20:49 +0300)]
Adapt the MS-DOS build to changes in gnulib.

 msdos/sedlibmk.inp: Update checklist.
 (am_libgnu_a_OBJECTS): Remove careadlinkat.$(OBJEXT).
 ($(top_builddir)/config.status): Edit away, both as target and in
 prerequisites.
 (@am__fastdepCC_FALSE@): Fix editing.
 (@GL_GENERATE_STDBOOL_H_TRUE@, @GL_GENERATE_STDBOOL_H_FALSE@)
 (@GL_GENERATE_STDDEF_H_TRUE@, @GL_GENERATE_STDDEF_H_FALSE@)
 (@GL_GENERATE_STDINT_H_TRUE@, @GL_GENERATE_STDINT_H_FALSE@): Edit
 to either nothing or "#".
 src/msdos.c (careadlinkat, careadlinkatcwd): MS-DOS replacements.

13 years agoDon't call gnulib's careadlinkat on Windows.
Eli Zaretskii [Wed, 6 Apr 2011 16:05:49 +0000 (19:05 +0300)]
Don't call gnulib's careadlinkat on Windows.

 src/w32.c (careadlinkat, careadlinkatcwd): New always-fail stubs.
 lib/makefile.w32-in ($(BLD)/careadlinkat.$(O), GNULIBOBJS):
 Revert last change.

13 years agoFix the Windows build due to introduction of ATTRIBUTE_FORMAT_PRINTF.
Eli Zaretskii [Wed, 6 Apr 2011 15:44:32 +0000 (18:44 +0300)]
Fix the Windows build due to introduction of ATTRIBUTE_FORMAT_PRINTF.

 nt/config.nt (NO_INLINE, ATTRIBUTE_FORMAT)
 (ATTRIBUTE_FORMAT_PRINTF): Define, as followup to 2011-04-06T05:19:39Z!eggert@cs.ucla.edu
 on the trunk on 2011-04-06.

13 years agolib/makefile.w32-in: Adapt to changes in 2011-04-06T05:19:39Z!eggert@cs.ucla.edu.
Juanma Barranquero [Wed, 6 Apr 2011 14:16:43 +0000 (16:16 +0200)]
lib/makefile.w32-in: Adapt to changes in 2011-04-06T05:19:39Z!eggert@cs.ucla.edu.

* lib/makefile.w32-in (GNULIBOBJS): Add careadlinkat.$(O).
  ($(BLD)/careadlinkat.$(O)): New target.
  ($(BLD)/dtoastr.$(O), $(BLD)/getopt.$(O), $(BLD)/getopt1.$(O))
  ($(BLD)/strftime.$(O), $(BLD)/time_r.$(O), $(BLD)/md5.$(O)):
  Update dependencies.

13 years agognus-registry.el: Don't use ERT if it's not available.
Teodor Zlatanov [Wed, 6 Apr 2011 12:55:49 +0000 (12:55 +0000)]
gnus-registry.el: Don't use ERT if it's not available.
 (gnus-registry-delete-entries): New convenience function.
 (gnus-registry-import-eld): Import from old .eld registry.
registry.el: Don't use ERT if it's not available.
proto-stream.el (gnutls-negotiate): Revert inadvertent commit of the version from the Claudio Bley GnuTLS patch (extra optional parametersnand host name).

13 years agoUpdate and split ChangeLogs.
Juanma Barranquero [Wed, 6 Apr 2011 12:18:10 +0000 (14:18 +0200)]
Update and split ChangeLogs.

13 years agoAuto-commit of generated files.
Glenn Morris [Wed, 6 Apr 2011 10:18:29 +0000 (06:18 -0400)]
Auto-commit of generated files.

13 years ago* lib/gnulib.mk, m4/stdbool.m4, m4/stddef_h.m4, m4/stdint.m4: Merge from gnulib.
Paul Eggert [Wed, 6 Apr 2011 07:04:53 +0000 (00:04 -0700)]
* lib/gnulib.mk, m4/stdbool.m4, m4/stddef_h.m4, m4/stdint.m4: Merge from gnulib.

13 years agoFix more problems found by GCC 4.6.0's static checks.
Paul Eggert [Wed, 6 Apr 2011 05:19:39 +0000 (22:19 -0700)]
Fix more problems found by GCC 4.6.0's static checks.

13 years ago* doc/misc/texinfo.tex: Upgrade to 2011-03-25.11 version (comment change).
Paul Eggert [Wed, 6 Apr 2011 05:07:27 +0000 (22:07 -0700)]
* doc/misc/texinfo.tex: Upgrade to 2011-03-25.11 version (comment change).

13 years agodoprnt, error, and verror are not printf-compatible.
Paul Eggert [Wed, 6 Apr 2011 04:58:58 +0000 (21:58 -0700)]
doprnt, error, and verror are not printf-compatible.

13 years agoMerge from mainline.
Paul Eggert [Wed, 6 Apr 2011 04:52:22 +0000 (21:52 -0700)]
Merge from mainline.

13 years agoUndo Fstring_to_unibyte change.
Paul Eggert [Wed, 6 Apr 2011 04:34:35 +0000 (21:34 -0700)]
Undo Fstring_to_unibyte change.

13 years ago* autogen/update_autogen: Add a separate -L option for ldefs-boot.el.
Glenn Morris [Wed, 6 Apr 2011 04:15:53 +0000 (21:15 -0700)]
* autogen/update_autogen: Add a separate -L option for ldefs-boot.el.

13 years agoAuto-commit of loaddefs files.
Glenn Morris [Wed, 6 Apr 2011 02:34:56 +0000 (22:34 -0400)]
Auto-commit of loaddefs files.

13 years ago* autogen/update_autogen: Configure --without-x.
Glenn Morris [Wed, 6 Apr 2011 02:23:28 +0000 (19:23 -0700)]
* autogen/update_autogen: Configure --without-x.

13 years agoMake update_autogen handle loaddefs-like files as well.
Glenn Morris [Wed, 6 Apr 2011 02:13:16 +0000 (19:13 -0700)]
Make update_autogen handle loaddefs-like files as well.

* autogen/update_autogen: (usage): Add -l, -C.
(clean, ldefs_flag, ldefs_in, ldefs_out): New variables.
With -l, check status of lisp/ as well.
With -C, clean before building.
(autoreconf): Only pass -f in the `clean' case.
(commit): New function.

* lisp/Makefile.in (AUTOGEN_VCS): New variable.
(autoloads): Use $AUTOGEN_VCS.

* .bzrignore: Tighten up ignore patterns (for autogen/).

13 years agoCalendar fix for scroll-bar scrolling (b#8305).
Glenn Morris [Wed, 6 Apr 2011 02:05:45 +0000 (19:05 -0700)]
Calendar fix for scroll-bar scrolling (b#8305).

* lisp/calendar/cal-move.el (calendar-scroll-toolkit-scroll): New function.
* lisp/calendar/calendar.el (calendar-mode-map):
Check for toolkit scroll bars.

13 years ago* lisp/gnus/registry.el: Fix copyright, standardize license notice.
Glenn Morris [Wed, 6 Apr 2011 02:01:39 +0000 (19:01 -0700)]
* lisp/gnus/registry.el: Fix copyright, standardize license notice.

13 years agoBackport 2011-04-04T22:08:01Z!lekktu@gmail.com and 2011-04-04T22:33:12Z!lekktu@gmail...
Juanma Barranquero [Wed, 6 Apr 2011 01:26:46 +0000 (03:26 +0200)]
Backport 2011-04-04T22:08:01Z!lekktu@gmail.com and 2011-04-04T22:33:12Z!lekktu@gmail.com from trunk.

* help-fns.el (describe-variable): Complete all variables having
  documentation, including keywords.
  http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00112.html

13 years agolisp/mh-e/mh-funcs.el (mh-undo-folder): Make compatible with `revert-buffer' (bug...
Juanma Barranquero [Wed, 6 Apr 2011 01:14:03 +0000 (03:14 +0200)]
lisp/mh-e/mh-funcs.el (mh-undo-folder): Make compatible with `revert-buffer' (bug#8431).

13 years agoAdd lisp/gnus/registry.el.
Ted Zlatanov [Tue, 5 Apr 2011 23:37:02 +0000 (23:37 +0000)]
Add lisp/gnus/registry.el.

13 years agoMerge changes made in Gnus trunk.
Teodor Zlatanov [Tue, 5 Apr 2011 22:35:05 +0000 (22:35 +0000)]
Merge changes made in Gnus trunk.

gnus-registry.el (gnus-registry-fixup-registry): New function to fixup the parameters that can be customized by the user between save/read cycles.
 (gnus-registry-read): Use it.
 (gnus-registry-make-db): Use it.
 (gnus-registry-spool-action, gnus-registry-handle-action): Fix messaging.
 (gnus-registry--split-fancy-with-parent-internal): Fix loop.  Map references to actual group names with sender and subject tracking.
 (gnus-registry-post-process-groups): Use `cond' for better messaging.
 (gnus-registry-usage-test): Add subject lookup test.
registry.el (registry-db, initialize-instance): Set up constructor instead of :initform arguments for the sake of older Emacsen.
 (registry-lookup-breaks-before-lexbind): New method to demonstrate pre-lexbind merge bug.
 (registry-usage-test): Use it.
 (initialize-instance, registry-db): Move the non-function initforms back to the class definition.
registry.el: New library to manage gnus-registry-style data.
gnus-registry.el: Use it (major rewrite).
nnregistry.el: Use it.
spam.el: Use it.

13 years agoRemove extraneous messages in 2011-03-30 completion change.
Chong Yidong [Tue, 5 Apr 2011 21:19:42 +0000 (17:19 -0400)]
Remove extraneous messages in 2011-03-30 completion change.
These blocked the minibuffer contents when completing in the minibuffer, in a
departure from previous Emacs behavior.

* lisp/minibuffer.el (completion-in-region--postch)
(completion-in-region-mode): Remove unnecessary messages.

13 years ago* xmenu.c (Fx_popup_dialog): Don't assume string is free of formats.
Paul Eggert [Tue, 5 Apr 2011 20:26:55 +0000 (13:26 -0700)]
* xmenu.c (Fx_popup_dialog): Don't assume string is free of formats.

13 years ago* menu.c (Fx_popup_menu): Don't assume error_name lacks printf formats.
Paul Eggert [Tue, 5 Apr 2011 20:25:23 +0000 (13:25 -0700)]
* menu.c (Fx_popup_menu): Don't assume error_name lacks printf formats.

13 years ago* fns.c (Fstring_to_unibyte): Don't rely on undefined behavior
Paul Eggert [Tue, 5 Apr 2011 20:22:53 +0000 (13:22 -0700)]
* fns.c (Fstring_to_unibyte): Don't rely on undefined behavior

by passing a long int to a printf format expecting an int.

13 years ago* lisp.h (message, message_nolog, doprint, error, verror, fatal):
Paul Eggert [Tue, 5 Apr 2011 20:12:44 +0000 (13:12 -0700)]
* lisp.h (message, message_nolog, doprint, error, verror, fatal):

Mark as printf-like functions.

13 years ago* xdisp.c (vmessage): Mark as a printf-like function.
Paul Eggert [Tue, 5 Apr 2011 20:11:37 +0000 (13:11 -0700)]
* xdisp.c (vmessage): Mark as a printf-like function.

13 years ago* term.c (vfatal, maybe_fatal): Mark as printf-like functions.
Paul Eggert [Tue, 5 Apr 2011 20:08:58 +0000 (13:08 -0700)]
* term.c (vfatal, maybe_fatal): Mark as printf-like functions.

13 years ago* sound.c (sound_warning): Don't crash if arg contains a printf format.
Paul Eggert [Tue, 5 Apr 2011 20:08:03 +0000 (13:08 -0700)]
* sound.c (sound_warning): Don't crash if arg contains a printf format.

13 years ago* image.c (tiff_error_handler, tiff_warning_handler): Mark as
Paul Eggert [Tue, 5 Apr 2011 20:06:52 +0000 (13:06 -0700)]
* image.c (tiff_error_handler, tiff_warning_handler): Mark as

printf-like functions.
(tiff_load): Add casts to remove these marks before passing them
to system-supplied API.

13 years ago* eval.c (Fsignal): Remove excess argument to 'fatal'.
Paul Eggert [Tue, 5 Apr 2011 20:01:08 +0000 (13:01 -0700)]
* eval.c (Fsignal): Remove excess argument to 'fatal'.

13 years ago* emacsclient.c (message): Mark it as a printf-like function.
Paul Eggert [Tue, 5 Apr 2011 19:59:58 +0000 (12:59 -0700)]
* emacsclient.c (message): Mark it as a printf-like function.

13 years ago* configure.in (ATTRIBUTE_FORMAT, ATTRIBUTE_FORMAT_PRINTF): New macros.
Paul Eggert [Tue, 5 Apr 2011 19:59:08 +0000 (12:59 -0700)]
* configure.in (ATTRIBUTE_FORMAT, ATTRIBUTE_FORMAT_PRINTF): New macros.

13 years agoMerge changes from gnulib.
Paul Eggert [Tue, 5 Apr 2011 18:19:19 +0000 (11:19 -0700)]
Merge changes from gnulib.

13 years agolisp/font-lock.el: Remove obsolete code.
Juanma Barranquero [Tue, 5 Apr 2011 15:20:21 +0000 (17:20 +0200)]
lisp/font-lock.el: Remove obsolete code.

* font-lock.el (font-lock-refresh-defaults):
  Don't bind `hi-lock--inhibit-font-lock-hook', removed in
  2010-10-09T04:09:19Z!cyd@stupidchicken.com and 2010-10-11T23:57:49Z!lekktu@gmail.com

13 years agolisp/info.el: Fix typos; mark unused parameters.
Juanma Barranquero [Tue, 5 Apr 2011 15:08:28 +0000 (17:08 +0200)]
lisp/info.el: Fix typos; mark unused parameters.

* info.el (Info-directory-list, Info-read-node-name-2)
  (Info-split-parameter-string): Doc fixes.
  (Info-virtual-nodes): Reflow docstring.
  (Info-find-file, Info-directory-toc-nodes, Info-history-toc-nodes)
  (Info-apropos-toc-nodes, info-finder, Info-get-token)
  (Info-find-emacs-command-nodes, Info-speedbar-key-map):
  Fix typos in docstrings.
  (Info-revert-buffer-function, Info-search, Info-isearch-pop-state)
  (Info-speedbar-hierarchy-buttons, Info-speedbar-goto-node)
  (Info-speedbar-buttons, Info-desktop-buffer-misc-data)
  (Info-restore-desktop-buffer): Mark unused parameters.
  (Info-directory-find-file, Info-directory-find-node)
  (Info-history-find-file, Info-history-find-node, Info-toc-find-node)
  (Info-virtual-index-find-node, Info-apropos-find-file)
  (Info-apropos-find-node, Info-finder-find-file, Info-finder-find-node):
  Mark unused parameters; fix typos in arguments.
  (Info-virtual-index): Remove unused local variable `nodename'.

13 years agoMerge from mainline.
Paul Eggert [Tue, 5 Apr 2011 06:45:27 +0000 (23:45 -0700)]
Merge from mainline.

13 years ago* coding.c (DECODE_COMPOSITION_RULE): If the rule is invalid, goto invalid_code
Paul Eggert [Tue, 5 Apr 2011 06:41:53 +0000 (23:41 -0700)]
* coding.c (DECODE_COMPOSITION_RULE): If the rule is invalid, goto invalid_code

directly, rather than having caller test rule sign.  This avoids
some unnecessary tests.
* composite.h (COMPOSITION_ENCODE_RULE_VALID): New macro.
(COMPOSITION_ENCODE_RULE): Arguments now must be valid.  This
affects only one use, in DECODE_COMPOSITION_RULE, which is changed.

13 years ago* coding.c (EMIT_ONE_BYTE, EMIT_TWO_BYTES): Use unsigned, not int.
Paul Eggert [Tue, 5 Apr 2011 06:24:54 +0000 (23:24 -0700)]
* coding.c (EMIT_ONE_BYTE, EMIT_TWO_BYTES): Use unsigned, not int.

This avoids several warnings with gcc -Wstrict-overflow.

13 years ago* xfont.c (xfont_open): Avoid unnecessary tests.
Paul Eggert [Tue, 5 Apr 2011 05:14:06 +0000 (22:14 -0700)]
* xfont.c (xfont_open): Avoid unnecessary tests.

13 years ago* xfont.c (xfont_text_extents): Remove var that was set but not used.
Paul Eggert [Tue, 5 Apr 2011 05:12:02 +0000 (22:12 -0700)]
* xfont.c (xfont_text_extents): Remove var that was set but not used.

13 years ago* composite.c (composition_gstring_put_cache): Use unsigned integer.
Paul Eggert [Tue, 5 Apr 2011 05:11:14 +0000 (22:11 -0700)]
* composite.c (composition_gstring_put_cache): Use unsigned integer.

13 years ago* lisp/net/rcirc.el: Update my e-mail address.
Deniz Dogan [Tue, 5 Apr 2011 04:33:38 +0000 (06:33 +0200)]
* lisp/net/rcirc.el: Update my e-mail address.

13 years ago* lisp/net/rcirc.el (rcirc-mode-map): Remove M-o binding.
Deniz Dogan [Tue, 5 Apr 2011 04:31:24 +0000 (06:31 +0200)]
* lisp/net/rcirc.el (rcirc-mode-map): Remove M-o binding.

13 years agoFix theme and X-resource interactions for the cursor face.
Chong Yidong [Tue, 5 Apr 2011 01:21:52 +0000 (21:21 -0400)]
Fix theme and X-resource interactions for the cursor face.

* lisp/startup.el (command-line): Save the cursor's theme-face
directly, instead of using face-override-spec.

* lisp/custom.el (load-theme): Minor optimization in assigning faces.

13 years agolisp/help-fns.el: Fix mistake in previous change.
Juanma Barranquero [Mon, 4 Apr 2011 22:33:12 +0000 (00:33 +0200)]
lisp/help-fns.el: Fix mistake in previous change.

13 years agolisp/help-fns.el (describe-variable): Fix completion.
Juanma Barranquero [Mon, 4 Apr 2011 22:08:01 +0000 (00:08 +0200)]
lisp/help-fns.el (describe-variable): Fix completion.

http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00112.html

13 years ago* composite.h, composite.c (composition_gstring_put_cache):
Paul Eggert [Mon, 4 Apr 2011 19:53:59 +0000 (12:53 -0700)]
* composite.h, composite.c (composition_gstring_put_cache):

Use EMACS_INT, not int, for length.

13 years ago* composite.h (COMPOSITION_DECODE_REFS): New macro,
Paul Eggert [Mon, 4 Apr 2011 19:46:32 +0000 (12:46 -0700)]
* composite.h (COMPOSITION_DECODE_REFS): New macro,

breaking out part of COMPOSITION_DECODE_RULE.
(COMPOSITION_DECODE_RULE): Use it.
* composite.c (get_composition_id): Remove unused local vars,
by using the new macro.

13 years ago* textprop.c (set_text_properties_1): Change while to do-while,
Paul Eggert [Mon, 4 Apr 2011 19:30:48 +0000 (12:30 -0700)]
* textprop.c (set_text_properties_1): Change while to do-while,

since the condition is always true at first.

13 years ago* intervals.c (interval_deletion_adjustment): Return unsigned value.
Paul Eggert [Mon, 4 Apr 2011 16:47:31 +0000 (09:47 -0700)]
* intervals.c (interval_deletion_adjustment): Return unsigned value.

All uses changed.

13 years agognus-sum.el (gnus-update-marks): Reinstate the code to not alter marks on non-selecte...
Lars Magne Ingebrigtsen [Mon, 4 Apr 2011 14:03:08 +0000 (14:03 +0000)]
gnus-sum.el (gnus-update-marks): Reinstate the code to not alter marks on non-selected articles.
gnus-start.el (gnus-get-unread-articles): Don't try to contact denied servers.

13 years agoConvert some .el files to lexical scoping.
Juanma Barranquero [Mon, 4 Apr 2011 09:35:16 +0000 (11:35 +0200)]
Convert some .el files to lexical scoping.

* bs.el (bs-refresh, bs-sort-buffer-interns-are-last)
  (bs--get-marked-string, bs--get-modified-string)
  (bs--get-readonly-string, bs--get-size-string, bs--get-name)
  (bs--get-mode-name, bs--get-file-name): Mark unused arguments.
  (bs--configuration-name-for-prefix-arg): Rename argument PREFIX-ARG.

* ehelp.el (electric-help-execute-extended)
  (electric-help-ctrl-x-prefix):
* hexl.el (hexl-revert-buffer-function):
* linum.el (linum-after-change, linum-after-scroll):
* emacs-lisp/re-builder.el (reb-auto-update): Mark unused arguments.

* help-fns.el (help-describe-category-set): Remove unused ERR variable.

13 years agolisp/dired.el: Update autoloads.
Juanma Barranquero [Mon, 4 Apr 2011 09:28:26 +0000 (11:28 +0200)]
lisp/dired.el: Update autoloads.

13 years ago* intervals.c (graft_intervals_into_buffer): Mark var as used.
Paul Eggert [Mon, 4 Apr 2011 09:08:31 +0000 (02:08 -0700)]
* intervals.c (graft_intervals_into_buffer): Mark var as used.

13 years ago* process.c (read_process_output): Simplify nbytes computation if buffered.
Paul Eggert [Mon, 4 Apr 2011 09:06:52 +0000 (02:06 -0700)]
* process.c (read_process_output): Simplify nbytes computation if buffered.

13 years ago* process.c (read_process_output): Do adaptive read buffering even if carryover.
Paul Eggert [Mon, 4 Apr 2011 09:04:33 +0000 (02:04 -0700)]
* process.c (read_process_output): Do adaptive read buffering even if carryover.

13 years ago* process.c (Fnetwork_interface_info): Avoid possibility of int overflow.
Paul Eggert [Mon, 4 Apr 2011 08:13:45 +0000 (01:13 -0700)]
* process.c (Fnetwork_interface_info): Avoid possibility of int overflow.

13 years ago* process.c (create_pty): Remove unnecessary "volatile"s.
Paul Eggert [Mon, 4 Apr 2011 08:11:21 +0000 (01:11 -0700)]
* process.c (create_pty): Remove unnecessary "volatile"s.

13 years ago* process.c (list_processes_1, create_pty, read_process_output):
Paul Eggert [Mon, 4 Apr 2011 08:09:01 +0000 (01:09 -0700)]
* process.c (list_processes_1, create_pty, read_process_output):

(exec_sentinel): Remove vars that were set but not used.

13 years ago* bytecode.c (exec_byte_code): Rename local to avoid shadowing.
Paul Eggert [Mon, 4 Apr 2011 07:55:46 +0000 (00:55 -0700)]
* bytecode.c (exec_byte_code): Rename local to avoid shadowing.

13 years ago* syntax.c (update_syntax_table): Use unsigned instead of int.
Paul Eggert [Mon, 4 Apr 2011 07:53:20 +0000 (00:53 -0700)]
* syntax.c (update_syntax_table): Use unsigned instead of int.

13 years ago* syntax.c (scan_words): Remove var that was set but not used.
Paul Eggert [Mon, 4 Apr 2011 07:50:49 +0000 (00:50 -0700)]
* syntax.c (scan_words): Remove var that was set but not used.

13 years ago* lread.c (safe_to_load_p): Make the end-of-loop test the inverse of the in-loop.
Paul Eggert [Mon, 4 Apr 2011 07:48:36 +0000 (00:48 -0700)]
* lread.c (safe_to_load_p): Make the end-of-loop test the inverse of the in-loop.

13 years ago* lread.c (lisp_file_lexically_bound_p, read1): Use unsigned instead of int.
Paul Eggert [Mon, 4 Apr 2011 07:48:08 +0000 (00:48 -0700)]
* lread.c (lisp_file_lexically_bound_p, read1): Use unsigned instead of int.

13 years ago* lread.c (lisp_file_lexically_bound_p): Use ints rather than endptrs.
Paul Eggert [Mon, 4 Apr 2011 07:33:02 +0000 (00:33 -0700)]
* lread.c (lisp_file_lexically_bound_p): Use ints rather than endptrs.