Commit graph

52149 commits

Author SHA1 Message Date
Lars Magne Ingebrigtsen
fded65c75a shr-color.el (shr-color-visible): Don't bug out if the colour names don't exist. 2010-11-25 07:46:51 +00:00
Katsumi Yamaoka
e4f123a402 mml.el (mml-preview): Make sure to bind gnus-displaying-mime to nil, assuming that article displaying or another mml-preview may be interrupted for an error or for the like. 2010-11-25 05:09:25 +00:00
Stefan Monnier
d5e7b0d83d * lisp/vc/diff.el (diff): Fix last change. 2010-11-24 23:43:56 -05:00
Katsumi Yamaoka
bbf9f302f3 shr.el (shr-get-background): Fix argument name. 2010-11-25 01:13:37 +00:00
Gnus developers
144b7b5c83 Merge changes made in Gnus trunk.
shr-color.el (shr-color-visible): Really return original background if fixed.
shr.el (shr-insert-color-overlay): Replace deprecated syntax.
shr.el (shr-tag-body, shr-descend): Add background support.
shr.el (shr-tag-title): Add.
gnus-sum.el (gnus-summary-articles-in-thread): Fix a bug that causes this function to return incorrect results.
shr.el (shr-parse-style): Drop !important from styles.
message.el (message-goto-body): Remove the <#secure special-casing, which is too special.
mm-util.el (mm-enable-multibyte): Use `to' instead of t.  This fixes something or other in Emacs 23, and is backwards compatible.
message.el (message-goto-body): Use called-interactively-p.
message.el (message-in-body-p): message-goto-body returns point.
nnimap.el (nnimap-request-move-article): It's no longer necessary to clear marks before moving, since they're synced from the Gnus side first.
gnus-sum.el (gnus-summary-push-marks-to-backend): New function.
gnus-sum.el (gnus-summary-move-article): Copy over all marks before moving, so that IMAP doesn't think a new article has arrived.
message.el (message-goto-body): called-interactively-p needs a parameter, so use `any'.
gnus-cache.el (gnus-summary-insert-cached-articles): Use it.
gnus-sum.el (gnus-summary-include-articles): New function.
shr.el (shr-tag-table, shr-render-td): Add bgcolor support.
shr-color.el (shr-color-visible): Fix docstring.
shr.el (shr-insert-background-overlay): Fix typo.
shr.el (shr-render-td): Copy the background before rendering.
2010-11-24 22:54:47 +00:00
Stefan Monnier
872ab16459 * lisp/emacs-lisp/pcase.el: Improve pcase-let. Use "pcase--" prefix.
(pcase--dontcare-upats): New var.
(pcase-let, pcase-let*): Generate better code.
Accept the same bodies as `let'.
(pcase-dolist): New macro.
(pcase--trivial-upat-p): New helper function.
(pcase--expand): Strip leading "(let nil" if any.
2010-11-24 11:39:51 -05:00
Julien Danjou
5b42dfdd64 color-lab: Require 'cl when compiling. 2010-11-24 12:56:50 +00:00
Gnus developers
67d43a1d2f color-lab.el: Fix all expt calls to use float type.
shr-color.el: only return hexadecimal part of colors.
shr.el: Protect against non-existant colour names.
2010-11-24 11:32:22 +00:00
Katsumi Yamaoka
69881db0cb shr.el (shr-insert-color-overlay): Pass rgb(rrr, ggg, bbb) type color expression to shr-color-check as is. 2010-11-24 06:50:28 +00:00
Lars Magne Ingebrigtsen
7bd9b9d8b4 (mailclient-send-it): Bind `browse-url-mailto-function' to nil to
use the external browser function to send the mail.
2010-11-24 07:34:12 +01:00
Lars Magne Ingebrigtsen
876d1684cf Introduce a new `browse-url-mailto-function' variable for mailto: URLs. 2010-11-24 07:29:06 +01:00
Katsumi Yamaoka
4b8b6f602a shr-color.el (shr-color->hexadecimal): Ignore case of color names. 2010-11-24 06:22:51 +00:00
Stefan Monnier
33aeea0eb6 * progmodes/which-func.el (which-func-imenu-joiner-function):
Return a string, as expected.
(which-function-mode): Make sure we stop any previous timer before
starting a new one.
2010-11-23 21:21:55 -05:00
Katsumi Yamaoka
463bcf116e color-lab.el: Add coding cookie.
color-lab.el (float-pi): Use eval-and-compile.
2010-11-24 01:28:37 +00:00
Lars Magne Ingebrigtsen
1110d53b4e shr.el (shr-tag-font): Resurrect shr-tag-font again, since it's needed to parse <font color="red"> entries. 2010-11-24 00:35:23 +00:00
Gnus developers
094ae2abf3 Merge changes made in Gnus trunk.
nnheader.el (nnheader-parse-head): Bug fix.  Properly position point when parsing headers.
nnspool.el (nnspool-insert-nov-head): Bug fix.  Make sure point is positioned properly when parsing headers.
shr-color.el (shr-color->hexadecimal): Add support for color names.
color-lab.el (boundp): Bind float-pi for Emacs < 23.3.
shr.el (shr-insert-color-overlay): Split stuff like "#444444 !important" to find the real colour.
2010-11-23 22:24:15 +00:00
Michael Albinus
e40fc74517 * net/tramp.el (tramp-default-method-alist)
(tramp-default-user-alist, tramp-default-proxies-alist): Adapt
custom options type.  (Bug#7445)
2010-11-23 20:52:25 +01:00
Glenn Morris
4d47208a22 Tweak previous nxml doc change. 2010-11-23 10:16:21 -08:00
Stefan Monnier
6e13206c03 * lisp/eshell/: Use with-silent-modifications.
* lisp/eshell/esh-cmd.el (eshell-parse-command):
* lisp/eshell/esh-arg.el (eshell-parse-arguments):
* lisp/eshell/em-script.el (eshell-source-file):
Use with-silent-modifications.
2010-11-23 12:36:15 -05:00
Chong Yidong
3d92f44ea0 Always issue a full prompt in vc-merge-branch operation.
* vc/vc.el (vc-merge): Remove optional arg PROMPT.  Always prompt
for a merge location.

* vc/vc-bzr.el (vc-bzr-pull): Remove unused var.
(vc-bzr-merge-branch): Always prompt.
(vc-bzr-async-command): Use the full branch filename.
2010-11-23 10:13:43 -05:00
Stefan Monnier
8f5f1e686e * lisp/shell.el (shell): Use current-buffer by default if it's already
a shell mode buffer and its process is dead.  Suggested by <jemarch@gnu.org>.
2010-11-23 09:19:54 -05:00
Julien Danjou
a299480856 shr-color.el: fix several function calls.
shr.el: replace newline with space in style parsing
2010-11-23 10:22:49 +00:00
Glenn Morris
f98a3c9483 ChangeLog fix for initial nxml import. 2010-11-23 01:16:40 -08:00
Lars Magne Ingebrigtsen
ebe7955725 shr.el (shr-color->hexadecimal): Autoload.
shr.el (shr-descend): Add color to all tags and remove the tag-font and tag-span functions.
2010-11-23 08:21:09 +00:00
Tassilo Horn
331460ac64 * mail/emacsbug.el (report-emacs-bug-query-existing-bugs): Mention
that the keywords should be comma separated.
2010-11-23 09:00:56 +01:00
Chong Yidong
2c3160c54e Initial support for unified DVCS pull and merge.
* lisp/vc/vc-bzr.el (vc-bzr-admin-branchconf, vc-bzr-history): New vars.
(vc-bzr--branch-conf, vc-bzr-async-command, vc-bzr-pull)
(vc-bzr-merge-branch): New functions, implementing merge-branch
and pull operations.

* lisp/vc/vc.el (vc-merge): Use vc-BACKEND-merge-branch if available.
Accept optional prefix arg meaning to prompt for a command.
(vc-update): Use vc-BACKEND-pull if available.  Accept optional
prefix arg meaning to prompt for a command.
(vc-pull): Alias for vc-update.
2010-11-22 20:15:08 -05:00
Julien Danjou
ef6a29070d shr.el (shr-tag-color-check): Convert colors to hexadecimal with shr-color->hexadecimal.
shr-color.el (shr-color->hexadecimal): Add converting functions for RGB() or HSL() color representation.
shr.el (shr-tag-font): Add.
 (shr-tag-color-check): New function to get better colors.
 (shr-tag-insert-color-overlay): Factorize code between tag-font and tag-span.
shr-color.el: New file.
color-lab.el: New file.
2010-11-23 00:03:44 +00:00
Stefan Monnier
8a0eb85202 * lisp/Makefile.in: Fix up last merge. 2010-11-22 17:09:17 -05:00
Stefan Monnier
b2e4481906 Cleanup diff-buffer-with-file.
* lisp/vc/diff.el (diff-old-temp-file, diff-new-temp-file): Remove.
(diff-sentinel): Get them as arguments instead.
(diff-old-file, diff-new-file, diff-extra-args): Remove.
(diff-file-local-copy, diff-better-file-name): New funs.
(diff-no-select): Rename from diff-into-buffer.
Support buffers additionally to files.  Move `buf' arg.  Don't display buf.
Prefer closures to buffer-local variables.
(diff): Adjust accordingly.
(diff-buffer-with-file): Move from files.el.
* lisp/files.el (diff-buffer-with-file): Move to vc/diff.el.
(diff-buffer-internal): Remove.
(diff-buffer-buffer): Remove.
(save-some-buffers-action-alist): Use diff-no-select so as not to guess
the buffer name used, and so as not to mess up windows and frames.
2010-11-22 14:22:03 -05:00
Stefan Monnier
296a8e1909 * lisp/gnus/ChangeLog: Improve style. 2010-11-22 13:00:40 -05:00
Bob Rogers
6a7662bb7d * lisp/files.el: Make revert work with diff-buffer-with-file.
(diff-buffer-internal): New function extracted from diff-buffer-with-file
(diff-buffer-with-file): Use it.
* lisp/vc/diff.el (diff-into-buffer): New fun, extracted from diff.
(diff): Use it.

Fixes: debbugs:7277
2010-11-22 12:57:46 -05:00
Julien Danjou
440b1345f6 gnus-art.el (gnus-url-mailto): Do not downcase args. 2010-11-22 11:33:06 +00:00
Tassilo Horn
c799747bd6 * textmodes/reftex-ref.el (reftex-goto-label): Use the current
\ref's or \pageref's value as default instead of initial input.
2010-11-22 09:09:41 +01:00
Gnus developers
59e7588262 Merge changes made in Gnus trunk.
nnir.el: Fix typo in comments.
 (nnir-run-imap): Simplify code. No need to reverse artlist.
 (nnir-run-gmane): Use nnir-tmp-buffer for web results.
gnus-srvr.el (gnus-server-show-server): New command and keystroke.
nnimap.el (nnimap-get-capabilities): Refactor out.
 (nnimap-open-connection): Re-request capabilities after STARTTLS.
gnus.texi (Server Commands): Document gnus-server-show-server.
2010-11-21 22:46:16 +00:00
Michael Albinus
e274eb13e0 * files.el (backup-by-copying-when-mismatch): The default value is
now t.

* startup.el (normal-top-level):
* net/tramp.el (tramp-handle-insert-file-contents): Do not set
`backup-by-copying-when-mismatch'.
2010-11-21 20:39:21 +01:00
Jan Djärv
77af54d7c2 * tool-bar.el (tool-bar-setup): Remove save as, print and customize. 2010-11-21 19:29:08 +01:00
Chong Yidong
4e2f7d2a68 Highlight top-level augmented assignments in Python (Bug#6445).
* progmodes/python.el (python-font-lock-keywords): Highlight
top-level augmented assignments (Bug#6445).
2010-11-21 12:12:44 -05:00
Chong Yidong
ae3da38afc Backport fixes for Bug#5390 and Bug#5694 from trunk.
* progmodes/python.el: Add Ipython support (Bug#5390).
(python-shell-prompt-alist)
(python-shell-continuation-prompt-alist): New options.
(python--set-prompt-regexp): New function.
(inferior-python-mode, run-python, python-shell): Require
ansi-color.  Use python--set-prompt-regexp to set the comint
prompt based on the Python interpreter.
(python--prompt-regexp): New var.
(python-check-comint-prompt)
(python-comint-output-filter-function): Use it.
(run-python): Use a pipe (Bug#5694).
2010-11-21 12:04:43 -05:00
Chong Yidong
1d851570a6 Make the sys.path remove in Python mode customizable (Bug#7454).
* progmodes/python.el (run-python): Doc fix.
(python-keep-current-directory-in-path): New var (Bug#7454).
2010-11-21 11:52:05 -05:00
Jan Djärv
b7d1e14447 Add separate key mappings for left/right control/command on Nextstep (Bug#7458).
* lisp/cus-start.el (all): Add ns-right-control-modifier and
ns-right-command-modifier.

* lisp/term/ns-win.el (ns-right-control-modifier)
(ns-right-command-modifier): Defvar them.

* src/nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
Define (Bug#7458).
(NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
(EV_MODIFIERS): Check for NSRightCommandKeyMask and
NSRightControlKeyMask also (Bug#7458).
(keyDown): Ditto (Bug#7458).
(syms_of_nsterm): Defvar ns-right-command-modifier and
ns-right-control-modifier (Bug#7458).
2010-11-21 14:09:34 +01:00
Ralf Angeli
034244e55b Gnus: Fix display of message insertion marks. 2010-11-21 09:51:04 +01:00
Lars Magne Ingebrigtsen
e39a5583ef nnimap.el (nnimap-unselect-group): Made into its own function.
(nnimap-request-rename-group): Unselect group before renaming.  This had gotten lost somewhere.
 (nnimap-request-accept-article): Keep track of examined groups, and unselect the group before APPENDing to read-only groups.
 (nnimap-request-move-article): Clear flags before moving so that they can be re-set later.
2010-11-21 07:11:35 +00:00
Glenn Morris
091af6490f python.el comment. 2010-11-20 18:19:39 -08:00
Glenn Morris
89bb5d15e6 diary-lib comments. 2010-11-20 14:29:35 -08:00
Glenn Morris
c11cc37a0a Tiny authors.el updates.
* lisp/emacs-lisp/authors.el (authors-ignored-files)
(authors-valid-file-names, authors-renamed-files-alist): Add entries.
2010-11-20 14:27:56 -08:00
Glenn Morris
2f5e7c6fbb ChangeLog fixes prompted by M-x authors. 2010-11-20 14:25:56 -08:00
Chong Yidong
76dabd3729 Prompt before running print commands.
* lpr.el (lpr-buffer, print-buffer, lpr-region, print-region):
Prompt user before actually printing.
2010-11-20 15:23:26 -05:00
Tassilo Horn
7dcd777e14 * mail/emacsbug.el (report-emacs-bug-query-existing-bugs)
(report-emacs-bug-parse-query-results)
(report-emacs-bug-create-existing-bugs-buffer): Pass through
keywords used for querying the bug database to show them in the
existing bugs buffer.
2010-11-20 18:32:57 +01:00
Jan Djärv
d2bd51898e Add keyword :vert-only for tool bar items with labels not shown horizontally.
* lisp/info.el (info-tool-bar-map): Add some :vert-only keywords.

* lisp/tool-bar.el (tool-bar-setup): Add some :vert-only keywords.

* src/dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.

* src/gtkutil.c (xg_make_tool_item): Take vert_only as argument.
Set important to ! vert_only.
(xg_show_toolbar_item): Don't show label horizontally if
tool item isn't important.
(update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
xg_make_tool_item, or update important on existing tool item.

* src/keyboard.c (QCvert_only): New variable.
(parse_tool_bar_item): Check for QCvert_only.
(syms_of_keyboard): Initialize QCvert_only.
2010-11-20 15:51:25 +01:00
Eli Zaretskii
0e7c0582af Make glyphless-char-display-control a defcustom.
international/characters.el (glyphless-char-display-control):
 Make it a defcustom, with update-glyphless-char-display as its
 :set attribute.
 (top level): Don't call update-glyphless-char-display.
2010-11-20 16:35:45 +02:00