]> git.eshelyaron.com Git - emacs.git/log
emacs.git
13 years ago* lisp/isearch.el (isearch-range-invisible): Use invisible-p.
Dmitry Kurochkin [Sat, 28 May 2011 01:14:38 +0000 (22:14 -0300)]
* lisp/isearch.el (isearch-range-invisible): Use invisible-p.

Fixes: debbugs:8721
13 years ago* lisp/emacs-lisp/avl-tree.el: New avl-tree-stack datatype. Add new
Toby Cubitt [Fri, 27 May 2011 23:03:26 +0000 (20:03 -0300)]
* lisp/emacs-lisp/avl-tree.el: New avl-tree-stack datatype.  Add new
traversal functions for avl-trees.  Consolidate rebalancing code.

13 years ago* lisp/emacs-lisp/avl-tree.el: New avl-tree-stack datatype. Add new
Toby Cubitt [Fri, 27 May 2011 22:58:29 +0000 (19:58 -0300)]
* lisp/emacs-lisp/avl-tree.el: New avl-tree-stack datatype.  Add new
traversal functions for avl-trees.
(avl-tree--stack): New struct.
(avl-tree-stack-p, avl-tree--stack-repopulate): New funs.
(avl-tree-enter): Add optional `updatefun' arg.
(avl-tree--do-enter): Add optional `updatefun' arg.  Change return value.
(avl-tree-delete): Add optional `test' and `nilflag' args.
(avl-tree--do-delete): Add `test' and `nilflag' args.  Change return value.
(avl-tree-member): Add optional `nilflag'
(avl-tree-member-p): New function.
(avl-tree-mapc, avl-tree-mapf, avl-tree-mapcar): New functions.
(avl-tree-stack, avl-tree-stack-pop, avl-tree-stack-first)
(avl-tree-stack-empty-p): New functions.

13 years agosrc/ccl.c: Fix last commit.
Eli Zaretskii [Fri, 27 May 2011 21:24:11 +0000 (00:24 +0300)]
src/ccl.c: Fix last commit.

13 years agoFix order of ChangeLog entries after merge.
Paul Eggert [Fri, 27 May 2011 19:58:54 +0000 (12:58 -0700)]
Fix order of ChangeLog entries after merge.

13 years ago* lisp/emacs-lisp/avl-tree.el (avl-tree--del-balance): Rename from
Toby Cubitt [Fri, 27 May 2011 19:58:19 +0000 (16:58 -0300)]
* lisp/emacs-lisp/avl-tree.el (avl-tree--del-balance): Rename from
avl-tree--del-balance1 and make it work both ways.
(avl-tree--del-balance2): Remove.
(avl-tree--enter-balance): Rename from avl-tree--enter-balance1 and
make it work both ways.
(avl-tree--enter-balance2): Remove.
(avl-tree--switch-dir, avl-tree--dir-to-sign, avl-tree--sign-to-dir):
New macros.
(avl-tree--mapc, avl-tree-map): Add direction argument.

13 years agoMerge from trunk.
Paul Eggert [Fri, 27 May 2011 19:56:58 +0000 (12:56 -0700)]
Merge from trunk.

13 years ago* data.c (arith_driver): Omit unnecessary mask and test.
Paul Eggert [Fri, 27 May 2011 19:48:22 +0000 (12:48 -0700)]
* data.c (arith_driver): Omit unnecessary mask and test.

13 years ago* src/xselect.c (x_convert_selection): Yet another int/Lisp_Object mixup.
Stefan Monnier [Fri, 27 May 2011 19:39:18 +0000 (16:39 -0300)]
* src/xselect.c (x_convert_selection): Yet another int/Lisp_Object mixup.

13 years agoMerge: Integer overflow fixes.
Paul Eggert [Fri, 27 May 2011 19:37:32 +0000 (12:37 -0700)]
Merge: Integer overflow fixes.

13 years ago* lisp/files.el (interpreter-mode-alist): Add rbash.
David Michael [Fri, 27 May 2011 19:33:48 +0000 (16:33 -0300)]
* lisp/files.el (interpreter-mode-alist): Add rbash.

Fixes: debbugs:8745
13 years ago* xselect.c: Fix minor problems prompted by GCC 4.6.0 warnings.
Paul Eggert [Fri, 27 May 2011 19:32:01 +0000 (12:32 -0700)]
* xselect.c: Fix minor problems prompted by GCC 4.6.0 warnings.

(x_handle_selection_request, frame_for_x_selection): Remove unused vars.
(x_clipboard_manager_save): Now static.
(Fx_clipboard_manager_save): Rename local to avoid shadowing.

13 years ago* fns.c: Fix minor problems prompted by GCC 4.6.0 warnings.
Paul Eggert [Fri, 27 May 2011 19:30:12 +0000 (12:30 -0700)]
* fns.c: Fix minor problems prompted by GCC 4.6.0 warnings.

(crypto_hash_function): Now static.
Fix pointer signedness problems.  Avoid unnecessary initializations.

13 years ago* doc/misc/texinfo.tex, lib/getopt.c, lib/intprops.h: Merge from gnulib.
Paul Eggert [Fri, 27 May 2011 16:58:43 +0000 (09:58 -0700)]
* doc/misc/texinfo.tex, lib/getopt.c, lib/intprops.h: Merge from gnulib.

13 years agoSupport X clipboard managers.
Chong Yidong [Fri, 27 May 2011 16:17:59 +0000 (12:17 -0400)]
Support X clipboard managers.

* lisp/select.el (xselect-convert-to-targets): Add MULTIPLE target to list.
(xselect-convert-to-save-targets): New function.

* src/xselect.c: Support for clipboard managers.
(Vselection_alist): Move to termhooks.h as terminal-local var.
(LOCAL_SELECTION): New macro.
(x_atom_to_symbol): Handle x_display_info_for_display fail case.
(symbol_to_x_atom): Remove gratuitous arg.
(x_handle_selection_request, lisp_data_to_selection_data)
(x_get_foreign_selection, Fx_register_dnd_atom): Callers changed.
(x_own_selection, x_get_local_selection, x_convert_selection): New
arg, specifying work frame.  Use terminal-local Vselection_alist.
(some_frame_on_display): Delete unused function.
(Fx_own_selection_internal, Fx_get_selection_internal)
(Fx_disown_selection_internal, Fx_selection_owner_p)
(Fx_selection_exists_p): New optional frame arg.
(frame_for_x_selection, Fx_clipboard_manager_save): New functions.
(x_handle_selection_clear): Don't treat other terminals with the
same keyboard specially.  Use the terminal-local Vselection_alist.
(x_clear_frame_selections): Use Frun_hook_with_args.

* src/termhooks.h (Vselection_alist): Make it terminal-local.

* src/terminal.c (create_terminal): Initialize it.

* src/xterm.c (x_term_init): Intern ATOM and CLIPBOARD_MANAGER atoms.

* src/xterm.h: Add support for those atoms.

13 years agoMerge from emacs-23; up to 2010-06-12T10:58:54Z!romain@orebokech.com.
Glenn Morris [Fri, 27 May 2011 07:18:15 +0000 (00:18 -0700)]
Merge from emacs-23; up to 2010-06-12T10:58:54Z!romain@orebokech.com.

13 years agomail/sendmail.el (mail-encode-header): Avoid double encoding by let-binding rfc2047...
Kenichi Handa [Fri, 27 May 2011 04:54:39 +0000 (13:54 +0900)]
mail/sendmail.el (mail-encode-header): Avoid double encoding by let-binding rfc2047-encode-encoded-words to nil.

13 years ago* lisp/mail/emacsbug.el: Don't require url-util.
Glenn Morris [Fri, 27 May 2011 01:58:50 +0000 (21:58 -0400)]
* lisp/mail/emacsbug.el: Don't require url-util.

13 years ago* lisp/shell.el (shell-directory-tracker): Case matters. (Bug#8735)
Glenn Morris [Fri, 27 May 2011 01:54:56 +0000 (21:54 -0400)]
* lisp/shell.el (shell-directory-tracker): Case matters.  (Bug#8735)

13 years agoTweak previous modes.texi change.
Glenn Morris [Fri, 27 May 2011 01:43:15 +0000 (21:43 -0400)]
Tweak previous modes.texi change.

13 years agoMake set-auto-mode respect mode: entries at the end of the file (bug#8586)
Glenn Morris [Fri, 27 May 2011 01:00:53 +0000 (21:00 -0400)]
Make set-auto-mode respect mode: entries at the end of the file (bug#8586)

* lisp/files.el (set-auto-mode):
Also respect mode: entries at the end of the file.

* doc/lispref/modes.texi (Auto Major Mode):
Update for set-auto-mode changes.

* doc/emacs/custom.texi (Specifying File Variables):
Major modes no longer need come first.

* etc/NEWS: Mention this.

13 years agoRepeat previous gnus-group.el change for bugs.debian.org.
Glenn Morris [Fri, 27 May 2011 00:55:07 +0000 (20:55 -0400)]
Repeat previous gnus-group.el change for bugs.debian.org.

* lisp/gnus/gnus-group.el (gnus-bug-group-download-format-alist):
Use the "maintainer" version of debian reports as well.

13 years agosrc/xselect.c (x_handle_selection_request): Fix typo in last change.
Chong Yidong [Thu, 26 May 2011 19:20:59 +0000 (15:20 -0400)]
src/xselect.c (x_handle_selection_request): Fix typo in last change.

13 years ago* src/xselect.c: ICCCM-compliant handling of MULTIPLE targets.
Chong Yidong [Thu, 26 May 2011 17:42:32 +0000 (13:42 -0400)]
* src/xselect.c: ICCCM-compliant handling of MULTIPLE targets.
(converted_selections, conversion_fail_tag): New global variables.
(x_selection_request_lisp_error): Free the above.
(x_get_local_selection): Remove unnecessary code.
(x_reply_selection_request): Args changed; handle arbitrary array
of converted selections stored in converted_selections.  Separate
the XChangeProperty and SelectionNotify steps.
(x_handle_selection_request): Rewrite to handle MULTIPLE target.
(x_convert_selection): New function.
(x_handle_selection_event): Simplify.
(x_get_foreign_selection): Don't ignore incoming requests while
waiting for an answer; this will fail when we implement
SAVE_TARGETS, and seems unnecessary anyway.
(selection_data_to_lisp_data): Recognize ATOM_PAIR type.
(Vx_sent_selection_functions): Doc fix.

13 years ago* variables.texi (File Local Variables): More hack-local-variables details.
Glenn Morris [Thu, 26 May 2011 16:20:21 +0000 (09:20 -0700)]
* variables.texi (File Local Variables): More hack-local-variables details.

13 years agoRestrict regexp match in previous emacsbug.el change.
Glenn Morris [Thu, 26 May 2011 16:14:53 +0000 (09:14 -0700)]
Restrict regexp match in previous emacsbug.el change.

13 years ago* lisp/files.el (hack-local-variables, hack-local-variables-apply): Doc fixes.
Glenn Morris [Thu, 26 May 2011 07:35:47 +0000 (00:35 -0700)]
* lisp/files.el (hack-local-variables, hack-local-variables-apply): Doc fixes.

13 years agoDowncase mode names in recent files.el changes.
Glenn Morris [Thu, 26 May 2011 07:23:11 +0000 (00:23 -0700)]
Downcase mode names in recent files.el changes.

* lisp/files.el (hack-local-variables-prop-line, hack-local-variables):
Downcase mode names, as seems to be traditional.

13 years agoAllow empty regions in transpose-regions
Leo Liu [Thu, 26 May 2011 05:36:55 +0000 (13:36 +0800)]
Allow empty regions in transpose-regions

See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8699.

13 years agoAdjust prompt in previous emacsbug.el change.
Glenn Morris [Thu, 26 May 2011 02:57:08 +0000 (19:57 -0700)]
Adjust prompt in previous emacsbug.el change.

13 years ago* configure.in: Comment fix.
Glenn Morris [Thu, 26 May 2011 00:55:14 +0000 (20:55 -0400)]
* configure.in: Comment fix.

13 years agoTiny doc/lispref/variables.texi update.
Glenn Morris [Thu, 26 May 2011 00:54:27 +0000 (20:54 -0400)]
Tiny doc/lispref/variables.texi update.

* doc/lispref/variables.texi (File Local Variables):
Update hack-local-variables `mode-only' return value.

13 years agoTry to check From address in bug reports (bug#8038)
Glenn Morris [Thu, 26 May 2011 00:52:33 +0000 (20:52 -0400)]
Try to check From address in bug reports (bug#8038)

* lisp/mail/emacsbug.el (report-emacs-bug): Mention checking From address.
(report-emacs-bug-hook): Try to validate the From address.

13 years agoMinor gnus-group.el change.
Glenn Morris [Thu, 26 May 2011 00:49:54 +0000 (20:49 -0400)]
Minor gnus-group.el change.

* lisp/gnus/gnus-group.el (gnus-bug-group-download-format-alist):
Use the "maintainer" version of debbugs.gnu.org reports.

13 years agoAuto-commit of generated files.
Glenn Morris [Wed, 25 May 2011 10:19:20 +0000 (06:19 -0400)]
Auto-commit of generated files.

13 years ago* textmodes/rst.el (rst-define-level-faces): Do not define face
Julien Danjou [Wed, 25 May 2011 09:03:59 +0000 (11:03 +0200)]
* textmodes/rst.el (rst-define-level-faces): Do not define face
symbol if it is already defined.

13 years ago* lib-src/Makefile.in (all, clean): Use $EXE_FILES.
Glenn Morris [Wed, 25 May 2011 07:13:57 +0000 (00:13 -0700)]
* lib-src/Makefile.in (all, clean): Use $EXE_FILES.

13 years agoMerge from emacs-23; up to 2010-06-12T08:59:37Z!albinus@detlef.
Glenn Morris [Wed, 25 May 2011 03:45:04 +0000 (20:45 -0700)]
Merge from emacs-23; up to 2010-06-12T08:59:37Z!albinus@detlef.

13 years agoTake account of periodic fringe bitmap's dependency on y-position in redrawing.
YAMAMOTO Mitsuharu [Wed, 25 May 2011 03:06:05 +0000 (12:06 +0900)]
Take account of periodic fringe bitmap's dependency on y-position in redrawing.

* dispextern.h (struct glyph_row): New member fringe_bitmap_periodic_p.

* dispnew.c (shift_glyph_matrix, scrolling_window): Mark scrolled row
for fringe update if it has periodic bitmap.
(row_equal_p): Also compare left_fringe_offset, right_fringe_offset,
and fringe_bitmap_periodic_p.

* fringe.c (get_fringe_bitmap_data): New function.
(draw_fringe_bitmap_1, update_window_fringes): Use it.
(update_window_fringes): Record periodicity of fringe bitmap in glyph
row.  Mark glyph row for fringe update if periodicity changed.

* xdisp.c (try_window_reusing_current_matrix): Don't mark scrolled row
for fringe update unless it has periodic bitmap.

13 years agomerge emacs-23
Kenichi Handa [Wed, 25 May 2011 02:45:30 +0000 (11:45 +0900)]
merge emacs-23

13 years agoSmall further clean-up in lib-src/Makefile.in
Glenn Morris [Wed, 25 May 2011 02:33:35 +0000 (19:33 -0700)]
Small further clean-up in lib-src/Makefile.in

* lib-src/Makefile.in (.c.o): Remove (every .o file has an explicit rule).
(insrcdir): New.
(stamp-rcs2log, stamp-rcs-checkin, stamp-grep-changelog, stamp-vcdiff):
Use $insrcdir to suppress unaesthetic ignored errors.
(clean): Simplify list of things to delete.

13 years ago* lib-src/Makefile.in (movemail${EXEEXT}): Build in one step, not via .o file.
Glenn Morris [Wed, 25 May 2011 01:32:34 +0000 (21:32 -0400)]
* lib-src/Makefile.in (movemail${EXEEXT}): Build in one step, not via .o file.

13 years agoxdisp.c (get_next_display_element): Set correct it->face_id for a static composition.
Kenichi Handa [Wed, 25 May 2011 01:26:35 +0000 (10:26 +0900)]
xdisp.c (get_next_display_element): Set correct it->face_id for a static composition.

13 years agoTiny simplifications in lib-src/Makfile.in
Glenn Morris [Wed, 25 May 2011 01:23:14 +0000 (21:23 -0400)]
Tiny simplifications in lib-src/Makfile.in

* lib-src/Makfile.in (REGEXPOBJ, REGEXPDEPS): Remove.  Replace by expansion.
(etags${EXEEXT}): Just depend on regex.o, not regex.h as well.

13 years ago* Makefile.in (check): Just give a message if no test/ directory.
Glenn Morris [Tue, 24 May 2011 20:09:08 +0000 (16:09 -0400)]
* Makefile.in (check): Just give a message if no test/ directory.

13 years ago* configure.in: Avoid using variables inside AC_CONFIG_FILES.
Glenn Morris [Tue, 24 May 2011 19:12:58 +0000 (15:12 -0400)]
* configure.in: Avoid using variables inside AC_CONFIG_FILES.

13 years ago* lisp/play/5x5.el (5x5-new-game, 5x5-randomize):
Vincent Belaïche [Tue, 24 May 2011 18:22:09 +0000 (15:22 -0300)]
* lisp/play/5x5.el (5x5-new-game, 5x5-randomize):
Reset 5x5-solver-output to nil when a new grid is cast.
(5x5-log-init, 5x5-log): Use defsubst instead of defmacro to shunt
these debugging traces, as defmacro breaks the compiled code.

13 years ago* lisp/isearch.el (isearch-range-invisible): Use invisible-p.
Dmitry Kurochkin [Tue, 24 May 2011 18:15:07 +0000 (15:15 -0300)]
* lisp/isearch.el (isearch-range-invisible): Use invisible-p.

Fixes: debbugs:8721
13 years agoAuto-commit of generated files.
Glenn Morris [Tue, 24 May 2011 17:24:15 +0000 (13:24 -0400)]
Auto-commit of generated files.

13 years agoReimplement trunk 2011-05-24T08:02:58Z!rgm@gnu.org in a way visible to automake.
Glenn Morris [Tue, 24 May 2011 17:23:15 +0000 (13:23 -0400)]
Reimplement trunk 2011-05-24T08:02:58Z!rgm@gnu.org in a way visible to automake.

* configure.in (OPT_MAKEFILES_IN): Remove.
(SUBDIR_MAKEFILES): New variable, passed to AC_CONFIG_FILES.
(SUBDIR_MAKEFILES_IN): New output variable.
* Makefile.in (OPT_MAKEFILES_IN): Remove.
(SUBDIR_MAKEFILES_IN): Let configure set it.

13 years agoAuto-commit of generated files.
Glenn Morris [Tue, 24 May 2011 16:31:25 +0000 (12:31 -0400)]
Auto-commit of generated files.

13 years agoRevert 2011-05-24T08:02:58Z!rgm@gnu.org, for now at least.
Glenn Morris [Tue, 24 May 2011 16:30:13 +0000 (12:30 -0400)]
Revert 2011-05-24T08:02:58Z!rgm@gnu.org, for now at least.
Some automakes don't seem to like it (?).

13 years agoMention function `sha1' and the removal of sha1.el in NEWS
Leo Liu [Tue, 24 May 2011 14:22:44 +0000 (22:22 +0800)]
Mention function `sha1' and the removal of sha1.el in NEWS

13 years agognus-art.el (gnus-mime-delete-part): Fix mm-handle-filename usage.
Katsumi Yamaoka [Tue, 24 May 2011 09:46:18 +0000 (09:46 +0000)]
gnus-art.el (gnus-mime-delete-part): Fix mm-handle-filename usage.

13 years agoImplement primitive `sha1' and remove sha1.el
Leo Liu [Tue, 24 May 2011 08:22:58 +0000 (16:22 +0800)]
Implement primitive `sha1' and remove sha1.el

13 years agoRemove dead code in configure.in.
Glenn Morris [Tue, 24 May 2011 08:16:58 +0000 (01:16 -0700)]
Remove dead code in configure.in.

* configure.in: Remove test for already configured source directory.
AM_INIT_AUTOMAKE has already done a more stringent test.  (Bug#953)

13 years agoAdd crypto/sha1 module from gnulib
Leo Liu [Tue, 24 May 2011 08:12:52 +0000 (16:12 +0800)]
Add crypto/sha1 module from gnulib

13 years ago* Makefile.in (TAGS, tags, check): Pass MFLAGS to sub-makes.
Glenn Morris [Tue, 24 May 2011 08:04:27 +0000 (01:04 -0700)]
* Makefile.in (TAGS, tags, check): Pass MFLAGS to sub-makes.

13 years agoDefine the list of subdir Makefiles only in configure.in.
Glenn Morris [Tue, 24 May 2011 08:02:58 +0000 (01:02 -0700)]
Define the list of subdir Makefiles only in configure.in.

* configure.in (OPT_MAKEFILES_IN): Remove.
(SUBDIR_MAKEFILES): New variable, passed to AC_CONFIG_FILES.
(SUBDIR_MAKEFILES_IN): New output variable.
* Makefile.in (OPT_MAKEFILES_IN): Remove.
(SUBDIR_MAKEFILES_IN): Let configure set it.

13 years ago* dbusbind.c (xd_invalid_serial): Remove. (Bug#8722)
Paul Eggert [Tue, 24 May 2011 07:41:16 +0000 (00:41 -0700)]
* dbusbind.c (xd_invalid_serial): Remove. (Bug#8722)

13 years agoAuto-commit of generated files.
Glenn Morris [Tue, 24 May 2011 07:20:51 +0000 (03:20 -0400)]
Auto-commit of generated files.

13 years agoFix previous Makefile change.
Glenn Morris [Tue, 24 May 2011 07:06:44 +0000 (00:06 -0700)]
Fix previous Makefile change.

* configure.in (OPT_MAKEFILES_IN): Use full path.
* Makefile.in (SUBDIR_MAKEFILES_IN): Use full path.
(SUBDIR_MAKEFILES): Use relative path.

13 years agoAdd Bug#.
Paul Eggert [Tue, 24 May 2011 05:40:56 +0000 (22:40 -0700)]
Add Bug#.

13 years ago* dbusbind.c: Serial number integer overflow fixes.
Paul Eggert [Tue, 24 May 2011 05:16:14 +0000 (22:16 -0700)]
* dbusbind.c: Serial number integer overflow fixes.

(CHECK_DBUS_SERIAL_GET_SERIAL): New macro.
(xd_invalid_serial): New static function.
(Fdbus_call_method_asynchronously, xd_read_message_1): Use a float
to hold a serial number that is too large for a fixnum.
(Fdbus_method_return_internal, Fdbus_method_error_internal):
Check for serial numbers out of range.  Decode any serial number
that was so large that it became a float.

13 years agoAuto-commit of generated files.
Glenn Morris [Tue, 24 May 2011 04:03:44 +0000 (00:03 -0400)]
Auto-commit of generated files.

13 years agoRestore test/ to its non-distributed state (bug#8107)
Glenn Morris [Tue, 24 May 2011 04:00:56 +0000 (21:00 -0700)]
Restore test/ to its non-distributed state (bug#8107)

* make-dist: Don't distribute test/.
* configure.in (OPT_MAKEFILES_IN): New output variable.
(AC_CONFIG_FILES): Conditionally include test/automated/Makefile.
* Makefile.in (OPT_MAKEFILES_IN): New, set by configure.
(SUBDIR_MAKEFILES_IN): Use $OPT_MAKEFILES_IN.
(check): Give an explicit error if test/ is not present.

13 years agoMerge from emacs-23; up to 2010-06-11T21:26:13Z!lekktu@gmail.com.
Glenn Morris [Tue, 24 May 2011 03:54:18 +0000 (20:54 -0700)]
Merge from emacs-23; up to 2010-06-11T21:26:13Z!lekktu@gmail.com.

13 years ago* lib-src/Makefile.in (update-game-score${EXEEXT}): Use a single rule.
Glenn Morris [Tue, 24 May 2011 03:43:17 +0000 (20:43 -0700)]
* lib-src/Makefile.in (update-game-score${EXEEXT}): Use a single rule.

13 years agoEliminate some duplication in top-level Makefile.in.
Glenn Morris [Tue, 24 May 2011 03:40:14 +0000 (20:40 -0700)]
Eliminate some duplication in top-level Makefile.in.

* Makefile.in (SUBDIR_MAKEFILES_IN): New variable.
(SUBDIR_MAKEFILES): Derive from $SUBDIR_MAKEFILES_IN.
(Makefile): Use $SUBDIR_MAKEFILES_IN.

13 years ago* lisp/progmodes/python.el (brm-menu): Declare.
Glenn Morris [Tue, 24 May 2011 03:38:35 +0000 (20:38 -0700)]
* lisp/progmodes/python.el (brm-menu): Declare.

13 years ago* lisp/emulation/viper.el (viper-set-hooks): Declare.
Glenn Morris [Tue, 24 May 2011 03:37:31 +0000 (20:37 -0700)]
* lisp/emulation/viper.el (viper-set-hooks): Declare.

13 years agoSmall cleanup of recent 5x5.el changes.
Glenn Morris [Tue, 24 May 2011 03:36:06 +0000 (20:36 -0700)]
Small cleanup of recent 5x5.el changes.

* lisp/play/5x5.el (5x5-log-init, 5x5-log): Evaluate when compiling.
(5x5-log-init, 5x5-log, 5x5-solver): Doc fixes.
(math-map-vec, math-sub, math-mul, math-make-intv, math-reduce-vec)
(math-format-number, math-pow, calcFunc-arrange, calcFunc-cvec)
(calcFunc-diag, calcFunc-trn, calcFunc-inv, calcFunc-mrow)
(calcFunc-mcol, calcFunc-vconcat, calcFunc-index): Declare.

13 years agoAdd an :exit-function for completion-at-point.
Stefan Monnier [Tue, 24 May 2011 02:45:50 +0000 (23:45 -0300)]
Add an :exit-function for completion-at-point.
* lisp/minibuffer.el (completion--done): New fun.
(completion--do-completion): Use it.  New arg `expect-exact'.
(minibuffer-complete, minibuffer-complete-word): Don't output message,
since completion--do-completion does it for us now.
(minibuffer-force-complete): Use completion--done and
completion--replace.  Handle sole-completion case with more care.
(minibuffer-complete-and-exit): Use new `expect-exact' arg.
(completion-extra-properties): New var.
(completion-annotate-function): Make obsolete.
(minibuffer-completion-help): Adjust accordingly.
Use completion-list-insert-choice-function.
(completion-at-point, completion-help-at-point):
Bind completion-extra-properties.
(completion-pcm-word-delimiters): Add | (for uniquify, for example).
* lisp/simple.el (completion-list-insert-choice-function): New var.
(completion-setup-function): Preserve it.
(choose-completion): Pay attention to it, shuffle the code a bit.
(choose-completion-string): New arg `insert-function'.

* lisp/textmodes/bibtex.el: Convert to lexical binding.
(bibtex-mode-map): Use completion-at-point.
(bibtex-mode): Use define-derived-mode&completion-at-point-functions.
(bibtex-completion-at-point-function): New fun, from bibtex-complete.
(bibtex-complete): Define as obsolete alias.
(bibtex-complete-internal): Remove.
(bibtex-format-entry): Remove unused sub-group in regexp.
* lisp/shell.el (shell--command-completion-data)
(shell-environment-variable-completion):
* lisp/pcomplete.el (pcomplete-completions-at-point):
* lisp/comint.el (comint--complete-file-name-data): Use :exit-function
instead of completion-table-with-terminator so it also works for
choose-completion.

13 years ago* dbusbind.c (xd_read_message_1): Don't assume dbus_uint32_t can fit in int.
Paul Eggert [Tue, 24 May 2011 02:06:12 +0000 (19:06 -0700)]
* dbusbind.c (xd_read_message_1): Don't assume dbus_uint32_t can fit in int.

13 years ago* dbusbind.c: Use XFASTINT rather than XUINT, and check for nonneg.
Paul Eggert [Tue, 24 May 2011 01:59:17 +0000 (18:59 -0700)]
* dbusbind.c: Use XFASTINT rather than XUINT, and check for nonneg.

(Fdbus_call_method, Fdbus_call_method_asynchronously):
Use XFASTINT rather than XUINT when numbers are nonnegative.
(xd_append_arg, Fdbus_method_return_internal):
(Fdbus_method_error_internal): Likewise.  Also, for unsigned
arguments, check that Lisp number is nonnegative, rather than
silently wrapping negative numbers around.

13 years ago* data.c (arith_driver, Flsh): Avoid unnecessary casts to EMACS_UINT.
Paul Eggert [Tue, 24 May 2011 01:20:04 +0000 (18:20 -0700)]
* data.c (arith_driver, Flsh): Avoid unnecessary casts to EMACS_UINT.

13 years ago* lib/verify.h: Merge from gnulib.
Paul Eggert [Mon, 23 May 2011 21:53:22 +0000 (14:53 -0700)]
* lib/verify.h: Merge from gnulib.

13 years agoDon't quote lambda expressions with `quote'.
Stefan Monnier [Mon, 23 May 2011 17:57:17 +0000 (14:57 -0300)]
Don't quote lambda expressions with `quote'.

13 years ago* lisp/vc/smerge-mode.el (smerge-refine-subst): Don't deactivate the mark.
Stefan Monnier [Mon, 23 May 2011 17:03:03 +0000 (14:03 -0300)]
* lisp/vc/smerge-mode.el (smerge-refine-subst): Don't deactivate the mark.

Fixes: debbugs:8710
13 years ago* lisp/emacs-lisp/lisp.el (up-list): Fix forward movement.
Stefan Monnier [Mon, 23 May 2011 16:40:16 +0000 (13:40 -0300)]
* lisp/emacs-lisp/lisp.el (up-list): Fix forward movement.

Fixes: debbugs:8708
13 years ago* allout.el (allout-inhibit-auto-fill-on-headline): Create new
Ken Manheimer [Mon, 23 May 2011 15:03:04 +0000 (11:03 -0400)]
* allout.el (allout-inhibit-auto-fill-on-headline): Create new
customization variable and implement: If non-nil, auto-fill will be
inhibited while on topic's header line.

13 years ago* lisp/play/5x5.el: I/ Add an arithmetic solver to suggest positions to
Vincent Belaïche [Mon, 23 May 2011 14:46:41 +0000 (11:46 -0300)]
* lisp/play/5x5.el: I/ Add an arithmetic solver to suggest positions to
click on. II/ Make 5x5 multisession. III/ Ensure that random grids
always have a solution in grid size = 5 cases.
(5x5-mode-map): Add keybinding to function `5x5-solve-suggest'.
(5x5-solver-output, 5x5-log-buffer): New vars.
(5x5-grid, 5x5-x-pos, 5x5-y-pos, 5x5-moves, 5x5-cracking):
Make these variables buffer local to achieve 5x5 multi-session-ness.
(5x5): Set 5x5-grid-size only if SIZE is non-negative.
(5x5-grid-to-vec, 5x5-vec-to-grid, 5x5-log-init, 5x5-log, 5x5-solver)
(5x5-solve-suggest): New funs.
(5x5-randomize): Use 5x5-make-move instead of 5x5-flip-cell to
randomize a grid so that we ensure that there is always a solution.
(5x5-make-random-grid): Allow other movement than flipping.

13 years ago* lisp/emacs-lisp/advice.el (ad-read-advised-function):
Kevin Ryde [Mon, 23 May 2011 14:38:28 +0000 (11:38 -0300)]
* lisp/emacs-lisp/advice.el (ad-read-advised-function):
Use `function-called-at-point' as the default default, if it has
advice and passes PREDICATE.

13 years ago* ccl.c (ccl_driver): Redo slightly to avoid the need for 'unsigned'.
Paul Eggert [Mon, 23 May 2011 06:58:38 +0000 (23:58 -0700)]
* ccl.c (ccl_driver): Redo slightly to avoid the need for 'unsigned'.

13 years agoAdd bug#.
Paul Eggert [Mon, 23 May 2011 06:54:47 +0000 (23:54 -0700)]
Add bug#.

13 years agoccl: add integer overflow checks
Paul Eggert [Mon, 23 May 2011 06:50:03 +0000 (23:50 -0700)]
ccl: add integer overflow checks

* ccl.c (CCL_CODE_MAX, GET_CCL_RANGE, GET_CCL_CODE, GET_CCL_INT):
(IN_INT_RANGE): New macros.
(ccl_driver): Use them to check for integer overflow when
decoding a CCL program.  Many of the new checks are whether XINT (x)
fits in int; it doesn't always, on 64-bit hosts.  The new version
doesn't catch all possible integer overflows, but it's an
improvement.

13 years agoRFC2047-encode header of outgoing mails.
Kenichi Handa [Mon, 23 May 2011 04:44:29 +0000 (13:44 +0900)]
RFC2047-encode header of outgoing mails.

13 years ago* lisp/emacs-lisp/bytecomp.el (byte-compile-function-form): Only call
Stefan Monnier [Mon, 23 May 2011 01:15:17 +0000 (22:15 -0300)]
* lisp/emacs-lisp/bytecomp.el (byte-compile-function-form): Only call
byte-compile-lambda if it's actually a lambda.

13 years ago* lisp/emacs-lisp/eieio.el (eieio-defgeneric-form-primary-only-one):
Stefan Monnier [Mon, 23 May 2011 00:39:25 +0000 (21:39 -0300)]
* lisp/emacs-lisp/eieio.el (eieio-defgeneric-form-primary-only-one):
Fix function quoting.  Use backquote better.

13 years ago* alloc.c (make_event_array): Use XINT, not XUINT.
Paul Eggert [Mon, 23 May 2011 00:31:35 +0000 (17:31 -0700)]
* alloc.c (make_event_array): Use XINT, not XUINT.

There's no need for unsigned here.

13 years ago* mem-limits.h (EXCEEDS_LISP_PTR) [!USE_LSB_TAG]: EMACS_UINT -> uintptr_t
Paul Eggert [Mon, 23 May 2011 00:22:43 +0000 (17:22 -0700)]
* mem-limits.h (EXCEEDS_LISP_PTR) [!USE_LSB_TAG]: EMACS_UINT -> uintptr_t

This follows up to the 2011-05-06 change that substituted uintptr_t
for EMACS_INT.  This case wasn't caught back then.

13 years agoMerge from trunk.
Paul Eggert [Mon, 23 May 2011 00:09:23 +0000 (17:09 -0700)]
Merge from trunk.

13 years ago* gnutls.c: Remove unused macros.
Paul Eggert [Mon, 23 May 2011 00:03:40 +0000 (17:03 -0700)]
* gnutls.c: Remove unused macros.

(fn_gnutls_transport_set_lowat, fn_gnutls_transport_set_pull_function):
(fn_gnutls_transport_set_push_function) [!WINDOWSNT]:
Remove macros that are defined and never used.
Caught by gcc -Wunused-macros (GCC 4.6.0, Fedora 14).

13 years agoRemove var mistakenly introduced in 2011-05-22T19:46:47Z!cyd@stupidchicken.com.
Chong Yidong [Sun, 22 May 2011 21:57:43 +0000 (17:57 -0400)]
Remove var mistakenly introduced in 2011-05-22T19:46:47Z!cyd@stupidchicken.com.

* src/xselect.c (syms_of_xselect): Remove unused symbol SAVE_TARGETS.
(Fx_get_selection_internal): Minor cleanup.
(Fx_own_selection_internal): Rename arguments for consistency with
select.el.

13 years agoMerge from mainline.
Paul Eggert [Sun, 22 May 2011 21:16:24 +0000 (14:16 -0700)]
Merge from mainline.

13 years ago* xselect.c (QSAVE_TARGETS): New static var, to fix build failure.
Paul Eggert [Sun, 22 May 2011 21:12:04 +0000 (14:12 -0700)]
* xselect.c (QSAVE_TARGETS): New static var, to fix build failure.

13 years agoMerge from gnulib.
Paul Eggert [Sun, 22 May 2011 21:02:48 +0000 (14:02 -0700)]
Merge from gnulib.

13 years agoRework Fformat to avoid integer overflow issues.
Paul Eggert [Sun, 22 May 2011 20:27:07 +0000 (13:27 -0700)]
Rework Fformat to avoid integer overflow issues.

* editfns.c: Include <float.h> unconditionally, as it's everywhere
now (part of C89).  Include <verify.h>.
(MAX_10_EXP, CONVERTED_BYTE_SIZE): Remove; no longer needed.
(pWIDE, pWIDElen, signed_wide, unsigned_wide): New defns.
(Fformat): Avoid the prepass trying to compute sizes; it was only
approximate and thus did not catch overflow reliably.  Instead, walk
through the format just once, formatting and computing sizes as we go,
checking for integer overflow at every step, and allocating a larger
buffer as needed.  Keep track separately whether the format is
multibyte.  Keep only the most-recently calculated precision, rather
than them all.  Record whether each argument has been converted to
string.  Use EMACS_INT, not int, for byte and char and arg counts.
Support field widths and precisions larger than INT_MAX.  Avoid
sprintf's undefined behavior with conversion specifications such as %#d
and %.0c.  Fix bug with strchr succeeding on '\0' when looking for
flags.  Fix bug with (format "%c" 256.0).  Avoid integer overflow when
formatting out-of-range floating point numbers with int
formats. (Bug#8668)

13 years agoMake rng-xsd-check-pattern case sensitive (Bug#8516).
Yuanle Song [Sun, 22 May 2011 19:46:47 +0000 (15:46 -0400)]
Make rng-xsd-check-pattern case sensitive (Bug#8516).

* nxml/rng-xsd.el (rng-xsd-check-pattern): Use case-sensitive
matching.

13 years ago* src/xselect.c (syms_of_xselect): Include character.h; use DEFSYM.
Chong Yidong [Sun, 22 May 2011 19:39:54 +0000 (15:39 -0400)]
* src/xselect.c (syms_of_xselect): Include character.h; use DEFSYM.