bpt/emacs.git
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 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 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* 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 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* 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 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.

13 years agoMaked "edited" tag stand out in vc-dir (Bug#8178).
Jari Aalto [Sun, 22 May 2011 19:36:07 +0000 (15:36 -0400)]
Maked "edited" tag stand out in vc-dir (Bug#8178).

* vc/vc-dir.el (vc-default-dir-printer): Give edited tag a
different face.

13 years agoFix diff-changed face definition.
Chong Yidong [Sun, 22 May 2011 19:22:37 +0000 (15:22 -0400)]
Fix diff-changed face definition.

* lisp/vc/diff-mode.el (diff-changed): Don't use terminal specs for
defface (Bug#8144).

13 years agoDoc fixes for mule.texi.
Chong Yidong [Sun, 22 May 2011 19:05:14 +0000 (15:05 -0400)]
Doc fixes for mule.texi.

* mule.texi (Specify Coding, Text Coding, Communication Coding):
(File Name Coding, Terminal Coding): Add command names (Bug#8312).

13 years agoMark last change as tiny.
Chong Yidong [Sun, 22 May 2011 18:47:51 +0000 (14:47 -0400)]
Mark last change as tiny.

13 years agoFix for sc-nested-citation-p in supercite.el.
Sean Neakums [Sun, 22 May 2011 18:46:49 +0000 (14:46 -0400)]
Fix for sc-nested-citation-p in supercite.el.

See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=109145

* mail/supercite.el (sc-default-cite-frame): Handle
sc-nested-citation-p when sc-cite-blank-lines-p is non-nil.

13 years ago* lisp/emacs-lisp/macroexp.el (macroexpand-all-1): Convert ' to #' for
Stefan Monnier [Sun, 22 May 2011 18:22:30 +0000 (15:22 -0300)]
* lisp/emacs-lisp/macroexp.el (macroexpand-all-1): Convert ' to #' for
funcall as well.  Warn when performing those conversions.
* lisp/emacs-lisp/bytecomp.el (byte-compile-form): Fix error report.

Fixes: debbugs:8712

13 years ago* lisp/progmodes/grep.el (grep-mode): Fix it for good!
Stefan Monnier [Sun, 22 May 2011 17:19:24 +0000 (14:19 -0300)]
* lisp/progmodes/grep.el (grep-mode): Fix it for good!

Fixes: debbugs:8684

13 years agoFurther tweak previous files.el change.
Glenn Morris [Sun, 22 May 2011 01:18:49 +0000 (18:18 -0700)]
Further tweak previous files.el change.

* lisp/files.el (hack-local-variables): In the MODE-ONLY case, try to
ignore minor modes.

13 years agoTweak previous files.el change.
Glenn Morris [Sun, 22 May 2011 00:34:41 +0000 (17:34 -0700)]
Tweak previous files.el change.

* lisp/files.el (hack-local-variables-prop-line)
(hack-local-variables): In the MODE-ONLY case, return the full mode
symbol, including "-mode".

13 years agoMore small hack-local-variables tweaks for MODE-ONLY case.
Glenn Morris [Sun, 22 May 2011 00:04:49 +0000 (17:04 -0700)]
More small hack-local-variables tweaks for MODE-ONLY case.

* lisp/files.el (hack-local-variables-prop-line): Small simplifications.
(hack-local-variables, hack-local-variables-prop-line):
If MODE-ONLY, return the mode, rather than just `t'.

13 years ago* lisp/progmodes/grep.el (grep-mode): Fix last change.
Stefan Monnier [Sat, 21 May 2011 23:18:22 +0000 (20:18 -0300)]
* lisp/progmodes/grep.el (grep-mode): Fix last change.

Fixes: debbugs:8684

13 years agoSmall files.el hack-local changes for mode-only case.
Glenn Morris [Sat, 21 May 2011 22:33:12 +0000 (15:33 -0700)]
Small files.el hack-local changes for mode-only case.

* lisp/files.el (hack-local-variables-prop-line, hack-local-variables):
If only interested in the mode, don't bother doing the other stuff.

13 years ago* admin/bzrmerge.el (bzrmerge-resolve): Suppress prompts about file-locals.
Glenn Morris [Sat, 21 May 2011 21:19:30 +0000 (14:19 -0700)]
* admin/bzrmerge.el (bzrmerge-resolve): Suppress prompts about file-locals.

13 years agoAuto-commit of loaddefs files.
Glenn Morris [Sat, 21 May 2011 10:19:46 +0000 (06:19 -0400)]
Auto-commit of loaddefs files.

13 years ago* Makefile.in (AUTOMAKE_INPUTS): Add $(srcdir)/lib/gnulib.mk.
Andreas Schwab [Sat, 21 May 2011 09:53:32 +0000 (11:53 +0200)]
* Makefile.in (AUTOMAKE_INPUTS): Add $(srcdir)/lib/gnulib.mk.

13 years ago* lib-src/etags.c: Fix typo in previous comment change.
Glenn Morris [Sat, 21 May 2011 02:27:00 +0000 (19:27 -0700)]
* lib-src/etags.c: Fix typo in previous comment change.

13 years agoMerge from emacs-23; up to 2010-06-11T18:51:00Z!juri@jurta.org.
Glenn Morris [Sat, 21 May 2011 02:15:34 +0000 (19:15 -0700)]
Merge from emacs-23; up to 2010-06-11T18:51:00Z!juri@jurta.org.

13 years agoimage-mode fix for bug#8567.
Glenn Morris [Sat, 21 May 2011 02:09:49 +0000 (19:09 -0700)]
image-mode fix for bug#8567.

* image-mode.el (image-after-revert-hook):
Redraw all frames on which the image is visible.

13 years ago* lib-src/etags.c: Comment.
Glenn Morris [Sat, 21 May 2011 02:08:21 +0000 (19:08 -0700)]
* lib-src/etags.c: Comment.

13 years ago* dired-aux.el (dired-touch-initial): Just use current-time. (Bug#6887)
Glenn Morris [Sat, 21 May 2011 02:07:25 +0000 (19:07 -0700)]
* dired-aux.el (dired-touch-initial): Just use current-time.  (Bug#6887)

13 years ago* wid-edit.el (widget-checklist-match-inline): Fix 2011-04-19 change. (Bug#8649)
Glenn Morris [Sat, 21 May 2011 02:06:11 +0000 (19:06 -0700)]
* wid-edit.el (widget-checklist-match-inline): Fix 2011-04-19 change.  (Bug#8649)

13 years ago* src/Makefile.in (SOME_MACHINE_OBJECTS): Add some more files.
Glenn Morris [Sat, 21 May 2011 02:04:48 +0000 (19:04 -0700)]
* src/Makefile.in (SOME_MACHINE_OBJECTS): Add some more files.

13 years ago* src/Makefile.in ($(etc)/DOC): Make second command line even shorter.
Glenn Morris [Sat, 21 May 2011 02:02:42 +0000 (19:02 -0700)]
* src/Makefile.in ($(etc)/DOC): Make second command line even shorter.

13 years ago* dispnew.c (scrolling_window): Don't exclude the case that the
YAMAMOTO Mitsuharu [Sat, 21 May 2011 01:56:45 +0000 (10:56 +0900)]
* dispnew.c (scrolling_window): Don't exclude the case that the
last enabled row in the desired matrix touches the bottom boundary.

13 years ago* lisp/emacs-lisp/checkdoc.el (checkdoc-sentencespace-region-engine):
Stefan Monnier [Fri, 20 May 2011 18:20:12 +0000 (15:20 -0300)]
* lisp/emacs-lisp/checkdoc.el (checkdoc-sentencespace-region-engine):
Also allow singlespace after single-letter capitals followed by a dot.