bpt/emacs.git
13 years agoMerge from mainline.
Paul Eggert [Mon, 17 Jan 2011 19:24:36 +0000 (11:24 -0800)]
Merge from mainline.

13 years agoMakefile.in: tidy up the building of lib
Paul Eggert [Mon, 17 Jan 2011 19:20:37 +0000 (11:20 -0800)]
Makefile.in: tidy up the building of lib

* Makefile.in (am--refresh): Mark as .PHONY.
(top_maintainer_clean): Don't remove lib/gnulib.mk m4/gnulib-cache.m4,
as they're not rebuilt unless you do a "make sync-from-gnulib"
and the former is needed for "configure".
(maintainer-clean): Don't recurse into lib, as "make bootstrap-clean"
has already removed lib/Makefile.

13 years agoMerge from mainline.
Paul Eggert [Mon, 17 Jan 2011 19:01:01 +0000 (11:01 -0800)]
Merge from mainline.

13 years ago* xfns.c (x_real_positions): Fix signedness of local var 'ign'.
Paul Eggert [Mon, 17 Jan 2011 07:45:28 +0000 (23:45 -0800)]
* xfns.c (x_real_positions): Fix signedness of local var 'ign'.

XGetGeometry wants unsigned int *, not int *, for its last 4 args,
so change the type of 'ign' to unsigned int from int.

13 years ago* regex.c (analyse_first): Remove unreachable 'continue' statement.
Paul Eggert [Mon, 17 Jan 2011 07:34:14 +0000 (23:34 -0800)]
* regex.c (analyse_first): Remove unreachable 'continue' statement.

13 years ago* xterm.h (struct x_display_info): Remove stray semicolon.
Paul Eggert [Mon, 17 Jan 2011 07:27:25 +0000 (23:27 -0800)]
* xterm.h (struct x_display_info): Remove stray semicolon.

The extra semicolon didn't conform to the C standard.
Problem reported by Sun cc.

13 years ago* lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
Paul Eggert [Mon, 17 Jan 2011 07:16:08 +0000 (23:16 -0800)]
* lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.

These changes make compilation easier to follow with Sun cc.
(ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
EMACS_INT values without provoking overflow diagnostics.
(PSEUDOVECTOR_FLAG): Likewise, for consistency.
(XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
diagnostic with signed left shift.

13 years ago* fileio.c (make_temp_name): Remove unreachable code.
Paul Eggert [Mon, 17 Jan 2011 07:07:30 +0000 (23:07 -0800)]
* fileio.c (make_temp_name): Remove unreachable code.

13 years ago* fontset.c (free_realized_fontset): Mark unreachable code with if (0).
Paul Eggert [Mon, 17 Jan 2011 03:05:08 +0000 (19:05 -0800)]
* fontset.c (free_realized_fontset): Mark unreachable code with if (0).

Previously it was marked by preceding it with "return;", but
Sun cc complains about this.

13 years ago* coding.c (decode_coding_emacs_mule): Remove unreachable code.
Paul Eggert [Mon, 17 Jan 2011 02:55:28 +0000 (18:55 -0800)]
* coding.c (decode_coding_emacs_mule): Remove unreachable code.

This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
which fixed Bug#2370.  Caught by Sun cc.

13 years agoSync from gnulib.
Paul Eggert [Mon, 17 Jan 2011 02:35:15 +0000 (18:35 -0800)]
Sync from gnulib.

13 years ago* strokes.el (strokes-read-stroke): Re-fill strokes buffer with
Tassilo Horn [Sun, 16 Jan 2011 20:41:25 +0000 (21:41 +0100)]
* strokes.el (strokes-read-stroke): Re-fill strokes buffer with
spaces if the frame was resized, so that the full visible buffer
serves as canvas for strokes.

13 years agoAdd face definition for header-line.
Tassilo Horn [Sun, 16 Jan 2011 20:02:27 +0000 (21:02 +0100)]
Add face definition for header-line.

13 years ago* lisp/info-xref.el (info-xref-docstrings): Also skip directories.
Glenn Morris [Sun, 16 Jan 2011 02:34:57 +0000 (18:34 -0800)]
* lisp/info-xref.el (info-xref-docstrings): Also skip directories.

13 years agoRefill some copyright headers.
Glenn Morris [Sun, 16 Jan 2011 02:21:30 +0000 (18:21 -0800)]
Refill some copyright headers.

13 years ago* src/xsettings.c: Comment fix.
Glenn Morris [Sun, 16 Jan 2011 02:10:13 +0000 (18:10 -0800)]
* src/xsettings.c: Comment fix.

13 years ago* lisp/info-xref.el (info-xref-docstrings): Replace cl function.
Glenn Morris [Sun, 16 Jan 2011 02:01:34 +0000 (18:01 -0800)]
* lisp/info-xref.el (info-xref-docstrings): Replace cl function.

13 years agoinfo-xref.el Version 3.
Kevin Ryde [Sun, 16 Jan 2011 01:59:33 +0000 (17:59 -0800)]
info-xref.el  Version 3.

* lisp/info-xref.el (info-xref-check, info-xref-check-all): Move
commentary details into docstrings for better visibility.
Use compilation-mode for the results buffer.
(info-xref-output, info-xref-output-error, info-xref-with-output)
(info-xref-filename, info-xref-in-progress):
New internals for this.
(info-xref-check-list, info-xref-check-buffer)
(info-xref-check-all-custom): Use those.
(info-xref-output-buffer): Rename from info-xref-results-buffer.
(info-xref-output-heading): Rename from info-xref-filename-heading.
(info-xref-good, info-xref-bad, info-xref-xfile-alist)
(info-xref-filename-heading): Move to output managing section.
(info-xref-docstrings): New command checking "Info node `(foo)Bar'"
(info-xref-lock-file-p, info-xref-with-file): New helpers for it.
(info-xref-subfile-p): Move to generic section with those two.
(info-xref-check-node): New function split from
info-xref-check-buffer, shared by info-xref-docstrings.
(info-xref-goto-node-p): Move to a checking section with that func.
(info-xref-unavail): New counter.
(info-xref-check-node): Use it.
(info-xref-with-output): Show count of unavailables at end of output.
(info-xref-all-info-files): Exclude ".*" dotfiles.  Ignore broken
symlinks.  Exclude .texi files.  Exclude Emacs backup files.
(info-xref-check-all-custom): Fix quietening viper-mode and
gnus-registry-install -- use setq not let so as not to unbind after load.

Fixes: debbugs:7611

13 years ago* lisp/isearch.el (isearch-abort): Don't quit if search has
Juri Linkov [Sun, 16 Jan 2011 01:04:22 +0000 (01:04 +0000)]
* lisp/isearch.el (isearch-abort): Don't quit if search has
an incomplete regexp (isearch-error is non-nil).  (Bug#7534)

13 years ago* Makefile.in (epaths-force): No more arch-tag to edit.
Glenn Morris [Sat, 15 Jan 2011 23:23:57 +0000 (15:23 -0800)]
* Makefile.in (epaths-force): No more arch-tag to edit.

13 years agoNuke arch-tags.
Glenn Morris [Sat, 15 Jan 2011 23:16:57 +0000 (15:16 -0800)]
Nuke arch-tags.

13 years ago* admin/charsets/cp51932.awk: No longer print arch-tag.
Glenn Morris [Sat, 15 Jan 2011 22:46:51 +0000 (14:46 -0800)]
* admin/charsets/cp51932.awk: No longer print arch-tag.

13 years ago* admin/charsets/eucjp-ms.awk: No longer print arch-tag.
Glenn Morris [Sat, 15 Jan 2011 22:44:52 +0000 (14:44 -0800)]
* admin/charsets/eucjp-ms.awk: No longer print arch-tag.

13 years agoAdd 2011 to remaining FSF/AIST copyright years.
Glenn Morris [Sat, 15 Jan 2011 22:10:37 +0000 (14:10 -0800)]
Add 2011 to remaining FSF/AIST copyright years.

13 years ago* admin/notes/bzr: More on previous.
Glenn Morris [Sat, 15 Jan 2011 21:51:36 +0000 (13:51 -0800)]
* admin/notes/bzr: More on previous.

13 years ago* admin/notes/bzr: Add an idiot's guide to merging between branches.
Glenn Morris [Sat, 15 Jan 2011 21:47:46 +0000 (13:47 -0800)]
* admin/notes/bzr: Add an idiot's guide to merging between branches.

13 years agobzrmerge.el trivia.
Glenn Morris [Sat, 15 Jan 2011 20:42:23 +0000 (12:42 -0800)]
bzrmerge.el trivia.
* admin/bzrmerge.el (bzrmerge-missing): Add another skip indicator.
(bzrmerge-resolve): Also ignore cl-loaddefs.el.

13 years agoMerge from emacs-23 branch, up to 2010-05-20T21:33:58Z!juri@jurta.org.
Glenn Morris [Sat, 15 Jan 2011 20:38:27 +0000 (12:38 -0800)]
Merge from emacs-23 branch, up to 2010-05-20T21:33:58Z!juri@jurta.org.
Note:
emacs-23 2010-05-20T01:32:08Z!lekktu@gmail.com is rendered unnecessary by pre-existing 2010-05-20
trunk change.

13 years agoMerge from emacs-23 branch.
Glenn Morris [Sat, 15 Jan 2011 20:03:38 +0000 (12:03 -0800)]
Merge from emacs-23 branch.

13 years agoBump version to 23.2.92.
Chong Yidong [Sat, 15 Jan 2011 03:50:47 +0000 (22:50 -0500)]
Bump version to 23.2.92.
Regenerate AUTHORS, configure, and ldefs-boot.el.

13 years ago* configure: Bump min libxml2 version to 2.6.17 (Bug#7603).
Chong Yidong [Sat, 15 Jan 2011 03:21:48 +0000 (22:21 -0500)]
* configure: Bump min libxml2 version to 2.6.17 (Bug#7603).

13 years ago* building.texi (Compilation): Improve instructions for running two compilations...
Chong Yidong [Sat, 15 Jan 2011 03:10:38 +0000 (22:10 -0500)]
* building.texi (Compilation): Improve instructions for running two compilations (Bug#7573).

13 years agoAvoid crash in Fselect_frame due to null selected_window (Bug#7728).
Martin Rudalics [Sat, 15 Jan 2011 02:55:58 +0000 (21:55 -0500)]
Avoid crash in Fselect_frame due to null selected_window (Bug#7728).

* window.c (inhibit_point_swap): New variable.
(Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
point this time.
(Fset_window_configuration): Set inhibit_point_swap to 1 instead
of setting selected_window to nil (Bug#7728).

13 years agoMake last-resort backup file in .emacs.d (Bug#6953).
Mark Diekhans [Sat, 15 Jan 2011 02:32:19 +0000 (21:32 -0500)]
Make last-resort backup file in .emacs.d (Bug#6953).

* lisp/files.el (backup-buffer): Make last-resort backup file in
.emacs.d.

* lisp/subr.el (locate-user-emacs-file): If .emacs.d does not exist,
make it with permission 700.

* doc/emacs/files.texi (Backup Names): Document the new location of the
last-resort backup file.

13 years ago[Gnus] Update copyright years.
Katsumi Yamaoka [Sat, 15 Jan 2011 00:35:35 +0000 (00:35 +0000)]
[Gnus] Update copyright years.

13 years agoMerge from mainline.
Paul Eggert [Fri, 14 Jan 2011 21:12:57 +0000 (13:12 -0800)]
Merge from mainline.

13 years ago* lisp/hexl.el (hexl-mode-old-*): Remove.
Stefan Monnier [Fri, 14 Jan 2011 19:55:35 +0000 (14:55 -0500)]
* lisp/hexl.el (hexl-mode-old-*): Remove.
(hexl-mode--old-var-vals): New var to replace them.
(hexl-mode--minor-mode-p, hexl-mode--setq-local): New funs.
(hexl-mode, hexl-follow-line, hexl-activate-ruler):
Use them to set local vars.
(hexl-mode-exit): Use hexl-mode--old-var-vals to restore state.
(hexl-backward-short, hexl-backward-word, hexl-scroll-down)
(hexl-scroll-up, hexl-end-of-1k-page, hexl-end-of-512b-page): Simplify.

Fixes: debbugs:7846

13 years agoMerge: make-dist distributes test/ files too.
Paul Eggert [Fri, 14 Jan 2011 18:58:35 +0000 (10:58 -0800)]
Merge: make-dist distributes test/ files too.

13 years ago* make-dist: Distribute test/ files too.
Paul Eggert [Fri, 14 Jan 2011 18:56:58 +0000 (10:56 -0800)]
* make-dist: Distribute test/ files too.

Distribute every file under test/ that is under version control,
using patterns like *.el to capture files that are added later.
Without this change, "configure" would fail, because it would
attempt to build from a Makefile.in that was not distributed.

13 years agoMerge from mainline.
Paul Eggert [Fri, 14 Jan 2011 18:14:17 +0000 (10:14 -0800)]
Merge from mainline.

13 years ago* lisp/vc/smerge-mode.el: Resolve comment conflicts more aggressively.
Stefan Monnier [Fri, 14 Jan 2011 18:10:15 +0000 (13:10 -0500)]
* lisp/vc/smerge-mode.el: Resolve comment conflicts more aggressively.
(smerge-resolve--normalize-re): New var.
(smerge-resolve--extract-comment, smerge-resolve--normalize): New funs.
(smerge-resolve): Use them.
* lisp/newcomment.el (comment-only-p): New function.
(comment-or-uncomment-region): Use it.

13 years agoUpdate md5 checksums
Stefan Monnier [Fri, 14 Jan 2011 18:06:07 +0000 (13:06 -0500)]
Update md5 checksums

13 years agoChangeLog merge fixes.
Glenn Morris [Fri, 14 Jan 2011 17:42:40 +0000 (09:42 -0800)]
ChangeLog merge fixes.

13 years agoMerge from emacs-23
Stefan Monnier [Fri, 14 Jan 2011 17:18:41 +0000 (12:18 -0500)]
Merge from emacs-23

13 years ago* emulation/cua-base.el (cua--init-keymaps):
Kim F. Storm [Fri, 14 Jan 2011 15:06:17 +0000 (16:06 +0100)]
* emulation/cua-base.el (cua--init-keymaps):
Remap exchange-point-and-mark in cua-global-keymap.

13 years ago* progmodes/sh-script.el (sh-other-keywords): Add ZSH's foreach
Tassilo Horn [Fri, 14 Jan 2011 12:17:24 +0000 (13:17 +0100)]
* progmodes/sh-script.el (sh-other-keywords): Add ZSH's foreach
loop keyword.

13 years ago* net/rcirc.el: Adding maintainer info and e-mail addresses.
Deniz Dogan [Fri, 14 Jan 2011 11:25:56 +0000 (12:25 +0100)]
* net/rcirc.el: Adding maintainer info and e-mail addresses.

13 years agoMerge from mainline.
Paul Eggert [Fri, 14 Jan 2011 05:07:26 +0000 (21:07 -0800)]
Merge from mainline.

13 years agomerge emacs-23
Kenichi Handa [Fri, 14 Jan 2011 04:08:30 +0000 (13:08 +0900)]
merge emacs-23

13 years agoFix setting of buffer-file-coding-system of RMAIL buffer.
Kenichi Handa [Fri, 14 Jan 2011 04:04:10 +0000 (13:04 +0900)]
Fix setting of buffer-file-coding-system of RMAIL buffer.

13 years ago* admin/bzrmerge.el: Require cl when compiling.
Glenn Morris [Fri, 14 Jan 2011 02:44:25 +0000 (18:44 -0800)]
* admin/bzrmerge.el: Require cl when compiling.
(bzrmerge-merges): Doc fix.

13 years ago* lisp/emacs-lisp/easymenu.el: Add :enable, and obey :label. Require CL.
Stefan Monnier [Fri, 14 Jan 2011 02:12:43 +0000 (21:12 -0500)]
* lisp/emacs-lisp/easymenu.el: Add :enable, and obey :label.  Require CL.
(easy-menu-create-menu, easy-menu-convert-item-1):
Use :label rather than nil for labels.  Use `case'.
Add :enable as alias for :active.
(easy-menu-binding): Obey :label.

Fixes: debbugs:7754

13 years agoMerge from mainline.
Paul Eggert [Fri, 14 Jan 2011 00:33:24 +0000 (16:33 -0800)]
Merge from mainline.

13 years agoUse run-mode-hooks for major mode hooks.
Stefan Monnier [Thu, 13 Jan 2011 23:14:30 +0000 (18:14 -0500)]
Use run-mode-hooks for major mode hooks.
* lisp/textmodes/reftex-toc.el (reftex-toc-mode-map):
Rename from reftex-toc-map.
(reftex-toc-mode): Use define-derived-mode.
* lisp/textmodes/reftex-sel.el (reftex-select-shared-map): New map.
(reftex-select-label-mode-map, reftex-select-bib-mode-map):
Rename from reftex-select-(label|bib)-map.  Move init into declaration.
(reftex-select-label-mode, reftex-select-bib-mode):
Use define-derived-mode.
* lisp/textmodes/reftex-index.el (reftex-index-phrases-mode-map)
(reftex-index-mode-map): Rename from reftex-index(-phrases)-map.
Move init into delcaration.
(reftex-index-mode, reftex-index-phrases-mode):
Use define-derived-mode.
* lisp/speedbar.el (speedbar-mode-syntax-table): Renaqme from
speedbar-syntax-table.  Move init into declaration.
(speedbar-mode-map): Rename from speedbar-key-map.
Move init into declaration.
(speedbar-file-key-map): Move init into declaration.
(speedbar-mode): Use define-derived-mode.
* lisp/recentf.el (recentf-mode): Don't run hook (or message) redundantly.
* lisp/net/rcirc.el (rcirc-mode): Use run-mode-hooks.
* lisp/emacs-lisp/chart.el (chart-mode-map): Rename from chart-map.
(chart-face-list): Move initialization into declaration.
(chart-mode): Use define-derived-mode.
* lisp/calculator.el (calculator-mode-map): Move init into declaration.
(calculator-mode): Use define-derived-mode.
* lisp/cedet/srecode/srt-mode.el (srecode-template-mode):
Use define-derived-mode.
* lisp/cedet/semantic/symref/list.el (semantic-symref-results-mode):
Use run-mode-hooks.
* lisp/erc/erc.el (erc-mode):
* lisp/erc/erc-dcc.el (erc-dcc-chat-mode): Use define-derived-mode.
* lisp/org/org-remember.el (org-remember-mode):
* lisp/org/org-capture.el (org-capture-mode): Don't run hook redundantly.

Fixes: debbugs:513

13 years ago* lisp/mail/mail-utils.el (mail-strip-quoted-names): Make the regexp code
Stefan Monnier [Thu, 13 Jan 2011 21:48:34 +0000 (16:48 -0500)]
* lisp/mail/mail-utils.el (mail-strip-quoted-names): Make the regexp code
work for nested comments.

13 years ago* test/indent/prolog.prolog: Add tokenizing tests.
Stefan Monnier [Thu, 13 Jan 2011 20:53:06 +0000 (15:53 -0500)]
* test/indent/prolog.prolog: Add tokenizing tests.

13 years ago* lisp/progmodes/prolog.el: Use syntax-propertize. Further code cleanup.
Stefan Monnier [Thu, 13 Jan 2011 20:46:38 +0000 (15:46 -0500)]
* lisp/progmodes/prolog.el: Use syntax-propertize.  Further code cleanup.
(prolog-use-prolog-tokenizer-flag): Change default when
syntax-propertize can be used.
(prolog-syntax-propertize-function): New var.
(prolog-mode-variables): Move make-local-variable into `set'.
Don't make comment-column local since we don't set it.
Set comment-add (as it was in previous prolog.el).  Use dolist.
Set syntax-propertize-function.
(prolog-mode, prolog-inferior-mode):
Call prolog(-inferior)-menu directly, not through the mode-hook.
(prolog-buffer-module, prolog-indent-level)
(prolog-paren-is-the-first-on-line-p, prolog-paren-balance)
(prolog-comment-limits, prolog-goto-comment-column):
Use line-(end|beginning)-position.
(prolog-build-prolog-command): Tighten up regexp.
(prolog-consult-compile): Move make-local-variable into `set'.
(prolog-consult-compile-filter, prolog-goto-next-paren)
(prolog-help-on-predicate, prolog-clause-info)
(prolog-mark-predicate): Don't let+setq.
(prolog-indent-line): Use indent-line-to.
Only call prolog-goto-comment-column if necessary.
(prolog-indent-level): Use bobp.
(prolog-first-pos-on-line): Remove, not used any more.
(prolog-in-string-or-comment): Use syntax-ppss if available.
(prolog-help-on-predicate): Use read-string.
(prolog-goto-predicate-info): Simplify.
(prolog-read-predicate): Use `default' rather than `initial'.
(prolog-temporary-file): Use make-temp-file to close a security hole.
(prolog-toggle-sicstus-sd): New command.
(prolog-electric-underscore, prolog-variables-to-anonymous):
Use dynamic-scoping as it was meant.
(prolog-menu): Move menu definitions to top-level.
Use a toggle-button for Sicstus's source debugger.
Change "Code" to the more usual "Prolog", and hence change "Prolog"
to "System".
(prolog-inferior-menu): Reuse prolog-menu's help menu.
Move other menu definition to top-level.

13 years ago(doc-view-initiate-display): Fall back to normal mode when
Tassilo Horn [Thu, 13 Jan 2011 20:17:15 +0000 (21:17 +0100)]
(doc-view-initiate-display): Fall back to normal mode when
doc-view-mode cannot be enabled, also when extracting the document
text into a separate buffer (bug#6446).

13 years ago* doc-view.el (doc-view-open-text): Use meaningful text buffer
Tassilo Horn [Thu, 13 Jan 2011 19:48:26 +0000 (20:48 +0100)]
* doc-view.el (doc-view-open-text): Use meaningful text buffer
name.  Keep original document's directory as default-directory
(bug#6446).

13 years ago* simple.el (shell-command): Don't error out if shell command
Tassilo Horn [Thu, 13 Jan 2011 18:58:28 +0000 (19:58 +0100)]
* simple.el (shell-command): Don't error out if shell command
buffer contains text with non-nil read-only property when erasing
the buffer.

13 years agoMerge from mainline.
Paul Eggert [Thu, 13 Jan 2011 17:17:33 +0000 (09:17 -0800)]
Merge from mainline.

13 years ago* ido.el (ido-may-cache-directory): Move "too-big" check later.
Kim F. Storm [Thu, 13 Jan 2011 16:26:40 +0000 (17:26 +0100)]
* ido.el (ido-may-cache-directory): Move "too-big" check later.
(ido-next-match, ido-prev-match): Fix stray reordering of matching
items when cycling through the matches.

13 years ago* dired-x.el (dired-omit-verbose): New defcustom that allows
Tassilo Horn [Thu, 13 Jan 2011 15:44:41 +0000 (16:44 +0100)]
* dired-x.el (dired-omit-verbose): New defcustom that allows
disabling the omit messages.
(dired-omit-expunge): Use it.

13 years agoMerged from trunk.
Christian Ohler [Thu, 13 Jan 2011 08:08:58 +0000 (19:08 +1100)]
Merged from trunk.

13 years ago* lisp/subr.el (event-start, event-end): Doc fix (Bug#7826).
Chong Yidong [Thu, 13 Jan 2011 05:12:01 +0000 (00:12 -0500)]
* lisp/subr.el (event-start, event-end): Doc fix (Bug#7826).

13 years ago* font-lock.el (font-lock-verbose): Default to nil.
Chong Yidong [Thu, 13 Jan 2011 04:30:23 +0000 (23:30 -0500)]
* font-lock.el (font-lock-verbose): Default to nil.

13 years ago* message.el (message-bury): Add special-case handling for Rmail.
Chong Yidong [Thu, 13 Jan 2011 04:24:31 +0000 (23:24 -0500)]
* message.el (message-bury): Add special-case handling for Rmail.
This should not be merged into the trunk.

13 years agoNew arg RETURN-ACTION for compose-mail, and related functions.
Chong Yidong [Thu, 13 Jan 2011 04:23:41 +0000 (23:23 -0500)]
New arg RETURN-ACTION for compose-mail, and related functions.

* lisp/mail/sendmail.el (mail-return-action): New var.
(mail-mode): Make it buffer-local.
(mail-bury): Obey it.  Move special Rmail window handling to
rmail-mail-return.
(mail, mail-setup): New arg RETURN-ACTION.
(sendmail-user-agent-compose): Move from simple.el.

* lisp/simple.el (sendmail-user-agent-compose): Move to sendmail.el.
(compose-mail): New arg RETURN-ACTION.
(compose-mail-other-window, compose-mail-other-frame): Likewise.

* lisp/gnus/gnus-msg.el (gnus-msg-mail): New arg RETURN-ACTION.  Pass it to
message-mail.

* lisp/gnus/message.el (message-mail): New arg RETURN-ACTION.
(message-return-action): New var.
(message-bury): Use it.
(message-mode): Make it buffer-local.
(message-send-and-exit): Always call message-bury.
(message-tool-bar-gnome): Tweak tool-bar items.  Add :vert-only tags.

* lisp/mail/rmail.el (rmail-mail-return): New function.
(rmail-start-mail): Pass it to compose-mail.

* lisp/mh-e/mh-comp.el (mh-user-agent-compose): New arg RETURN-ACTION.

13 years ago* cus-theme.el (customize-themes): Use switch-to-buffer.
Chong Yidong [Wed, 12 Jan 2011 19:10:00 +0000 (14:10 -0500)]
* cus-theme.el (customize-themes): Use switch-to-buffer.

* menu-bar.el (menu-bar-custom-menu): Tweak Mule and Customize
menus.  Add menu item for customize-themes.

13 years ago* emacs-lisp/package.el (package--list-packages): Use switch-to-buffer.
Chong Yidong [Wed, 12 Jan 2011 18:57:23 +0000 (13:57 -0500)]
* emacs-lisp/package.el (package--list-packages): Use switch-to-buffer.

13 years agoconfigure: Regenerated.
Christian Ohler [Wed, 12 Jan 2011 16:22:13 +0000 (03:22 +1100)]
configure: Regenerated.

13 years agoBetter diff faces on dark background.
Tassilo Horn [Wed, 12 Jan 2011 16:19:36 +0000 (17:19 +0100)]
Better diff faces on dark background.

13 years agoAdd ERT, a tool for automated testing in Emacs Lisp.
Christian Ohler [Wed, 12 Jan 2011 16:08:24 +0000 (03:08 +1100)]
Add ERT, a tool for automated testing in Emacs Lisp.

* Makefile.in, configure.in, doc/misc/Makefile.in, doc/misc/makefile.w32-in:
Add ERT.  Make "make check" run tests in test/automated.

* doc/misc/ert.texi, lisp/emacs-lisp/ert.el, lisp/emacs-lisp/ert-x.el:
New files.

* test/automated: New directory.

13 years agoMinor docfixes in imagemagick_load_image.
Tassilo Horn [Wed, 12 Jan 2011 07:35:04 +0000 (08:35 +0100)]
Minor docfixes in imagemagick_load_image.

13 years agoRegenerate.
Paul Eggert [Wed, 12 Jan 2011 06:13:06 +0000 (22:13 -0800)]
Regenerate.

13 years agomerge emacs-23
Kenichi Handa [Wed, 12 Jan 2011 06:11:40 +0000 (15:11 +0900)]
merge emacs-23

13 years ago* Makefile.in (GNULIB_MODULES): Change ftoastr to dtoastr.
Paul Eggert [Wed, 12 Jan 2011 06:10:37 +0000 (22:10 -0800)]
* Makefile.in (GNULIB_MODULES): Change ftoastr to dtoastr.
This avoids building ftoastr and ldtoastr, which aren't needed.  See
<http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00199.html>.

13 years agoAnother improvement of MIME handling in rmail.
Kenichi Handa [Wed, 12 Jan 2011 06:08:55 +0000 (15:08 +0900)]
Another improvement of MIME handling in rmail.

13 years agoMerge from mainline.
Paul Eggert [Wed, 12 Jan 2011 05:57:19 +0000 (21:57 -0800)]
Merge from mainline.

13 years ago* admin/bzrmerge.el: Standardize copyright and license headers.
Glenn Morris [Wed, 12 Jan 2011 04:28:12 +0000 (20:28 -0800)]
* admin/bzrmerge.el: Standardize copyright and license headers.

13 years ago* message.el (message-mail): A compose-mail function should accept headers as strings.
Glenn Morris [Wed, 12 Jan 2011 03:53:28 +0000 (19:53 -0800)]
* message.el (message-mail): A compose-mail function should accept headers as strings.

13 years agoDistinguish between terminfo and termcap on NetBSD (Bug#7642).
Chong Yidong [Wed, 12 Jan 2011 02:29:23 +0000 (21:29 -0500)]
Distinguish between terminfo and termcap on NetBSD (Bug#7642).

* configure.in [netbsd systems]: Check for tputs definition.

* src/config.in (TERMINFO): New definition.

* src/s/netbsd.h: Use it to choose between terminfo and termcap.

13 years agolisp/emulation/tpu-edt.el: Regenerate md5sum.
Chong Yidong [Wed, 12 Jan 2011 02:13:33 +0000 (21:13 -0500)]
lisp/emulation/tpu-edt.el: Regenerate md5sum.

13 years agoproto-stream.el (open-protocol-stream): Protect against the low-level transport funct...
Lars Magne Ingebrigtsen [Tue, 11 Jan 2011 23:32:50 +0000 (23:32 +0000)]
proto-stream.el (open-protocol-stream): Protect against the low-level transport functions returning nil.
gnus-sum.el (gnus-summary-next-article): Remove hack to reselect group window, because it does the wrong thing when a separate frame displays the group buffer.
gnus-int.el (gnus-request-accept-article): Don't try to update marks and stuff if the backend didn't return the article number.  This fixes an Exchange-related nnimap bug.
mm-decode.el (mm-preferred-alternative-precedence): Discourage showing empty parts.
nnimap.el (nnimap-convert-partial-article): Protect against zero-length body parts.

13 years ago* image.c (imagemagick_load_image, Finit_image_library): Free
Tassilo Horn [Tue, 11 Jan 2011 20:14:13 +0000 (21:14 +0100)]
* image.c (imagemagick_load_image, Finit_image_library): Free
intermediate image after creating a MagickWand from it.  Terminate
MagickWand environment after image loading.

13 years ago* lisp/emacs-lisp/unsafep.el (unsafep): Handle backquoted forms.
Johan Bockgård [Tue, 11 Jan 2011 18:42:30 +0000 (19:42 +0100)]
* lisp/emacs-lisp/unsafep.el (unsafep): Handle backquoted forms.

13 years ago* lisp/progmodes/prolog.el: Fix up coding conventions and such.
Stefan Monnier [Tue, 11 Jan 2011 05:07:32 +0000 (00:07 -0500)]
* lisp/progmodes/prolog.el: Fix up coding conventions and such.
(prolog-indent-width): Use the same default as in
previous prolog.el rather than tab-width which depends on which buffer
is current when the file is loaded.
(prolog-electric-newline-flag): Only enable if electric-indent-mode
is not available.
(prolog-emacs): Remove.  Use (featurep 'xemacs) instead.
(prolog-known-systems): Remove.
(prolog-mode-syntax-table, prolog-inferior-mode-map):
Move initialization into declaration.
(prolog-mode-map): Move initialization into declaration.
Remove system-specific mode-map vars, since they referred to the same
keymap anyway.
(prolog-mode-variables): Obey the user's preference w.r.t
adaptive-fill-mode.  Prefer symbol-value to `eval'.
(prolog-mode-keybindings-edit): Add compatibility bindings.
(prolog-mode): Use define-derived-mode.  Don't handle mercury here.
(mercury-mode-map): New var.
(mercury-mode, prolog-inferior-mode): Use define-derived-mode.
(prolog-ensure-process, prolog-process-insert-string)
(prolog-consult-compile): Use with-current-buffer.
(prolog-guess-fill-prefix): Simplify data flow.
(prolog-replace-in-string): New function to use instead of
replace-in-string.
(prolog-enable-sicstus-sd): Don't abuse `eval'.
(prolog-uncomment-region): Use `uncomment-region' when available.
(prolog-electric-colon, prolog-electric-dash): Use `eolp'.
(prolog-int-to-char, prolog-char-to-int): New functions to use instead
of int-to-char and char-to-int.
(prolog-mode-hook, prolog-inferior-mode-hook): Don't force font-lock.

13 years ago* lisp/progmodes/prolog.el: Replace by a whole new file.
Stefan Bruda [Tue, 11 Jan 2011 04:34:06 +0000 (23:34 -0500)]
* lisp/progmodes/prolog.el: Replace by a whole new file.

13 years ago* lisp/subr.el (eval-after-load): Fix timing for features.
Stefan Monnier [Tue, 11 Jan 2011 03:23:04 +0000 (22:23 -0500)]
* lisp/subr.el (eval-after-load): Fix timing for features.
(declare-function, undefined, insert-for-yank)
(replace-regexp-in-string): Follow checkdoc's recommendations.
* doc/lispref/loading.texi (Hooks for Loading): Adjust doc of eval-after-load.

Fixes: debbugs:7769

13 years ago* tmm.el (tmm-get-keymap): Skip bindings without labels.
Stefan Monnier [Tue, 11 Jan 2011 02:28:48 +0000 (21:28 -0500)]
* tmm.el (tmm-get-keymap): Skip bindings without labels.
(tmm-prompt): Simplify.
(tmm-add-prompt): Remove unused var `win'.

Fixes: debbugs:7721

13 years ago* whitespace.el (global-whitespace-newline-mode): Fix call
Stefan Monnier [Tue, 11 Jan 2011 00:14:25 +0000 (19:14 -0500)]
* whitespace.el (global-whitespace-newline-mode): Fix call
to minor mode which used nil accidentally to mean "turn off".

Fixes: debbugs:7810

13 years ago* lisp/calendar/diary-lib.el (diary-mode): Refresh *Calendar* after
Stefan Monnier [Mon, 10 Jan 2011 23:31:47 +0000 (18:31 -0500)]
* lisp/calendar/diary-lib.el (diary-mode): Refresh *Calendar* after
refreshing the diary buffer.

13 years agoallout.el: Add 2011 to the file copyright.
Ken Manheimer [Mon, 10 Jan 2011 22:05:42 +0000 (17:05 -0500)]
allout.el: Add 2011 to the file copyright.
(allout-encrypt-string): Prevent encryption from adding an extra newline at
the end of the topic body.
(allout-version): Increment to 2.3.

13 years ago* net/tramp.el (tramp-find-inline-compress)
Michael Albinus [Mon, 10 Jan 2011 20:36:09 +0000 (21:36 +0100)]
* net/tramp.el (tramp-find-inline-compress)
(tramp-get-inline-coding): Quote command after pipe symbol for
local calls under W32.  (Bug#6784)

13 years ago* net/tramp.el (tramp-default-method): Initialize with pscp/plink
Michael Albinus [Mon, 10 Jan 2011 19:42:46 +0000 (20:42 +0100)]
* net/tramp.el (tramp-default-method): Initialize with pscp/plink
only when running under W32.

13 years ago* dbusbind.c (Fdbus_register_service): Raise an error in case of
Michael Albinus [Mon, 10 Jan 2011 11:28:31 +0000 (12:28 +0100)]
* dbusbind.c (Fdbus_register_service): Raise an error in case of
unexpected return values.
(Fdbus_register_method): Remove connection initialization.

13 years ago* net/dbus.el (dbus-unregister-service): Complete doc. Fix
Michael Albinus [Mon, 10 Jan 2011 11:21:01 +0000 (12:21 +0100)]
* net/dbus.el (dbus-unregister-service): Complete doc.  Fix
call of dbus-error signal.

13 years ago* net/dbus.el (dbus-register-property): Use `dont-register' keyword.
Michael Albinus [Mon, 10 Jan 2011 10:53:13 +0000 (11:53 +0100)]
* net/dbus.el (dbus-register-property): Use `dont-register' keyword.

13 years ago* dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
Michael Albinus [Mon, 10 Jan 2011 09:56:17 +0000 (10:56 +0100)]
* dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
used by Fdbus_register_service.
(QCdbus_request_name_replace_existing): Likewise.
(QCdbus_request_name_do_not_queue): Likewise.
(QCdbus_request_name_reply_primary_owner): Likewise.
(QCdbus_request_name_reply_in_queue): Likewise.
(QCdbus_request_name_reply_exists): Likewise.
(QCdbus_request_name_reply_already_owner): Likewise.
(Fdbus_register_service): New function.
(Fdbus_register_method): Use Fdbus_register_service to do the name
registration.
(syms_of_dbusbind): Add symbols dbus-register-service,
:allow-replacement, :replace-existing, :do-not-queue,
:primary-owner, :existing, :in-queue and :already-owner.

13 years ago* net/dbus.el (dbus-unregister-service): Translate returned
Michael Albinus [Mon, 10 Jan 2011 09:46:19 +0000 (10:46 +0100)]
* net/dbus.el (dbus-unregister-service): Translate returned
integer into a symbol.
(dbus-register-property): Use `dbus-register-service' to do the
name registration.