bpt/emacs.git
13 years agoMerge changes from emacs-23 branch
Chong Yidong [Sat, 27 Nov 2010 20:04:57 +0000 (15:04 -0500)]
Merge changes from emacs-23 branch

13 years agoFix log-edit-font-lock-keywords (Bug#6465).
Chong Yidong [Sat, 27 Nov 2010 19:41:49 +0000 (14:41 -0500)]
Fix log-edit-font-lock-keywords (Bug#6465).
* log-edit.el (log-edit-font-lock-keywords): Don't try matching
stand-alone lines, since that is handled by log-edit-match-to-eoh
(Bug#6465).

13 years agoFix bug #7308 with `locate' on MS-Windows.
Eduard Wiebe [Sat, 27 Nov 2010 09:56:49 +0000 (11:56 +0200)]
Fix bug #7308 with `locate' on MS-Windows.

 dired.el (dired-get-filename): Replace backslashes with slashes
 in file names on MS-Windows, needed by `locate'.
 locate.el (locate-default-make-command-line): Don't consider
 drive letter and root directory part of
 `directory-listing-before-filename-regexp'.
 (locate-post-command-hook, locate-post-command-hook): New defcustoms.

13 years agoFix bug #7446 with overrunning input buffer in ebrowse.
Joe Matarazzo [Sat, 27 Nov 2010 09:29:22 +0000 (11:29 +0200)]
Fix bug #7446 with overrunning input buffer in ebrowse.

 ebrowse.c (yylex): If end of input buffer encountered while
 searching for a newline after "//", return YYEOF.

13 years agoExclude NL and TAB from c0-control group for glyphless display.
Eli Zaretskii [Sat, 27 Nov 2010 08:40:19 +0000 (10:40 +0200)]
Exclude NL and TAB from c0-control group for glyphless display.

 international/characters.el (glyphless-char-display-control):
 Exclude newline and TAB from the c0-control group.

13 years agosendmail.el trivia.
Glenn Morris [Sat, 27 Nov 2010 03:29:06 +0000 (19:29 -0800)]
sendmail.el trivia.
* lisp/mail/sendmail.el (build-mail-aliases): Doc fix for autoload.
(expand-mail-aliases): Remove unnecessary autoload.

13 years ago* lisp/allout.el (allout-command-prefix, allout-mode-map): Declare.
Glenn Morris [Sat, 27 Nov 2010 03:25:35 +0000 (19:25 -0800)]
* lisp/allout.el (allout-command-prefix, allout-mode-map): Declare.

13 years ago* lisp/shell.el (shell-dir-cookie-re): Move definition before use.
Glenn Morris [Sat, 27 Nov 2010 03:22:00 +0000 (19:22 -0800)]
* lisp/shell.el (shell-dir-cookie-re): Move definition before use.

13 years agoFix emacsbug.el errors clearly flagged by the byte-compiler.
Glenn Morris [Sat, 27 Nov 2010 03:15:59 +0000 (19:15 -0800)]
Fix emacsbug.el errors clearly flagged by the byte-compiler.
* lisp/mail/emacsbug.el (report-emacs-bug-create-existing-bugs-buffer):
Replace undefined CL functions.

13 years agoRegenerate ldefs-boot.el.
Glenn Morris [Sat, 27 Nov 2010 03:02:53 +0000 (19:02 -0800)]
Regenerate ldefs-boot.el.

13 years ago* emacs-lisp/smie.el (smie-prec2->grammar): Simplify handling
Stefan Monnier [Fri, 26 Nov 2010 21:33:21 +0000 (16:33 -0500)]
* emacs-lisp/smie.el (smie-prec2->grammar): Simplify handling
of :smie-open/close-alist.
(smie-next-sexp): Make it accept a "start token" as argument.
(smie-indent-keyword): Be careful not to misidentify tokens that span
more than one line, as empty lines.  Add argument `token'.

13 years agoForce left-to-right paragraph direction in echo area and prog-mode buffers.
Eli Zaretskii [Fri, 26 Nov 2010 19:10:26 +0000 (21:10 +0200)]
Force left-to-right paragraph direction in echo area and prog-mode buffers.

 src/xdisp.c (set_message_1): Force paragraph direction in echo area
 be left-to-right.
 lisp/simple.el (prog-mode): Set bidi-paragraph-direction to left-to-right.

13 years agoterm/pc-win.el (x-get-selection-internal): Emulation for MS-DOS.
Eli Zaretskii [Fri, 26 Nov 2010 18:38:40 +0000 (20:38 +0200)]
term/pc-win.el (x-get-selection-internal): Emulation for MS-DOS.

13 years agoFix and document components of mouse event position.
Eli Zaretskii [Fri, 26 Nov 2010 18:15:09 +0000 (20:15 +0200)]
Fix and document components of mouse event position.

 src/keyboard.c (make_lispy_position): Put a meaningful value in yret
 when the click is on the header or mode line.
 doc/lispref/commands.texi (Click Events): Document the values of X, Y and
 COL, ROW in the event's position, when the click is on the header or
 mode line, on the fringes, or in the margins.

13 years agomail/rmailmm.el (rmail-mime-insert-multipart): For unsupported multipart subtypes...
Kenichi Handa [Fri, 26 Nov 2010 12:58:41 +0000 (21:58 +0900)]
mail/rmailmm.el (rmail-mime-insert-multipart): For unsupported multipart subtypes, insert all as usual.

13 years agocolor.el: Rename various rgb functions to srgb.
Julien Danjou [Fri, 26 Nov 2010 11:19:00 +0000 (11:19 +0000)]
color.el: Rename various rgb functions to srgb.

13 years agonnimap.el (nnimap-request-set-mark): Remove left over.
Gnus developers [Fri, 26 Nov 2010 11:03:16 +0000 (11:03 +0000)]
nnimap.el (nnimap-request-set-mark): Remove left over.
nnimap.el (nnimap-get-groups): Allow non-quoted strings as mailbox names.

13 years agomail/rmail.el: Require rfc2047.
Kenichi Handa [Fri, 26 Nov 2010 07:58:35 +0000 (16:58 +0900)]
mail/rmail.el: Require rfc2047.

13 years agoshr.el (shr-insert): Revert last change.
Katsumi Yamaoka [Fri, 26 Nov 2010 07:35:42 +0000 (07:35 +0000)]
shr.el (shr-insert): Revert last change.
shr.el (shr-find-fill-point): Never leave point being at bol; relax the kinsoku limitation when rendering tables.

13 years agoImprove rmail's MIME handling.
Kenichi Handa [Fri, 26 Nov 2010 04:06:59 +0000 (13:06 +0900)]
Improve rmail's MIME handling.

13 years ago* lisp/calendar/diary-lib.el (diary-outlook-format): Remove pointless element.
Glenn Morris [Fri, 26 Nov 2010 03:22:49 +0000 (19:22 -0800)]
* lisp/calendar/diary-lib.el (diary-outlook-format): Remove pointless element.

13 years ago* lisp/calendar/diary-lib.el (diary-outlook-format-1): Another fix.
Glenn Morris [Fri, 26 Nov 2010 03:19:58 +0000 (19:19 -0800)]
* lisp/calendar/diary-lib.el (diary-outlook-format-1): Another fix.

13 years ago* lisp/calendar/diary-lib.el (diary-outlook-format-1): Fix match-strings.
Glenn Morris [Fri, 26 Nov 2010 03:14:03 +0000 (19:14 -0800)]
* lisp/calendar/diary-lib.el (diary-outlook-format-1): Fix match-strings.

13 years agodiary-lib.el diary-outlook* changes.
Glenn Morris [Fri, 26 Nov 2010 03:10:16 +0000 (19:10 -0800)]
diary-lib.el diary-outlook* changes.

* lisp/calendar/diary-lib.el (diary-outlook-format-1): New function, so that
diary-outlook-formats can be sensitive to calendar-date-style.
(diary-outlook-formats): Simplify the default setting.
(diary-from-outlook-internal): Pass subject and body as arguments.
Use dolist rather than dotimes.  Don't save the diary buffer.
(diary-from-outlook-gnus, diary-from-outlook-rmail):
Pass subject and body as explicit arguments to the -internal function.

13 years agonnmail.el (nnmail-expiry-target-group): Protect against degenerate results from ...
Lars Magne Ingebrigtsen [Fri, 26 Nov 2010 02:37:23 +0000 (02:37 +0000)]
nnmail.el (nnmail-expiry-target-group): Protect against degenerate results from -accept-article.

13 years agognus-art.el (gnus-url-mailto): Unfold URLs before using them.
Lars Magne Ingebrigtsen [Fri, 26 Nov 2010 02:31:57 +0000 (02:31 +0000)]
gnus-art.el (gnus-url-mailto): Unfold URLs before using them.
nnheader.el (nnheader-update-marks-actions): Fix typo in last checkin.
shr-color.el: Require cl when compiling.

13 years ago* mail/rfc2368.el (rfc2368-parse-mailto-url): Unfold URLs before
Lars Magne Ingebrigtsen [Fri, 26 Nov 2010 02:28:03 +0000 (03:28 +0100)]
* mail/rfc2368.el (rfc2368-parse-mailto-url): Unfold URLs before
parsing them.  This makes mailto:...?subject=foo\nbar work.

13 years agonnimap.el (nnimap-request-set-mark): Add is "+", not "-".
Lars Magne Ingebrigtsen [Fri, 26 Nov 2010 02:17:55 +0000 (02:17 +0000)]
nnimap.el (nnimap-request-set-mark): Add is "+", not "-".

13 years agonnml.el, nnfolder.el, nntp.el (*-request-set-mark): Extend syntax with 'set.
Lars Magne Ingebrigtsen [Fri, 26 Nov 2010 02:11:40 +0000 (02:11 +0000)]
nnml.el, nnfolder.el, nntp.el (*-request-set-mark): Extend syntax with 'set.
nnheader.el, nntp.el, nnfolder.el, nnml.el (*-request-set-mark): Refactor out nnheader-update-marks-actions and use it throughout.
nnmaildir.el (nnmaildir-request-set-mark): Be explicit about 'set.
gnus-sum.el (gnus-summary-push-marks-to-backend): Use 'set instead of 'add and 'delete to set backend marks.

13 years agonnimap.el (nnimap-find-uid-response): The UID is the last element in the list.
Lars Magne Ingebrigtsen [Fri, 26 Nov 2010 01:27:37 +0000 (01:27 +0000)]
nnimap.el (nnimap-find-uid-response): The UID is the last element in the list.

13 years agonnimap.el: Use the UID returned when copying and accepting articles, instead of searc...
Lars Magne Ingebrigtsen [Fri, 26 Nov 2010 01:14:40 +0000 (01:14 +0000)]
nnimap.el: Use the UID returned when copying and accepting articles, instead of searching for the ID (on the servers that support it).
nnimap.el (nnimap-get-groups): Reimplement to work with folded lines.

13 years agonnimap.el (nnimap-last-response-string): Remove the unfolding -- it introduces regres...
Lars Magne Ingebrigtsen [Fri, 26 Nov 2010 00:45:03 +0000 (00:45 +0000)]
nnimap.el (nnimap-last-response-string): Remove the unfolding -- it introduces regressions in article selection.

13 years agonnimap.el (nnimap-last-response-string): Fix last unfolding fix.
Lars Magne Ingebrigtsen [Thu, 25 Nov 2010 23:43:16 +0000 (23:43 +0000)]
nnimap.el (nnimap-last-response-string): Fix last unfolding fix.

13 years agomessage.el (message-called-interactively-p): A temporary macro.
Katsumi Yamaoka [Thu, 25 Nov 2010 23:20:19 +0000 (23:20 +0000)]
message.el (message-called-interactively-p): A temporary macro.
message.el (message-goto-body): Use it temporarily.

13 years agonnimap.el (nnimap-unfold-quoted-lines): Refactor out.
Lars Magne Ingebrigtsen [Thu, 25 Nov 2010 23:05:10 +0000 (23:05 +0000)]
nnimap.el (nnimap-unfold-quoted-lines): Refactor out.
nnimap.el (nnimap-last-response-string): Unfold quoted lines, if they exist.

13 years ago* diff.el (diff): Fix it for good, hopefully, this time.
Stefan Monnier [Thu, 25 Nov 2010 21:59:30 +0000 (16:59 -0500)]
* diff.el (diff): Fix it for good, hopefully, this time.

13 years agoFixing bug #7474 also fixes #7481.
Eli Zaretskii [Thu, 25 Nov 2010 20:28:14 +0000 (22:28 +0200)]
Fixing bug #7474 also fixes #7481.

13 years agoFix bug #7474 with cursor positioning in overlay strings.
Eli Zaretskii [Thu, 25 Nov 2010 18:38:09 +0000 (20:38 +0200)]
Fix bug #7474 with cursor positioning in overlay strings.

 xdisp.c (set_cursor_from_row): Don't forget to consider the
 `cursor' property of the first character in overlay strings.

13 years agoshr.el (shr-insert): Fix the way to fold lines.
Gnus developers [Thu, 25 Nov 2010 14:51:51 +0000 (14:51 +0000)]
shr.el (shr-insert): Fix the way to fold lines.
shr-color.el (shr-color->hexadecimal): Use color-rgb->hex
color.el: Rename from color-lab.el
 (color-rgb->hex): Add.
 (color-complement): Add.
 (color-complement-hex): Add.

13 years agognus-sum.el (gnus-summary-widget-forward): Add, and bind to [tab].
Julien Danjou [Thu, 25 Nov 2010 11:14:14 +0000 (11:14 +0000)]
gnus-sum.el (gnus-summary-widget-forward): Add, and bind to [tab].

13 years agoshr-color.el (shr-color-visible): Don't bug out if the colour names don't exist.
Lars Magne Ingebrigtsen [Thu, 25 Nov 2010 07:46:51 +0000 (07:46 +0000)]
shr-color.el (shr-color-visible): Don't bug out if the colour names don't exist.

13 years agomml.el (mml-preview): Make sure to bind gnus-displaying-mime to nil, assuming that...
Katsumi Yamaoka [Thu, 25 Nov 2010 05:09:25 +0000 (05:09 +0000)]
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.

13 years ago* lisp/vc/diff.el (diff): Fix last change.
Stefan Monnier [Thu, 25 Nov 2010 04:43:56 +0000 (23:43 -0500)]
* lisp/vc/diff.el (diff): Fix last change.

13 years agomerge emacs-23
Kenichi Handa [Thu, 25 Nov 2010 03:56:41 +0000 (12:56 +0900)]
merge emacs-23

13 years agoFix decoding of emacs-mule coding system.
Kenichi Handa [Thu, 25 Nov 2010 03:55:14 +0000 (12:55 +0900)]
Fix decoding of emacs-mule coding system.

13 years agoshr.el (shr-get-background): Fix argument name.
Katsumi Yamaoka [Thu, 25 Nov 2010 01:13:37 +0000 (01:13 +0000)]
shr.el (shr-get-background): Fix argument name.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Wed, 24 Nov 2010 22:54:47 +0000 (22:54 +0000)]
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.

13 years ago* lisp/emacs-lisp/pcase.el: Improve pcase-let. Use "pcase--" prefix.
Stefan Monnier [Wed, 24 Nov 2010 16:39:51 +0000 (11:39 -0500)]
* 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.

13 years agonsterm.m (keyDown): Compare Left key masks exactly (Bug#7458).
Jan Djärv [Wed, 24 Nov 2010 14:52:14 +0000 (15:52 +0100)]
nsterm.m (keyDown): Compare Left key masks exactly (Bug#7458).

13 years agocolor-lab: Require 'cl when compiling.
Julien Danjou [Wed, 24 Nov 2010 12:56:50 +0000 (12:56 +0000)]
color-lab: Require 'cl when compiling.

13 years agocolor-lab.el: Fix all expt calls to use float type.
Gnus developers [Wed, 24 Nov 2010 11:32:22 +0000 (11:32 +0000)]
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.

13 years agoBug 7458: Make key press like Left + right ctrl work when right is not control.
Jan Djärv [Wed, 24 Nov 2010 07:50:08 +0000 (08:50 +0100)]
Bug 7458: Make key press like Left + right ctrl work when right is not control.
Ditto Alt and Command.

* src/nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
(NSLeftAlternateKeyMask): New defines.
(keyDown): Parse left and right keys separatly.

13 years agoshr.el (shr-insert-color-overlay): Pass rgb(rrr, ggg, bbb) type color expression...
Katsumi Yamaoka [Wed, 24 Nov 2010 06:50:28 +0000 (06:50 +0000)]
shr.el (shr-insert-color-overlay): Pass rgb(rrr, ggg, bbb) type color expression to shr-color-check as is.

13 years ago(mailclient-send-it): Bind `browse-url-mailto-function' to nil to
Lars Magne Ingebrigtsen [Wed, 24 Nov 2010 06:34:12 +0000 (07:34 +0100)]
(mailclient-send-it): Bind `browse-url-mailto-function' to nil to
use the external browser function to send the mail.

13 years agoIntroduce a new `browse-url-mailto-function' variable for mailto: URLs.
Lars Magne Ingebrigtsen [Wed, 24 Nov 2010 06:29:06 +0000 (07:29 +0100)]
Introduce a new `browse-url-mailto-function' variable for mailto: URLs.

13 years agoshr-color.el (shr-color->hexadecimal): Ignore case of color names.
Katsumi Yamaoka [Wed, 24 Nov 2010 06:22:51 +0000 (06:22 +0000)]
shr-color.el (shr-color->hexadecimal): Ignore case of color names.

13 years ago* progmodes/which-func.el (which-func-imenu-joiner-function):
Stefan Monnier [Wed, 24 Nov 2010 02:21:55 +0000 (21:21 -0500)]
* 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.

13 years agocolor-lab.el: Add coding cookie.
Katsumi Yamaoka [Wed, 24 Nov 2010 01:28:37 +0000 (01:28 +0000)]
color-lab.el: Add coding cookie.
color-lab.el (float-pi): Use eval-and-compile.

13 years agoshr.el (shr-tag-font): Resurrect shr-tag-font again, since it's needed to parse ...
Lars Magne Ingebrigtsen [Wed, 24 Nov 2010 00:35:23 +0000 (00:35 +0000)]
shr.el (shr-tag-font): Resurrect shr-tag-font again, since it's needed to parse <font color="red"> entries.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Tue, 23 Nov 2010 22:24:15 +0000 (22:24 +0000)]
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.

13 years agoAvoid GCC warning with inline functions.
Eli Zaretskii [Tue, 23 Nov 2010 20:27:22 +0000 (22:27 +0200)]
Avoid GCC warning with inline functions.

 intervals.c (temp_set_point_both): Define before calling, to
 avoid GCC warnings.

13 years agoFix compilation on Windows following 2010-11-23T18:47:23Z!dann@ics.uci.edu.
Eli Zaretskii [Tue, 23 Nov 2010 20:21:16 +0000 (22:21 +0200)]
Fix compilation on Windows following 2010-11-23T18:47:23Z!dann@ics.uci.edu.

 config.nt (EXTERNALLY_VISIBLE): Define.

13 years ago* net/tramp.el (tramp-default-method-alist)
Michael Albinus [Tue, 23 Nov 2010 19:52:25 +0000 (20:52 +0100)]
* net/tramp.el (tramp-default-method-alist)
(tramp-default-user-alist, tramp-default-proxies-alist): Adapt
custom options type.  (Bug#7445)

13 years ago* src/nsmenu.m: Use #include <config.h> instead of "config.h".
Dan Nicolaescu [Tue, 23 Nov 2010 19:36:48 +0000 (11:36 -0800)]
* src/nsmenu.m: Use #include <config.h> instead of "config.h".

13 years agoMove extern declarations from term.c to lisp.h.
Dan Nicolaescu [Tue, 23 Nov 2010 18:56:28 +0000 (10:56 -0800)]
Move extern declarations from term.c to lisp.h.

* src/term.c (Qglyphless_char,last_glyphless_glyph_frame)
(last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
Move declarations ...
* src/lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
(last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
... here.

13 years agoMark debugger related variables and functions as EXTERNALLY_VISIBLE
Dan Nicolaescu [Tue, 23 Nov 2010 18:47:23 +0000 (10:47 -0800)]
Mark debugger related variables and functions as EXTERNALLY_VISIBLE
so that they do not get optimized away.

* configure.in (EXTERNALLY_VISIBLE): New definition.

* src/emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
(gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
(gdb_pvec_type):
* src/print.c (print_output_debug_flag):
* src/lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
(safe_debug_print): New declaration.

13 years agoTweak previous nxml doc change.
Glenn Morris [Tue, 23 Nov 2010 18:16:21 +0000 (10:16 -0800)]
Tweak previous nxml doc change.

13 years agoInclude <sys/ioctl.h> unconditionally.
Dan Nicolaescu [Tue, 23 Nov 2010 18:09:55 +0000 (10:09 -0800)]
Include <sys/ioctl.h> unconditionally.

* configure.in <AC_CHECK_HEADERS>: Remove sys/ioctl.h.
* src/xterm.c:
* src/systty.h:
* src/sound.c: Include <sys/ioctl.h> unconditionally.

13 years ago* lisp/eshell/: Use with-silent-modifications.
Stefan Monnier [Tue, 23 Nov 2010 17:36:15 +0000 (12:36 -0500)]
* 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.

13 years agoAlways issue a full prompt in vc-merge-branch operation.
Chong Yidong [Tue, 23 Nov 2010 15:13:43 +0000 (10:13 -0500)]
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.

13 years ago* lisp/shell.el (shell): Use current-buffer by default if it's already
Stefan Monnier [Tue, 23 Nov 2010 14:19:54 +0000 (09:19 -0500)]
* 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>.

13 years agoshr-color.el: fix several function calls.
Julien Danjou [Tue, 23 Nov 2010 10:22:49 +0000 (10:22 +0000)]
shr-color.el: fix several function calls.
shr.el: replace newline with space in style parsing

13 years ago* doc/misc/nxml-mode.texi (Introduction): New section.
Glenn Morris [Tue, 23 Nov 2010 09:19:57 +0000 (01:19 -0800)]
* doc/misc/nxml-mode.texi (Introduction): New section.

This summarizes the still-relevant information from the standalone
nxml README fle, mistakenly removed in the initial import of nxml-mode.

See http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01716.html
and associated thread, also bug#7456.

13 years agoChangeLog fix for initial nxml import.
Glenn Morris [Tue, 23 Nov 2010 09:16:40 +0000 (01:16 -0800)]
ChangeLog fix for initial nxml import.

13 years agoshr.el (shr-color->hexadecimal): Autoload.
Lars Magne Ingebrigtsen [Tue, 23 Nov 2010 08:21:09 +0000 (08:21 +0000)]
shr.el (shr-color->hexadecimal): Autoload.
shr.el (shr-descend): Add color to all tags and remove the tag-font and tag-span functions.

13 years agoSmall VC fixes for doc/emacs.
Bob Rogers [Tue, 23 Nov 2010 08:18:26 +0000 (00:18 -0800)]
Small VC fixes for doc/emacs.

* doc/emacs/maintaining.texi (VC With A Locking VCS, VC Directory Commands):
* doc/emacs/vc1-xtra.texi (Customizing VC, General VC Options): Small fixes.

13 years ago* mail/emacsbug.el (report-emacs-bug-query-existing-bugs): Mention
Tassilo Horn [Tue, 23 Nov 2010 08:00:56 +0000 (09:00 +0100)]
* mail/emacsbug.el (report-emacs-bug-query-existing-bugs): Mention
that the keywords should be comma separated.

13 years agoetc/NEWS: Document vc-update and vc-merge changes.
Chong Yidong [Tue, 23 Nov 2010 01:26:02 +0000 (20:26 -0500)]
etc/NEWS: Document vc-update and vc-merge changes.

13 years agoInitial support for unified DVCS pull and merge.
Chong Yidong [Tue, 23 Nov 2010 01:15:08 +0000 (20:15 -0500)]
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.

13 years agoshr.el (shr-tag-color-check): Convert colors to hexadecimal with shr-color->hexadecimal.
Julien Danjou [Tue, 23 Nov 2010 00:03:44 +0000 (00:03 +0000)]
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.

13 years ago* lisp/Makefile.in: Fix up last merge.
Stefan Monnier [Mon, 22 Nov 2010 22:09:17 +0000 (17:09 -0500)]
* lisp/Makefile.in: Fix up last merge.

13 years agoCleanup diff-buffer-with-file.
Stefan Monnier [Mon, 22 Nov 2010 19:22:03 +0000 (14:22 -0500)]
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.

13 years agow32.c: Fix a typo in a comment.
Eli Zaretskii [Mon, 22 Nov 2010 18:15:07 +0000 (20:15 +0200)]
w32.c: Fix a typo in a comment.

13 years agoBack-port 2010-09-17T21:34:45Z!eliz@gnu.org from the trunk, to resolve bug #7452.
Eli Zaretskii [Mon, 22 Nov 2010 18:09:29 +0000 (20:09 +0200)]
Back-port 2010-09-17T21:34:45Z!eliz@gnu.org from the trunk, to resolve bug #7452.

 w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
 of w32api >= 3.15.

13 years ago* lisp/gnus/ChangeLog: Improve style.
Stefan Monnier [Mon, 22 Nov 2010 18:00:40 +0000 (13:00 -0500)]
* lisp/gnus/ChangeLog: Improve style.

13 years ago* lisp/files.el: Make revert work with diff-buffer-with-file.
Bob Rogers [Mon, 22 Nov 2010 17:57:46 +0000 (12:57 -0500)]
* 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

13 years agognus-art.el (gnus-url-mailto): Do not downcase args.
Julien Danjou [Mon, 22 Nov 2010 11:33:06 +0000 (11:33 +0000)]
gnus-art.el (gnus-url-mailto): Do not downcase args.

13 years ago* textmodes/reftex-ref.el (reftex-goto-label): Use the current
Tassilo Horn [Mon, 22 Nov 2010 08:09:41 +0000 (09:09 +0100)]
* textmodes/reftex-ref.el (reftex-goto-label): Use the current
\ref's or \pageref's value as default instead of initial input.

13 years agobugtracker: REALLY correct locations of bzr *.conf files.
Eli Zaretskii [Mon, 22 Nov 2010 03:52:49 +0000 (05:52 +0200)]
bugtracker: REALLY correct locations of bzr *.conf files.

13 years ago* alloc.c (mark_maybe_object): Return early if given a Lisp integer (Bug#6301).
YAMAMOTO Mitsuharu [Mon, 22 Nov 2010 00:43:53 +0000 (19:43 -0500)]
* alloc.c (mark_maybe_object): Return early if given a Lisp integer (Bug#6301).

13 years agoFix image cache marking bug (Bug#6301).
YAMAMOTO Mitsuharu [Mon, 22 Nov 2010 00:39:42 +0000 (19:39 -0500)]
Fix image cache marking bug (Bug#6301).
* src/alloc.c (mark_terminals): Ensure that the image cache is marked
even if the terminal object was marked earlier (Bug#6301).

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Sun, 21 Nov 2010 22:46:16 +0000 (22:46 +0000)]
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.

13 years agoThe default value of `backup-by-copying-when-mismatch' is now t.
Michael Albinus [Sun, 21 Nov 2010 19:46:48 +0000 (20:46 +0100)]
The default value of `backup-by-copying-when-mismatch' is now t.

13 years ago* files.el (backup-by-copying-when-mismatch): The default value is
Michael Albinus [Sun, 21 Nov 2010 19:39:21 +0000 (20:39 +0100)]
* 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'.

13 years ago* etc/HELLO: Add ancient Greek (Bug#7418).
Ulrich Mueller [Sun, 21 Nov 2010 19:03:51 +0000 (14:03 -0500)]
* etc/HELLO: Add ancient Greek (Bug#7418).

13 years ago* tool-bar.el (tool-bar-setup): Remove save as, print and customize.
Jan Djärv [Sun, 21 Nov 2010 18:29:08 +0000 (19:29 +0100)]
* tool-bar.el (tool-bar-setup): Remove save as, print and customize.

13 years ago* editfns.c (Fbyte_to_string): Signal an error if arg is not a byte.
Chong Yidong [Sun, 21 Nov 2010 18:16:19 +0000 (13:16 -0500)]
* editfns.c (Fbyte_to_string): Signal an error if arg is not a byte.

13 years agoDocument byte-to-string in Lisp manual.
Chong Yidong [Sun, 21 Nov 2010 18:07:47 +0000 (13:07 -0500)]
Document byte-to-string in Lisp manual.

* objects.texi (Symbol Type):
* text.texi (Near Point):
* help.texi (Help Functions):
* functions.texi (Mapping Functions): Use string instead of
char-to-string in examples.

* nonascii.texi (Converting Representations): Document
byte-to-string.

* strings.texi (Creating Strings): Don't mention semi-obsolete
function char-to-string.
(String Conversion): Shorten discussion of semi-obsolete function
string-to-char.  Link to Converting Representations.

13 years agobugtracker: Correct locations of bzr *.conf files.
Eli Zaretskii [Sun, 21 Nov 2010 17:59:08 +0000 (19:59 +0200)]
bugtracker: Correct locations of bzr *.conf files.

13 years agoHighlight top-level augmented assignments in Python (Bug#6445).
Chong Yidong [Sun, 21 Nov 2010 17:12:44 +0000 (12:12 -0500)]
Highlight top-level augmented assignments in Python (Bug#6445).

* progmodes/python.el (python-font-lock-keywords): Highlight
top-level augmented assignments (Bug#6445).