bpt/emacs.git
13 years agoSilence sieve-manage.el compilation.
Glenn Morris [Mon, 1 Nov 2010 01:38:04 +0000 (18:38 -0700)]
Silence sieve-manage.el compilation.
* lisp/gnus/sieve-manage.el: Require 'cl when compiling, for caddr.

13 years agoSilence gnus-util.el compilation.
Glenn Morris [Mon, 1 Nov 2010 01:34:55 +0000 (18:34 -0700)]
Silence gnus-util.el compilation.

* lisp/gnu/gnus-util.el (iswitchb-read-buffer): Declare rather than autoload.
(gnus-iswitchb-completing-read): Require iswitchb.
(gnus-select-frame-set-input-focus): Silence compiler.

13 years ago* configure.in (checking whether localtime caches TZ): Use
Ken Brown [Sun, 31 Oct 2010 23:21:53 +0000 (19:21 -0400)]
* configure.in (checking whether localtime caches TZ): Use
unsetenv instead of modifying environment directly.

13 years ago* lisp/cedet/ede/proj-elisp.el (project-compile-target): Fix previous change.
Glenn Morris [Sun, 31 Oct 2010 22:55:44 +0000 (15:55 -0700)]
* lisp/cedet/ede/proj-elisp.el (project-compile-target): Fix previous change.

13 years agomessage.el (message-subject-trailing-was-query): Change default to t.
Lars Magne Ingebrigtsen [Sun, 31 Oct 2010 22:49:28 +0000 (22:49 +0000)]
message.el (message-subject-trailing-was-query): Change default to t.

13 years ago* lisp/cus-start.el: Explanatory comment.
Glenn Morris [Sun, 31 Oct 2010 22:47:12 +0000 (15:47 -0700)]
* lisp/cus-start.el: Explanatory comment.

13 years agoFix previous cedet change and ChangeLog.
Glenn Morris [Sun, 31 Oct 2010 22:43:06 +0000 (15:43 -0700)]
Fix previous cedet change and ChangeLog.

* lisp/cedet/semantic/ede-grammar.el (project-compile-target):
Fix previous change.

13 years ago* src/xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
Glenn Morris [Sun, 31 Oct 2010 22:35:44 +0000 (15:35 -0700)]
* src/xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Sun, 31 Oct 2010 22:31:24 +0000 (22:31 +0000)]
Merge changes made in Gnus trunk.

nnimap.el (nnimap-open-connection): Only send AUTHENTICATE PLAIN if LOGINDISABLED is set.
gnus.el (gnus-group-startup-message): Move point to the start of the buffer.
nndoc.el (nndoc-dissect-buffer): Reverse the order of the articles to reflect the order they're in in the digest.
gnus-sum.el (gnus-summary-select-article): Make `C-d' work reliably by checking whether the original article buffer is alive.
shr.el (shr-find-fill-point): Don't break lines between punctuation and non-punctuation (like after the apostrophe in "'We").
gnus-cite.el (gnus-article-fill-cited-article): Remove unused `force' parameter.
gnus-art.el (gnus-treatment-function-alist): Have gnus-treat-fill-long-lines point to gnus-article-fill-cited-long-lines.
gnus-art.el (gnus-treat-fill-long-lines): Change default to fill all text/plain sections.
gnus.el: Autoload gnus-article-fill-cited-long-lines.
gnus-art.el (gnus-mime-display-alternative): Actually pass the type on to `gnus-treat-article'.
gnus-sum.el (gnus-summary-show-article): Add `C-u C-u g' for showing the raw article, and change `C-u g' to show the article without doing treatments.
gnus.texi (Paging the Article): Document C-u g/C-u C-u g.
gnus-cite.el (gnus-article-foldable-buffer): Refactor out.
gnus-cite.el (gnus-article-foldable-buffer): Don't fold regions that have a ragged left edge.
gnus-cite.el (gnus-article-foldable-buffer): Skip past the prefix when determining raggedness.
gnus-srvr.el, nnir.el: Allow nnir searching for an entire server.
gnus-msg.el (gnus-configure-posting-styles): Permit the use of regular expression match and replace in posting styles.
gnus-art.el (gnus-treat-article): Only inhibit body washing, and leave the header washing to take place.
nnimap.el (nnimap-request-accept-article): Erase buffer before appending for easier debugging.
nnimap.el (nnimap-wait-for-connection): Take a regexp.
nnimap.el (nnimap-request-accept-article): Wait for the continuation line before sending anything unless we're streaming.

13 years ago* lisp/emacs-lisp/bytecomp.el (byte-recompile-file): New fun.
Julien Danjou [Sun, 31 Oct 2010 19:25:39 +0000 (15:25 -0400)]
* lisp/emacs-lisp/bytecomp.el (byte-recompile-file): New fun.
(byte-recompile-directory):
* lisp/emacs-lisp/lisp-mode.el (emacs-lisp-byte-compile-and-load):
* cedet/ede/proj-elisp.el (project-compile-target):
* cedet/semantic/ede-grammar.el (project-compile-target):
Use `byte-recompile-file'.

Fixes: debbugs:7297

13 years agoMore merge fixes.
Juanma Barranquero [Sun, 31 Oct 2010 18:38:16 +0000 (19:38 +0100)]
More merge fixes.

13 years agoFix bug#7299; default value of tool-bar-mode in without-x builds.
Glenn Morris [Sun, 31 Oct 2010 18:26:54 +0000 (11:26 -0700)]
Fix bug#7299; default value of tool-bar-mode in without-x builds.

* src/frame.c (syms_of_frame) <tool-bar-mode>:
Default to nil if !HAVE_WINDOW_SYSTEM.

* lisp/cus-start.el: Handle standard values via a keyword.
Only set version property if specified.
(cursor-in-non-selected-windows, menu-bar-mode)
(tool-bar-mode, show-trailing-whitespace):
Do not specify standard values.
(transient-mark-mode, temporary-file-directory): Use :standard.

13 years ago* lisp/ChangeLog: Merge fixes.
Glenn Morris [Sun, 31 Oct 2010 18:13:40 +0000 (11:13 -0700)]
* lisp/ChangeLog: Merge fixes.

13 years agoDon't use STRING as first choice when pasting PRIMARY (Bug#6802).
Jan Djärv [Sun, 31 Oct 2010 16:03:11 +0000 (17:03 +0100)]
Don't use STRING as first choice when pasting PRIMARY (Bug#6802).

* lisp/term/x-win.el (x-get-selection-value): New function that gets
PRIMARY with type as specified in x-select-request-type. (Bug#6802).

13 years agoMerge changes from emacs-23 branch
Chong Yidong [Sun, 31 Oct 2010 14:40:01 +0000 (10:40 -0400)]
Merge changes from emacs-23 branch

13 years agoprogmodes/cc-cmds.el (c-mask-paragraph): Fix an off-by-1 error. Fixes
Alan Mackenzie [Sun, 31 Oct 2010 11:54:02 +0000 (11:54 +0000)]
progmodes/cc-cmds.el (c-mask-paragraph): Fix an off-by-1 error.  Fixes
bug #7185.

13 years agognus/ChangeLog: Cosmetic fix.
Katsumi Yamaoka [Sun, 31 Oct 2010 10:01:11 +0000 (10:01 +0000)]
gnus/ChangeLog: Cosmetic fix.

13 years agonnmairix.el (nnmairix-get-valid-servers): Return list of strings to conform with...
David Engster [Sun, 31 Oct 2010 09:53:57 +0000 (09:53 +0000)]
nnmairix.el (nnmairix-get-valid-servers): Return list of strings to conform with changes to gnus-completing-read.

13 years agoPrint informative error message when aborting on GTK disconnect.
Chong Yidong [Sun, 31 Oct 2010 03:33:56 +0000 (23:33 -0400)]
Print informative error message when aborting on GTK disconnect.

* xterm.c (x_connection_closed): Print informative error message
when aborting on GTK.  This requires using shut_down_emacs
directly instead of Fkill_emacs.

13 years ago* lisp/progmodes/sql.el: Remove comment link to defunct viewcvs url.
Glenn Morris [Sun, 31 Oct 2010 02:16:20 +0000 (19:16 -0700)]
* lisp/progmodes/sql.el: Remove comment link to defunct viewcvs url.

13 years ago* admin/notes/bugtracker: Mention "found".
Glenn Morris [Sun, 31 Oct 2010 00:38:13 +0000 (17:38 -0700)]
* admin/notes/bugtracker: Mention "found".

13 years agoetc/NEWS: Add placeholder for finder-inf.el changes.
Chong Yidong [Sun, 31 Oct 2010 00:24:34 +0000 (20:24 -0400)]
etc/NEWS: Add placeholder for finder-inf.el changes.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Sun, 31 Oct 2010 00:13:12 +0000 (00:13 +0000)]
Merge changes made in Gnus trunk.

nnir.el: General clean-up, and reimplementation of various bits.
nnir.el (nnir-search-engine): Ressurect variable, since it's used later in the file.
shr.el (shr-generic): The text nodes should be text, not :text.
nnir.el: Move defvars around to silence compiler warnings.
shr.el (shr-tag-img): Output "*" instead of "[img]".

13 years agoCheck more carefully for packages before loading package.el.
Chong Yidong [Sun, 31 Oct 2010 00:06:18 +0000 (20:06 -0400)]
Check more carefully for packages before loading package.el.

* startup.el (command-line): Search for package directories, and
don't load package.el if none are found.

* emacs-lisp/package.el (describe-package, list-packages): Call
package-initialize if it has not been called yet.

13 years agoTiny MH-E doc fixes.
Glenn Morris [Sat, 30 Oct 2010 21:17:59 +0000 (14:17 -0700)]
Tiny MH-E doc fixes.

* doc/misc/mh-e.texi (Preface, From Bill Wohler): Change 23 to past tense.
* etc/MH-E-NEWS: Change 23 to past tense.

13 years ago* net/tramp.el (tramp-handle-insert-file-contents): For root,
Michael Albinus [Sat, 30 Oct 2010 16:28:17 +0000 (18:28 +0200)]
* net/tramp.el (tramp-handle-insert-file-contents): For root,
preserve owner and group when editing files.  (Bug#7289)

Please contact me, if you have problems syncing with the trunk.

13 years agognus-start.el (gnus-find-new-newsgroups): Remove gnus-check-first-time-used.
Julien Danjou [Sat, 30 Oct 2010 15:01:14 +0000 (15:01 +0000)]
gnus-start.el (gnus-find-new-newsgroups): Remove gnus-check-first-time-used.
gnus.el: Remove gnus-backup-default-subscribed-newsgroups.
gnus-group.el: Remove gnus-group-fetch-control.

13 years agonnimap.el (nnimap-update-info): Allow 'ticked and other flags to be set on groups...
Knut Anders Hatlen [Sat, 30 Oct 2010 12:54:28 +0000 (12:54 +0000)]
nnimap.el (nnimap-update-info): Allow 'ticked and other flags to be set on groups that don't have \* permanentflags.

13 years agoprogmodes/cc-fonts.el (c-font-lock-enum-tail): New function which
Alan Mackenzie [Sat, 30 Oct 2010 12:24:06 +0000 (12:24 +0000)]
progmodes/cc-fonts.el (c-font-lock-enum-tail): New function which
fontifies the tail of an enum.
(c-basic-matchers-after): Insert a call to the above new function.
This fixes bug #7264.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Sat, 30 Oct 2010 05:59:34 +0000 (05:59 +0000)]
Merge changes made in Gnus trunk.

gnus.el: Remove `gnus-nntp-service' variable.
gnus.el: Make gnus-nntp-server and gnus-secondary-servers obsolete.
gnus-sum.el (gnus-summary-delete-marked-as-read, gnus-summary-delete-marked-with): Remove obsolete defalias.
gnus.el (gnus-use-long-file-name): Fix docstring.
nnimap.el (nnimap-open-connection): Use AUTHENTICATE PLAIN on servers that say they support that.
gnus-msg.el (gnus-inews-do-gcc): Don't have the backends do the slow *-request-group, which seems unnecessary.
gnus-group.el (gnus-group-get-new-news-this-group): Don't have point move to the previous line on `M-g'.
nnimap.el (nnimap-split-incoming-mail): Note that the INBOX has been selected.
nnimap.el: Allow the user to say whether to split old messages or not in nnimap.
shr.el (shr-tag-table-1): Only insert the images after the top-level table.
shr.el (shr-tag-span): Drop colorisation of regions since we don't control the background color.
shr.el (shr-tag-img): Ignore very small web bug type images.
shr.el (shr-put-image): Add help-echo alt texts to the images.
shr.el (shr-tag-video): Show the video poster image.

13 years agoFix bug#7306; customization of minor-mode variables defined in C.
Glenn Morris [Sat, 30 Oct 2010 02:27:44 +0000 (19:27 -0700)]
Fix bug#7306; customization of minor-mode variables defined in C.

* lisp/cus-start.el: Add :set properties for minor modes menu-bar-mode,
tool-bar-mode, transient-mark-mode.
Include the :set property in the dumped Emacs.

13 years agoSMIE: change indent rules format, improve smie-setup.
Stefan Monnier [Fri, 29 Oct 2010 19:20:28 +0000 (15:20 -0400)]
SMIE: change indent rules format, improve smie-setup.
* lisp/emacs-lisp/smie.el (smie-precs-precedence-table)
(smie-merge-prec2s, smie-bnf-precedence-table, smie-prec2-levels):
Mark them pure so the tables gets built at compile time.
(smie-bnf-precedence-table): Store the closer-alist in the table.
(smie-prec2-levels): Preserve the closer-alist.
(smie-blink-matching-open): Be more forgiving in case of indentation.
(smie-hanging-p): Rename from smie-indent--hanging-p.
(smie-bolp): Rename from smie-indent--bolp.
(smie--parent, smie--after): New dynamic vars.
(smie-parent-p, smie-next-p, smie-prev-p): New funs.
(smie-indent-rules): Remove.
(smie-indent--offset-rule): Remove fun.
(smie-rules-function): New var.
(smie-indent--rule): New fun.
(smie-indent--offset, smie-indent-keyword, smie-indent-after-keyword)
(smie-indent-exps): Use it.
(smie-setup): Setup paren blinking; add keyword args for token
functions; extract closer-alist from op-levels.
(smie-indent-debug-log): Remove var.
(smie-indent-debug): Remove fun.
* lisp/progmodes/prolog.el (prolog-smie-indent-rules): Remove.
(prolog-smie-rules): New fun to replace it.
(prolog-mode-variables): Simplify.
* lisp/progmodes/octave-mod.el (octave-smie-closer-alist): Remove, now that
it's setup automatically.
(octave-smie-indent-rules): Remove.
(octave-smie-rules): New fun to replace it.
(octave-mode): Simplify.

13 years agognus.el (gnus-buffers, gnus-group-buffer): Add docstrings.
Julien Danjou [Fri, 29 Oct 2010 13:51:15 +0000 (13:51 +0000)]
gnus.el (gnus-buffers, gnus-group-buffer): Add docstrings.
gnus.el (gnus-group-startup-message): Simplify/update code.
gnus-ems.el (gnus-x-splash): Remove.
gnus-start.el (gnus-1): Remove x-splash calls.

13 years agognus-group.el (gnus-group-make-tool-bar): Check for display graphic capability before...
Julien Danjou [Fri, 29 Oct 2010 11:24:23 +0000 (11:24 +0000)]
gnus-group.el (gnus-group-make-tool-bar): Check for display graphic capability before doing anything.
gnus-group.el (gnus-group-insert-group-line): Remove useless gnus-group-remove-excess-properties.

13 years agoFix doc/misc/makefile.w32.in like 2010-10-28T07:21:43Z!rgm@gnu.org did with Makefile.in.
Eli Zaretskii [Fri, 29 Oct 2010 10:49:27 +0000 (12:49 +0200)]
Fix doc/misc/makefile.w32.in like 2010-10-28T07:21:43Z!rgm@gnu.org did with Makefile.in.

 makefile.w32-in (MAKEINFO): Add -I$(emacsdir).
 (ENVADD): Remove extra -I$(emacsdir), included in $(MAKEINFO).
 ($(infodir)/efaq): Remove -I$(emacsdir), included in $(MAKEINFO).
 ($(infodir)/calc, calc.dvi): Depend on $(emacsdir)/emacsver.texi.

13 years agoFix 2010-10-29T06:51:36Z!rgm@gnu.org for non-CLASH_DETECTION platforms.
Eli Zaretskii [Fri, 29 Oct 2010 10:43:38 +0000 (12:43 +0200)]
Fix 2010-10-29T06:51:36Z!rgm@gnu.org for non-CLASH_DETECTION platforms.

 emacs.c (main): Call syms_of_filelock unconditionally.
 filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
 clause, but keep part of it conditioned on CLASH_DETECTION.

13 years agoReplace some inappropriate uses of toggle-read-only. (Bug#7292)
Glenn Morris [Fri, 29 Oct 2010 07:48:10 +0000 (00:48 -0700)]
Replace some inappropriate uses of toggle-read-only.  (Bug#7292)

* lisp/speedbar.el (speedbar-mode):
* lisp/play/fortune.el (fortune-in-buffer, fortune):
* lisp/play/gomoku.el (gomoku-mode):
* lisp/play/landmark.el (lm-mode):
* lisp/textmodes/bibtex.el (bibtex-validate, bibtex-validate-globally):
* lisp/cedet/mode-local.el (mode-local-augment-function-help):
* lisp/semantic/analyze/debug.el (semantic-analyzer-debug-add-buttons):
* lisp/semantic/symref/list.el (semantic-symref-results-dump)
(semantic-symref-rb-toggle-expand-tag):
Replace inappropriate uses of toggle-read-only.

13 years agognus-art.el (gnus-article-goto-part): Fix last change.
Katsumi Yamaoka [Fri, 29 Oct 2010 07:22:52 +0000 (07:22 +0000)]
gnus-art.el (gnus-article-goto-part): Fix last change.

13 years agognus-art.el (gnus-article-goto-part): Work for article narrowed by ^L.
Katsumi Yamaoka [Fri, 29 Oct 2010 07:13:33 +0000 (07:13 +0000)]
gnus-art.el (gnus-article-goto-part): Work for article narrowed by ^L.

13 years agoSync docs of some X, W32, NS C functions.
Glenn Morris [Fri, 29 Oct 2010 07:04:09 +0000 (00:04 -0700)]
Sync docs of some X, W32, NS C functions.

* src/nsfns.m (Fx-display-save-under, Fx-open-connection)
(Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
* src/w32fns.c (Fxw_color_defined_p, Fx_open_connection):
* src/xfns.c (Fxw_color_defined_p, Fx_open_connection):
Sync docs between X, W32, NS.

13 years agoRemove duplicate Lisp definition of temporary-file-directory, from filelock.c.
Glenn Morris [Fri, 29 Oct 2010 06:51:36 +0000 (23:51 -0700)]
Remove duplicate Lisp definition of temporary-file-directory, from filelock.c.

* lisp/files.el (temporary-file-directory): Remove (already defined in C).
* lisp/cus-start.el: Add temporary-file-directory.

13 years agoRemove duplicate Lisp definitions of define-minor-mode variables defined in C.
Glenn Morris [Fri, 29 Oct 2010 03:29:29 +0000 (20:29 -0700)]
Remove duplicate Lisp definitions of define-minor-mode variables defined in C.

* lisp/abbrev.el (abbrev-mode):
* lisp/composite.el (auto-composition-mode):
* lisp/menu-bar.el (menu-bar-mode):
* lisp/simple.el (transient-mark-mode):
* lisp/tool-bar.el (tool-bar-mode): Adjust the define-minor-mode calls so
that they do not define the associated variables twice.
* lisp/simple.el (transient-mark-mode): Remove defvar.
* lisp/composite.el (auto-composition-mode): Make variable auto-buffer-local.
* lisp/cus-start.el: Add transient-mark-mode, menu-bar-mode, tool-bar-mode.
Handle multiple groups, and also custom-delayed-init-variables.
* lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Doc fix.

* src/buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
* src/frame.c (syms_of_frame) <tool-bar-mode>: Move docs here from Lisp.

13 years agoCorrect some viewcvs links in docs and comments.
Glenn Morris [Fri, 29 Oct 2010 03:19:33 +0000 (20:19 -0700)]
Correct some viewcvs links in docs and comments.

* doc/misc/cc-mode.texi: Remove reference to defunct viewcvs URL.
Instead, refer to the generic Savannah page, since it seems likely
that Savannah will never provide the equivalent service for GNU bazaar.
The other option would be to use the Git mirror URL, since it seems to
be being updated now, and of course browsing Git repos works just fine.
That would be a pretty poor advert for the GNU system though.

* etc/MH-E-NEWS: Update URL (viewcvs -> viewvc).

* lisp/net/tramp-fish.el: Update URL in comment (viewcvs -> viewvc).

13 years ago* lisp/emacs-lisp/pcase.el (pcase): New `string' and `guard' patterns.
Stefan Monnier [Fri, 29 Oct 2010 01:05:38 +0000 (21:05 -0400)]
* lisp/emacs-lisp/pcase.el (pcase): New `string' and `guard' patterns.
(pcase-if): Add one minor optimization.
(pcase-split-equal): Rename from pcase-split-eq.
(pcase-split-member): Rename from pcase-split-memq.
(pcase-u1): Add strings to the member optimization.
Add `guard' variant of predicates.
(pcase-q1): Add string patterns.

13 years agognus-sum.el (gnus-summary-rescan-group): Try to restore the window config after resel...
Lars Magne Ingebrigtsen [Thu, 28 Oct 2010 22:03:15 +0000 (22:03 +0000)]
gnus-sum.el (gnus-summary-rescan-group): Try to restore the window config after reselecting.

13 years ago* lisp/vc/log-edit.el (log-edit-rewrite-fixes): State its safety pred.
Stefan Monnier [Thu, 28 Oct 2010 14:36:59 +0000 (10:36 -0400)]
* lisp/vc/log-edit.el (log-edit-rewrite-fixes): State its safety pred.

13 years agoshr.el (shr-put-image): Use point even if only inserting text; save-excursion on...
Julien Danjou [Thu, 28 Oct 2010 12:45:51 +0000 (12:45 +0000)]
shr.el (shr-put-image): Use point even if only inserting text; save-excursion on alt text.

13 years agonnir.el (nnir-run-swish-e): Remove hyrex support.
Julien Danjou [Thu, 28 Oct 2010 10:41:27 +0000 (10:41 +0000)]
nnir.el (nnir-run-swish-e): Remove hyrex support.

13 years agodoc/Makefile fixes related to inclusion of emacsver.texi.
Glenn Morris [Thu, 28 Oct 2010 07:21:43 +0000 (00:21 -0700)]
doc/Makefile fixes related to inclusion of emacsver.texi.

* doc/lispref/Makefile.in (elisp.dvi, elisp.pdf): Also include $emacsdir.

* doc/misc/Makefile.in (MAKEINFO, ENVADD): Add $emacsdir to include path.
(($(infodir)/calc, calc.dvi, calc.pdf): Depend on emacsver.texi.
($(infodir)/efaq): Remove -I option now in $MAKEINFO.

13 years agoMove ns-specific menu-bar code from term/ns-win.el to menu-bar.el.
Glenn Morris [Thu, 28 Oct 2010 07:05:00 +0000 (00:05 -0700)]
Move ns-specific menu-bar code from term/ns-win.el to menu-bar.el.

* lisp/term/ns-win.el (global-map, menu-bar-final-items, menu-bar-help-menu):
Move menu-bar related settings to ../menu-bar.el.
* lisp/menu-bar.el (global-map, menu-bar-final-items, menu-bar-help-menu):
Move ns-specific settings here from term/ns-win.el.

13 years agognus-art.el: Improve MIME part functions.
Katsumi Yamaoka [Thu, 28 Oct 2010 06:37:35 +0000 (06:37 +0000)]
gnus-art.el: Improve MIME part functions.

gnus-art.el (gnus-article-jump-to-part): Error on no part; fix prompt.
 (gnus-mime-copy-part): Check coding system, not charset.
 (gnus-mime-view-part-externally): Never remove part.
 (gnus-mime-view-part-internally): Don't remove part here.
 (gnus-article-part-wrapper): Make sure MIME tag is visible.
 (gnus-article-goto-part): Go to displayed or preferred subpart if it is multipart/alternative.

mm-decode.el (mm-display-part): Take optional arg `force'.

13 years ago* lisp/select.el (x-selection): Mark it as an obsolete alias.
Glenn Morris [Thu, 28 Oct 2010 03:52:14 +0000 (20:52 -0700)]
* lisp/select.el (x-selection): Mark it as an obsolete alias.

13 years ago* lisp/simple.el (x-selection-owner-p): Remove unused declaration.
Glenn Morris [Thu, 28 Oct 2010 03:49:40 +0000 (20:49 -0700)]
* lisp/simple.el (x-selection-owner-p): Remove unused declaration.

13 years ago* lisp/minibuffer.el (completion-cycling): New var.
Stefan Monnier [Thu, 28 Oct 2010 02:22:29 +0000 (22:22 -0400)]
* lisp/minibuffer.el (completion-cycling): New var.
(minibuffer-complete, completion--do-completion):
Use completion--flush-all-sorted-completions.
(minibuffer-complete): Only cycle if completion-cycling is set.
(completion--flush-all-sorted-completions): Unset completion-cycling.
(minibuffer-force-complete): Set completion-cycling.
(completion-all-sorted-completions): Move declaration before first use.

Fixes: debbugs:7266

13 years ago* lisp/iswitchb.el (iswitchb-kill-buffer): Avoid `iswitchb-make-buflist'
Leo Liu [Thu, 28 Oct 2010 01:30:01 +0000 (21:30 -0400)]
* lisp/iswitchb.el (iswitchb-kill-buffer): Avoid `iswitchb-make-buflist'
which changes the order of matches seen by users.

Fixes: debbugs:7231

13 years ago* lisp/progmodes/compile.el (compilation-mode-font-lock-keywords):
Jes Bodi Klinke [Thu, 28 Oct 2010 01:10:22 +0000 (21:10 -0400)]
* lisp/progmodes/compile.el (compilation-mode-font-lock-keywords):
Don't confuse -omega as "-o mega".

13 years agognus-group.el: Make gnus-group-default-list-level possibly a function.
Julien Danjou [Wed, 27 Oct 2010 22:08:36 +0000 (22:08 +0000)]
gnus-group.el: Make gnus-group-default-list-level possibly a function.

13 years ago* lisp/vc/log-edit.el (log-edit-rewrite-fixes): New var.
Stefan Monnier [Wed, 27 Oct 2010 21:47:09 +0000 (17:47 -0400)]
* lisp/vc/log-edit.el (log-edit-rewrite-fixes): New var.
(log-edit-author): New dynamic var.
(log-edit-changelog-ours-p, log-edit-insert-changelog-entries): Use it
to return the author if different from committer.
(log-edit-insert-changelog): Use them to add Author: and Fixes headers.

13 years ago* add-log.el (find-change-log): Use derived-mode-p rather than
Aaron S. Hawley [Wed, 27 Oct 2010 21:37:15 +0000 (17:37 -0400)]
* add-log.el (find-change-log): Use derived-mode-p rather than
major-mode.

Fixes: debbugs:7284

13 years ago* test/indent/octave.m: Add a test to ensure indentation is local.
Stefan Monnier [Wed, 27 Oct 2010 14:48:05 +0000 (10:48 -0400)]
* test/indent/octave.m: Add a test to ensure indentation is local.

13 years ago* lisp/play/landmark.el: Adjust commenting convention.
Stefan Monnier [Wed, 27 Oct 2010 14:31:44 +0000 (10:31 -0400)]
* lisp/play/landmark.el: Adjust commenting convention.
(lm-nil-score): Rename from nil-score.
(Xscore, XXscore, XXXscore, XXXXscore, Oscore, OOscore, OOOscore)
(OOOOscore): Move into a let in lm-score-trans-table.
(lm-winning-threshold, lm-loosing-threshold): Use lm-score-trans-table.

13 years ago* lisp/electric.el (electric-indent-chars): Autoload.
Stefan Monnier [Wed, 27 Oct 2010 14:26:01 +0000 (10:26 -0400)]
* lisp/electric.el (electric-indent-chars): Autoload.
* lisp/progmodes/octave-mod.el (octave-mode):
* lisp/progmodes/ruby-mode.el (ruby-mode): Take advantage of it.
(ruby-mode-abbrev-table): Merge initialization and declaration.

13 years agonnimap.el (nnimap-retrieve-group-data-early): Remove bad comment.
Julien Danjou [Wed, 27 Oct 2010 08:07:41 +0000 (08:07 +0000)]
nnimap.el (nnimap-retrieve-group-data-early): Remove bad comment.

13 years ago* lisp/term/ns-win.el (ns-insert-file): Init in let.
Glenn Morris [Wed, 27 Oct 2010 07:39:34 +0000 (00:39 -0700)]
* lisp/term/ns-win.el (ns-insert-file): Init in let.
(ns-find-file): Use let*.

13 years ago* abbrev.el (abbrev-mode): Remove one of the three definitions of this variable.
Glenn Morris [Wed, 27 Oct 2010 06:50:28 +0000 (23:50 -0700)]
* abbrev.el (abbrev-mode): Remove one of the three definitions of this variable.

13 years agons-win.el trivia.
Glenn Morris [Wed, 27 Oct 2010 06:48:04 +0000 (23:48 -0700)]
ns-win.el trivia.

* term/ns-win.el: (ns-handle-nxopen): Optionally handle the temp-case.
(ns-handle-nxopentemp): Just call ns-handle-nxopen.
(ns-insert-file, ns-find-file): Use `pop'.

13 years ago* server.el (server-host, server-port, server-auth-dir): Autoload risky.
Glenn Morris [Wed, 27 Oct 2010 06:42:15 +0000 (23:42 -0700)]
* server.el (server-host, server-port, server-auth-dir): Autoload risky.

13 years agoFix treatment of menu-bar-files-menu.
Glenn Morris [Wed, 27 Oct 2010 04:06:52 +0000 (21:06 -0700)]
Fix treatment of menu-bar-files-menu.

* lisp/menu-bar.el (menu-bar-files-menu): Make it into an actual alias,
rather than just an unused variable that inherits from the real one.

* doc/lispref/maps.texi (Standard Keymaps): Update File menu description.

13 years agomm-decode.el (mm-shr): Add undisplayer to MIME handle.
Katsumi Yamaoka [Wed, 27 Oct 2010 03:59:59 +0000 (03:59 +0000)]
mm-decode.el (mm-shr): Add undisplayer to MIME handle.

13 years ago* lisp/term/ns-win.el: Restore require of cl when compiling.
Glenn Morris [Wed, 27 Oct 2010 03:48:28 +0000 (20:48 -0700)]
* lisp/term/ns-win.el: Restore require of cl when compiling.
(menu-bar-final-items): Remove non-existent `windows' menu.

13 years agognus-group.el: Replace replace-regexp-in-string with gnus-replace-in-string.
Katsumi Yamaoka [Wed, 27 Oct 2010 01:09:11 +0000 (01:09 +0000)]
gnus-group.el: Replace replace-regexp-in-string with gnus-replace-in-string.

13 years ago* src/eval.c (init_eval_once): Set max_lisp_eval_depth to 600.
Juanma Barranquero [Tue, 26 Oct 2010 22:23:09 +0000 (00:23 +0200)]
* src/eval.c (init_eval_once): Set max_lisp_eval_depth to 600.
  Otherwise, bootstrapping on Windows fails to compile macroexp.el.

13 years agoshr.el (shr-tag-div): Added.
Katsumi Yamaoka [Tue, 26 Oct 2010 22:08:30 +0000 (22:08 +0000)]
shr.el (shr-tag-div): Added.

13 years agocmds.c: (internal_self_insert): Don't insert for negative arguments.
Eli Zaretskii [Tue, 26 Oct 2010 18:47:19 +0000 (20:47 +0200)]
cmds.c: (internal_self_insert): Don't insert for negative arguments.

13 years agoFix bug #7281.
Eli Zaretskii [Tue, 26 Oct 2010 18:03:34 +0000 (20:03 +0200)]
Fix bug #7281.

 cmds.c (internal_self_insert): Don't insert if argument N is zero.

13 years ago* lisp/term/common-win.el (xw-defined-colors): Simplify the 'ns case.
Glenn Morris [Tue, 26 Oct 2010 16:56:11 +0000 (09:56 -0700)]
* lisp/term/common-win.el (xw-defined-colors): Simplify the 'ns case.

13 years ago* term/ns-win.el (ns-new-frame, ns-show-prefs): Don't add to global map. * term...
Adrian Robert [Tue, 26 Oct 2010 13:20:00 +0000 (16:20 +0300)]
* term/ns-win.el (ns-new-frame, ns-show-prefs): Don't add to global map.  * term/common-win.el (x-setup-function-keys): Remove most of the keymappings.  Comment on the remaining ones.

13 years agoMention server-port.
Glenn Morris [Tue, 26 Oct 2010 07:42:46 +0000 (00:42 -0700)]
Mention server-port.

13 years agoAdd ChangeLog bug ref.
Glenn Morris [Tue, 26 Oct 2010 07:41:30 +0000 (00:41 -0700)]
Add ChangeLog bug ref.

13 years agoAdd server-port option. (Bug#854)
Peter Oliver [Tue, 26 Oct 2010 07:40:07 +0000 (00:40 -0700)]
Add server-port option.  (Bug#854)
* lisp/server.el (server-port): New option.
(server-start): Use server-port.

13 years ago* lisp/term/ns-win.el (ns-ignore-2-arg): Remove unused function.
Glenn Morris [Tue, 26 Oct 2010 06:48:17 +0000 (23:48 -0700)]
* lisp/term/ns-win.el (ns-ignore-2-arg): Remove unused function.
(Mistakenly committed the ChangeLog for this earlier.)

13 years ago* gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
Jan D [Tue, 26 Oct 2010 06:09:54 +0000 (08:09 +0200)]
* gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).

13 years agoRemove ns-handle-* functions that duplicate x-handle-*.
Glenn Morris [Tue, 26 Oct 2010 03:58:19 +0000 (20:58 -0700)]
Remove ns-handle-* functions that duplicate x-handle-*.

* lisp/term/ns-win.el (ns-version-string): Remove unused declaration.
(ns-invocation-args): Change to x-invocation-args.
(ns-handle-switch, ns-handle-numeric-switch, ns-handle-iconic)
(ns-handle-name-switch, ns-ignore-2-arg): Remove.
(ns-handle-nxopen, ns-handle-nxopentemp, ns-ignore-1-arg):
Use x-invocation-args instead of ns-invocation-args.
(ns-initialize-window-system, handle-args-function-alist):
Use x-handle-args instead of ns-handle-args.
* lisp/term/common-win.el (x-handle-args): Also handle nextstep arguments.
* lisp/startup.el (command-line-ns-option-alist): Replace
ns-handle-name-switch, ns-handle-switch, ns-handle-numeric-switch,
ns-handle-iconic with the x- equivalents.

13 years ago* etc/images/README: Add (un)checked.xpm
Glenn Morris [Tue, 26 Oct 2010 03:02:30 +0000 (20:02 -0700)]
* etc/images/README: Add (un)checked.xpm
* etc/images/checked.xpm, images/unchecked.xpm: Add copyright.

13 years agoLet ns load common-win.
Glenn Morris [Tue, 26 Oct 2010 02:59:05 +0000 (19:59 -0700)]
Let ns load common-win.

* lisp/term/common-win.el (x-select-enable-clipboard):
* lisp/term/pc-win.el (x-select-enable-clipboard): Doc fix.

* lisp/term/ns-win.el: No need to require cl when compiling.
(x-display-name, x-setup-function-keys, x-select-text, x-colors)
(xw-defined-colors): Use the common-win definitions.
(ns-alternatives-map): Make it an obsolete alias for x-alternatives-map.
(ns-handle-iconic): Make it an alias for x-handle-iconic.
* lisp/term/common-win.el (x-select-text, x-alternatives-map)
(x-setup-function-keys, x-colors, xw-defined-colors): Handle 'ns case.
* lisp/loadup.el [ns]: Load common-win.

13 years agoMake epa-mail-encrypt expand mail aliases.
Daiki Ueno [Tue, 26 Oct 2010 01:31:27 +0000 (10:31 +0900)]
Make epa-mail-encrypt expand mail aliases.

13 years agoMake epa-mail-encrypt handle local-part only recipients.
Daiki Ueno [Tue, 26 Oct 2010 01:02:08 +0000 (10:02 +0900)]
Make epa-mail-encrypt handle local-part only recipients.

* epa-mail.el (epa-mail-encrypt): Handle local-part only
recipients (Bug#7280).

13 years agognus-util.el: Remove `gnus-with-local-quit'.
Julien Danjou [Mon, 25 Oct 2010 22:02:00 +0000 (22:02 +0000)]
gnus-util.el: Remove `gnus-with-local-quit'.
gnus-demon.el (gnus-demon-init): Use run-with-idle-timer function.

13 years ago* configure.in (checking for -znocombreloc): Use AC_LANG_PROGRAM
Andreas Schwab [Mon, 25 Oct 2010 17:23:45 +0000 (19:23 +0200)]
* configure.in (checking for -znocombreloc): Use AC_LANG_PROGRAM
to avoid warning.

13 years agoDocument GTK Emacs kill on display close in PROBLEMS.
Chong Yidong [Mon, 25 Oct 2010 16:08:27 +0000 (12:08 -0400)]
Document GTK Emacs kill on display close in PROBLEMS.

* src/xterm.c (x_connection_closed): Expand comment.

13 years agoDocument GTK Emacs kill on display close in PROBLEMS.
Chong Yidong [Mon, 25 Oct 2010 16:04:54 +0000 (12:04 -0400)]
Document GTK Emacs kill on display close in PROBLEMS.

* src/xterm.c (x_connection_closed): Update comment.

13 years agoDon't use the word "PGP", since it is a non-free program.
Daiki Ueno [Mon, 25 Oct 2010 12:24:44 +0000 (21:24 +0900)]
Don't use the word "PGP", since it is a non-free program.

13 years ago* dbusbind.c (Fdbus_call_method_asynchronously)
Michael Albinus [Mon, 25 Oct 2010 11:46:21 +0000 (13:46 +0200)]
* dbusbind.c (Fdbus_call_method_asynchronously)
(Fdbus_register_signal, Fdbus_register_method): Check, whether
`dbus-registered-objects-table' is initialized.

Must not be synchronized with the trunk.

13 years agognus-sum.el (gnus-summary-select-article): Fix type error in checking the original...
Lars Magne Ingebrigtsen [Mon, 25 Oct 2010 05:43:08 +0000 (05:43 +0000)]
gnus-sum.el (gnus-summary-select-article): Fix type error in checking the original article buffer.

13 years agoSimplifications for lisp/term/common-win.el
Glenn Morris [Mon, 25 Oct 2010 05:39:21 +0000 (22:39 -0700)]
Simplifications for lisp/term/common-win.el

* lisp/term/common-win.el (x-handle-switch): Simplify with pop.
Optionally handle numeric switches.
(x-handle-numeric-switch): Just call x-handle-switch.
(x-handle-initial-switch, x-handle-xrm-switch, x-handle-geometry)
(x-handle-name-switch, x-handle-display, x-handle-args):
Simplify with pop.

13 years agoAdd alternative key bindings for epa-mail commands.
Daiki Ueno [Mon, 25 Oct 2010 03:06:35 +0000 (12:06 +0900)]
Add alternative key bindings for epa-mail commands.

* epa.texi (Mail-mode integration): Add alternative key bindings
for epa-mail commands; escape comma.

13 years agoMove ns-win.el's rather wacky menu adjustments to menu-bar.el.
Glenn Morris [Mon, 25 Oct 2010 00:48:26 +0000 (17:48 -0700)]
Move ns-win.el's rather wacky menu adjustments to menu-bar.el.

* lisp/term/ns-win.el: Do not require easymenu.
(menu-bar-edit-menu) <copy, paste, paste-from-menu, separator-undo>:
<spell>: Move adjustments to menu-bar.el.
* lisp/menu-bar.el (menu-bar-edit-menu) <copy, paste, paste-from-menu>:
<separator-undo, spell>: Move ns-win's adjustments here.
* lisp/loadup.el [ns]: Do not load easymenu.

* src/Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
* lib-src/makefile.w32-in (OTHER_PLATFORM_SUPPORT): Remove easymenu.elc.

13 years agoFix some ChangeLog entries.
Juanma Barranquero [Mon, 25 Oct 2010 00:04:44 +0000 (02:04 +0200)]
Fix some ChangeLog entries.

13 years agoAvoid inline image variables for checkboxes (Bug#7222).
Chong Yidong [Sun, 24 Oct 2010 23:40:55 +0000 (19:40 -0400)]
Avoid inline image variables for checkboxes (Bug#7222).

* etc/images/checked.xpm:
* etc/images/unchecked.xpm: New images.

* image.el (image-checkbox-checked, image-checkbox-unchecked):
Deleted (Bug#7222).

* startup.el (fancy-startup-tail): Instead of using inline images,
refer to image files from etc/.

* wid-edit.el (checkbox): Likewise.
(widget-image-find): Center image specs.

13 years agoSync docs of some W32 and X C functions.
Glenn Morris [Sun, 24 Oct 2010 22:45:10 +0000 (15:45 -0700)]
Sync docs of some W32 and X C functions.

* src/w32fns.c (Fx_synchronize, Fx_change_window_property)
(Fx_window_property, Fx_file_dialog):
* src/xfns.c (Fx_synchronize, Fx_change_window_property)
(Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.