]> git.eshelyaron.com Git - emacs.git/log
emacs.git
13 years ago* eval.c: Port to Windows vsnprintf (Bug#8435).
Paul Eggert [Fri, 8 Apr 2011 23:28:52 +0000 (16:28 -0700)]
* eval.c: Port to Windows vsnprintf (Bug#8435).

Include <limits.h>.
(SIZE_MAX): Define if the headers do not.
(verror): Do not give up if vsnprintf returns a negative count.
Instead, grow the buffer.  This ports to Windows vsnprintf, which
does not conform to C99.  Problem reported by Eli Zaretskii.
Also, simplify the allocation scheme, by avoiding the need for
calling realloc, and removing the ALLOCATED variable.

13 years agoUpdate from gnulib.
Paul Eggert [Fri, 8 Apr 2011 21:53:30 +0000 (14:53 -0700)]
Update from gnulib.

13 years ago* eval.c (verror): Initial buffer size is 4000 (not 200) bytes.
Paul Eggert [Thu, 7 Apr 2011 05:19:50 +0000 (22:19 -0700)]
* eval.c (verror): Initial buffer size is 4000 (not 200) bytes.

13 years agoRemove the doprnt implementation, as Emacs now uses vsnprintf.
Paul Eggert [Thu, 7 Apr 2011 03:49:25 +0000 (20:49 -0700)]
Remove the doprnt implementation, as Emacs now uses vsnprintf.

13 years agoerror: Print 32- and 64-bit integers portably (Bug#8435).
Paul Eggert [Thu, 7 Apr 2011 03:34:05 +0000 (20:34 -0700)]
error: Print 32- and 64-bit integers portably (Bug#8435).

Without this change, on typical 64-bit hosts error ("...%d...", N)
was used to print both 32- and 64-bit integers N, which relied on
undefined behavior.
* lisp.h, src/m/amdx86-64.h, src/m/ia64.h, src/m/ibms390x.h (pEd):
New macro.
* lisp.h (error, verror): Mark as printf-like functions.
* eval.c (verror): Use vsnprintf, not doprnt, to do the real work.
Report overflow in size calculations when allocating printf buffer.
Do not truncate output string at its first null byte.
* xdisp.c (vmessage): Use vsnprintf, not doprnt, to do the real work.
Truncate the output at a character boundary, since vsnprintf does not
do that.
* charset.c (check_iso_charset_parameter): Convert internal
character to string before calling 'error', since %c now has the
printf meaning.
* coding.c (Fdecode_sjis_char, Fdecode_big5_char): Avoid int
overflow when computing char to be passed to 'error'.  Do not
pass Lisp_Object to 'error'; pass the integer instead.
* nsfns.m (Fns_do_applescript): Use int, not long, since it's
formatted with plain %d.

13 years ago* eval.c (internal_lisp_condition_case): Don't pass spurious arg.
Paul Eggert [Thu, 7 Apr 2011 02:53:19 +0000 (19:53 -0700)]
* eval.c (internal_lisp_condition_case): Don't pass spurious arg.

13 years ago* keyboard.c (access_keymap_keyremap): Print func name, not garbage.
Paul Eggert [Thu, 7 Apr 2011 02:51:18 +0000 (19:51 -0700)]
* keyboard.c (access_keymap_keyremap): Print func name, not garbage.

13 years ago* coding.c (Fdecode_sjis_char): Don't assume CODE fits in int.
Paul Eggert [Wed, 6 Apr 2011 23:02:23 +0000 (16:02 -0700)]
* coding.c (Fdecode_sjis_char): Don't assume CODE fits in int.

13 years ago* xterm.c (x_catch_errors): Remove duplicate declaration.
Paul Eggert [Wed, 6 Apr 2011 22:46:00 +0000 (15:46 -0700)]
* xterm.c (x_catch_errors): Remove duplicate declaration.

13 years ago* term.c (maybe_fatal): Mark its 3rd arg as a printf format, too.
Paul Eggert [Wed, 6 Apr 2011 22:27:58 +0000 (15:27 -0700)]
* term.c (maybe_fatal): Mark its 3rd arg as a printf format, too.

13 years ago* xdisp.c, lisp.h (message_nolog): Remove; unused.
Paul Eggert [Wed, 6 Apr 2011 22:17:53 +0000 (15:17 -0700)]
* xdisp.c, lisp.h (message_nolog): Remove; unused.

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 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.

13 years ago* print.c (print_error_message): Avoid int overflow.
Paul Eggert [Mon, 4 Apr 2011 06:52:29 +0000 (23:52 -0700)]
* print.c (print_error_message): Avoid int overflow.

13 years ago* font.c (font_list_entities): Redo for clarity,
Paul Eggert [Mon, 4 Apr 2011 06:29:11 +0000 (23:29 -0700)]
* font.c (font_list_entities): Redo for clarity,

so that reader need not know FONT_DPI_INDEX + 1 == FONT_SPACING_INDEX.

13 years agoUse lexical binding in ep[ga]*.el.
Daiki Ueno [Mon, 4 Apr 2011 06:16:23 +0000 (15:16 +0900)]
Use lexical binding in ep[ga]*.el.

* epa-dired.el:
* epa-mail.el:
* epa-hook.el:
* epa-file.el:
* epa.el:
* epg.el: Use lexical binding.

13 years ago* src/keyboard.c (safe_run_hook_funcall): Fix last change (don't stop at the
Stefan Monnier [Mon, 4 Apr 2011 01:10:13 +0000 (21:10 -0400)]
* src/keyboard.c (safe_run_hook_funcall): Fix last change (don't stop at the
first non-nil return value).

13 years ago* lisp/dired-aux.el (dired-create-files): Add docstring (Bug#7970).
Chong Yidong [Sun, 3 Apr 2011 21:23:23 +0000 (17:23 -0400)]
* lisp/dired-aux.el (dired-create-files): Add docstring (Bug#7970).

13 years agoAdd changes to lisp/url/ChangeLog omitted from 2011-04-02T23:41:03Z!cyd@stupidchicken...
Chong Yidong [Sun, 3 Apr 2011 21:06:47 +0000 (17:06 -0400)]
Add changes to lisp/url/ChangeLog omitted from 2011-04-02T23:41:03Z!cyd@stupidchicken.com.

13 years agoImprovements to flyspell-mark-duplications-exceptions.
Chong Yidong [Sun, 3 Apr 2011 20:59:45 +0000 (16:59 -0400)]
Improvements to flyspell-mark-duplications-exceptions.

* lisp/textmodes/flyspell.el (flyspell-word): Recognize default
dictionary case for flyspell-mark-duplications-exceptions.  Use
regexp matching for languages.
(flyspell-mark-duplications-exceptions): Add "that" and "had" for
default dictionary (Bug#7926).

13 years ago* nsterm.m (ns_update_auto_hide_menu_bar): Define MAC_OS_X_VERSION_10_6
Jan Djärv [Sun, 3 Apr 2011 08:30:57 +0000 (10:30 +0200)]
* nsterm.m (ns_update_auto_hide_menu_bar): Define MAC_OS_X_VERSION_10_6
if not defined.

Fixes: debbugs:8403
13 years ago* font.c (font_score): Avoid potential overflow in diff calculation.
Paul Eggert [Sun, 3 Apr 2011 07:05:43 +0000 (00:05 -0700)]
* font.c (font_score): Avoid potential overflow in diff calculation.

13 years ago* font.c (font_find_for_lface, Ffont_get_glyphs): Remove unused vars.
Paul Eggert [Sun, 3 Apr 2011 06:01:50 +0000 (23:01 -0700)]
* font.c (font_find_for_lface, Ffont_get_glyphs): Remove unused vars.

13 years ago* fns.c (sxhash): Redo loop for clarity and to avoid wraparound warning.
Paul Eggert [Sun, 3 Apr 2011 05:56:37 +0000 (22:56 -0700)]
* fns.c (sxhash): Redo loop for clarity and to avoid wraparound warning.

13 years ago* fns.c (substring_both): Remove var that is set but not used.
Paul Eggert [Sun, 3 Apr 2011 05:46:57 +0000 (22:46 -0700)]
* fns.c (substring_both): Remove var that is set but not used.

13 years ago* eval.c (funcall_lambda): Rename local to avoid shadowing.
Paul Eggert [Sun, 3 Apr 2011 05:44:38 +0000 (22:44 -0700)]
* eval.c (funcall_lambda): Rename local to avoid shadowing.

13 years ago* alloc.c (mark_object_loop_halt, mark_object): Use size_t, not int.
Paul Eggert [Sun, 3 Apr 2011 05:41:46 +0000 (22:41 -0700)]
* alloc.c (mark_object_loop_halt, mark_object): Use size_t, not int.

Otherwise, GCC 4.6.0 optimizes the loop check away since the check
can always succeed if overflow has undefined behavior.

13 years ago* search.c (wordify): Omit three unnecessary tests.
Paul Eggert [Sun, 3 Apr 2011 04:21:50 +0000 (21:21 -0700)]
* search.c (wordify): Omit three unnecessary tests.

13 years ago* search.c (boyer_moore, wordify): Remove vars set but not used.
Paul Eggert [Sun, 3 Apr 2011 01:52:02 +0000 (18:52 -0700)]
* search.c (boyer_moore, wordify): Remove vars set but not used.

13 years ago* indent.c (MULTIBYTE_BYTES_WIDTH): Don't compute wide_column.
Paul Eggert [Sun, 3 Apr 2011 01:00:03 +0000 (18:00 -0700)]
* indent.c (MULTIBYTE_BYTES_WIDTH): Don't compute wide_column.

All callers changed.  This avoids the need for an unused var.

13 years agoFix missing NEWS subentry (Bug#8400).
Chong Yidong [Sun, 3 Apr 2011 00:40:35 +0000 (20:40 -0400)]
Fix missing NEWS subentry (Bug#8400).

13 years ago* casefiddle.c (casify_region): Remove var that is set but not used.
Paul Eggert [Sun, 3 Apr 2011 00:33:43 +0000 (17:33 -0700)]
* casefiddle.c (casify_region): Remove var that is set but not used.

13 years ago* dired.c (file_name_completion): Remove var that is set but not used.
Paul Eggert [Sun, 3 Apr 2011 00:32:58 +0000 (17:32 -0700)]
* dired.c (file_name_completion): Remove var that is set but not used.

13 years ago* fileio.c (Finsert_file_contents): Make EOF condition clearer.
Paul Eggert [Sun, 3 Apr 2011 00:32:10 +0000 (17:32 -0700)]
* fileio.c (Finsert_file_contents): Make EOF condition clearer.