bpt/emacs.git
13 years agoBind "C-c ]" to block-closing commands in several modes.
Chong Yidong [Sun, 24 Oct 2010 00:21:59 +0000 (20:21 -0400)]
Bind "C-c ]" to block-closing commands in several modes.

Bind "C-c ]" to ...
* progmodes/f90.el (f90-mode-map): ... f90-insert-end.
* nxml/nxml-mode.el (nxml-mode-map): ... nxml-finish-element.
* textmodes/tex-mode.el (tex-mode-map): ... latex-close-block.
* textmodes/sgml-mode.el (sgml-mode-map): ... sgml-close-tag.

13 years ago* lisp/textmodes/flyspell.el (flyspell-mode): If there was an error,
Glenn Morris [Sat, 23 Oct 2010 21:58:18 +0000 (14:58 -0700)]
* lisp/textmodes/flyspell.el (flyspell-mode): If there was an error,
say what it was.

Otherwise someone is going to report the same meaningless bug for the
rest of time.

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5574
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5576
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7272

13 years ago* src/frame.c (syms_of_frame) <menu-bar-mode>: Sync doc with Lisp.
Glenn Morris [Sat, 23 Oct 2010 21:21:49 +0000 (14:21 -0700)]
* src/frame.c (syms_of_frame) <menu-bar-mode>: Sync doc with Lisp.

13 years ago* src/xdisp.c (syms_of_xdisp) <hourglass-delay>: Sync doc with Lisp.
Glenn Morris [Sat, 23 Oct 2010 21:19:02 +0000 (14:19 -0700)]
* src/xdisp.c (syms_of_xdisp) <hourglass-delay>: Sync doc with Lisp.

13 years ago* src/xdisp.c (syms_of_xdisp) <display-hourglass>: Sync doc with Lisp.
Glenn Morris [Sat, 23 Oct 2010 21:16:39 +0000 (14:16 -0700)]
* src/xdisp.c (syms_of_xdisp) <display-hourglass>: Sync doc with Lisp.

13 years agoSync docs of cursor-in-non-selected-windows between Lisp and C.
Glenn Morris [Sat, 23 Oct 2010 21:13:39 +0000 (14:13 -0700)]
Sync docs of cursor-in-non-selected-windows between Lisp and C.

* lisp/frame.el (cursor-in-non-selected-windows): Sync doc with C version.
* src/buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
Sync doc with Lisp version.

13 years agoSync docs of C and Lisp version of auto-hscroll-mode.
Glenn Morris [Sat, 23 Oct 2010 21:02:44 +0000 (14:02 -0700)]
Sync docs of C and Lisp version of auto-hscroll-mode.

* lisp/frame.el (auto-hscroll-mode): Sync doc with C version.
* src/xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Sync doc with Lisp.

13 years agoMake all copies of xw-defined-colors have identical docs.
Glenn Morris [Sat, 23 Oct 2010 20:43:59 +0000 (13:43 -0700)]
Make all copies of xw-defined-colors have identical docs.
* lisp/term/ns-win.el (xw-defined-colors):
* lisp/term/x-win.el (xw-defined-colors): Make docs identical to w32-win.

13 years agoMake all 3 copies of x-select-enable-clipboard have the same doc.
Glenn Morris [Sat, 23 Oct 2010 20:40:46 +0000 (13:40 -0700)]
Make all 3 copies of x-select-enable-clipboard have the same doc.

* lisp/term/pc-win.el (x-select-enable-clipboard):
* lisp/term/x-win.el (x-select-enable-clipboard):
* lisp/w32-vars.el (x-select-enable-clipboard): Make doc-strings identical.

13 years ago* lisp/comint.el (comint-password-prompt-regexp): Make it less vague.
Glenn Morris [Sat, 23 Oct 2010 19:56:57 +0000 (12:56 -0700)]
* lisp/comint.el (comint-password-prompt-regexp): Make it less vague.
Bump custom version.

The initial regexp-opt was bracketed by \\( \\)?, so it might as well
have not been there at all.  This change makes it non-optional, and
adds back "^".  Hopefully the behaviour is now closer to that of emacs-23,
before it was re-written in http://debbugs.gnu.org/2817.

13 years ago* test/comint-testsuite.el
Glenn Morris [Sat, 23 Oct 2010 19:51:14 +0000 (12:51 -0700)]
* test/comint-testsuite.el
(comint-testsuite--test-comint-password-prompt-regexp):
Add "Please enter the password".  (Bug#7224)

13 years agosrc/ChangeLog: Revert inadvertent change of entry date.
Eli Zaretskii [Sat, 23 Oct 2010 17:33:03 +0000 (19:33 +0200)]
src/ChangeLog: Revert inadvertent change of entry date.

13 years agoImplement mouse highlight for bidi-reordered lines.
Eli Zaretskii [Sat, 23 Oct 2010 15:30:45 +0000 (17:30 +0200)]
Implement mouse highlight for bidi-reordered lines.

 xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
 (mouse_face_from_string_pos): New function, replaces
 fast_find_string_pos.
 (note_mouse_highlight): Call it instead of fast_find_string_pos.
 (note_mode_line_or_margin_highlight): Support bidi-reordered
 strings and R2L glyph rows.  Fix comments.
 (note_mouse_highlight): When bidi reordering is turned on in a
 buffer, call next-single-property-change and
 previous-single-property-change with last argument nil.  Clear
 mouse highlight when mouse pointer is in a R2L row on the stretch
 glyph that stands for no text beyond the line end.
 (row_containing_pos): Don't return too early when CHARPOS is in a
 bidi-reordered continued line.  Return immediately when the first
 hit is found in a line that is not continued, or when an exact
 match for CHARPOS is found.
 (rows_from_pos_range): New function.
 (mouse_face_from_buffer_pos): Use it instead of calling
 row_containing_pos for START_CHARPOS and END_CHARPOS.  Rewrite the
 function to support mouse highlight in bidi-reordered lines and
 not to assume that START_CHARPOS is always in mouse_face_beg_row.
 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
 that the former is always above the latter or identical to it.
 (show_mouse_face): Support drawing highlighted R2L lines.
 (coords_in_mouse_face_p): New function, bidi-aware.
 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
 Call it instead of comparing with mouse-face members of dpyinfo.
 (note_mode_line_or_margin_highlight): Fix confusingly swapped
 usage of hpos and vpos.

13 years agoFix support for R2L lines. Tested with reordered text.
Eli Zaretskii [Sat, 23 Oct 2010 14:41:50 +0000 (16:41 +0200)]
Fix support for R2L lines.  Tested with reordered text.

 xdisp.c (mouse_face_from_string_pos): Fix support for R2L lines.

13 years agoThe range [STARTPOS..ENDPOS] is inclusive in strings.
Eli Zaretskii [Sat, 23 Oct 2010 12:58:12 +0000 (14:58 +0200)]
The range [STARTPOS..ENDPOS] is inclusive in strings.
Tested with multiline display strings.

 xdisp.c (mouse_face_from_string_pos): Fix off-by-one error when
 testing against ENDPOS.

13 years agoTested with L2R rows and mouse highlight on a single line.
Eli Zaretskii [Sat, 23 Oct 2010 12:28:28 +0000 (14:28 +0200)]
Tested with L2R rows and mouse highlight on a single line.

 xdisp.c (mouse_face_from_string_pos): Initialize the `found'
 flag to zero, and exit the outer loop when it's non-zero.  Bail
 our early if no row in the window belongs to the highlighted
 string.  Always back up after exiting the second loop.

13 years agoMention faceName for Lucid menu/dialog fonts.
Jan Djärv [Sat, 23 Oct 2010 09:18:19 +0000 (11:18 +0200)]
Mention faceName for Lucid menu/dialog fonts.

13 years agoReplace digest-doc and sorted-doc C programs with Lisp commands.
Glenn Morris [Sat, 23 Oct 2010 02:46:06 +0000 (19:46 -0700)]
Replace digest-doc and sorted-doc C programs with Lisp commands.

* lib-src/digest-doc.c, lib-src/sorted-doc.c: Remove files.
* lib-src/Makefile.in (UTILITIES): Remove digest-doc and sorted-doc.
(digest-doc${EXEEXT}, sorted-doc${EXEEXT}): Remove rules.
* lib-src/makefile.w32-in (ALL): Remove digest-doc and sorted-doc.
($(BLD)/sorted-doc.exe, $(BLD)/digest-doc.exe, sorted-doc, digest-doc)
($(BLD)/digest-doc.$(O), $(BLD)/sorted-doc.$(O)): Remove rules.
(install): Don't install digest-doc.exe or sorted-doc.exe.

* lisp/help-fns.el (doc-file-to-man, doc-file-to-info): New commands.

* doc/lispref/help.texi (Documentation Basics): Remove mentions of
digest-doc and sorted-doc.

* INSTALL, nt/README, nt/README.W32: Do not mention digest-doc and sorted-doc.

* etc/NEWS: Mention this change.

13 years ago* lisp/help.el (finder-by-keyword): Remove unnecessary autoload.
Glenn Morris [Sat, 23 Oct 2010 02:36:28 +0000 (19:36 -0700)]
* lisp/help.el (finder-by-keyword): Remove unnecessary autoload.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Sat, 23 Oct 2010 00:01:49 +0000 (00:01 +0000)]
Merge changes made in Gnus trunk.

gnus.texi (Subscription Commands): Mention that you can also subscribe to new groups via the Server buffer, which is probably more convenient when subscribing to many groups.
gnus-group.el (gnus-group-mark-group): Use gnus-group-position-point instead of the summary one.
shr.el (shr-tag-img): Don't bug out on images that don't have a SRC.

13 years agoObscure an example DEFVAR_INT comment so as to evade make-docfile.
Glenn Morris [Fri, 22 Oct 2010 08:02:31 +0000 (01:02 -0700)]
Obscure an example DEFVAR_INT comment so as to evade make-docfile.

13 years agoFix compilation with Motif (Bug#7263).
Jan D [Fri, 22 Oct 2010 05:49:47 +0000 (07:49 +0200)]
Fix compilation with Motif (Bug#7263).

* src/xfns.c: Include Xm/TextF and Xm/List.
(file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog): Make
ANSI prototypes.

* src/xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
MOTIF (Bug#7263).

* src/xrdb.c: Include keyboard.h for MOTIF.

13 years agomml.el (mml-preview): Fix last change.
Katsumi Yamaoka [Fri, 22 Oct 2010 04:30:27 +0000 (04:30 +0000)]
mml.el (mml-preview): Fix last change.

13 years agomml.el (mml-preview): Work properly when editing article.
Katsumi Yamaoka [Fri, 22 Oct 2010 04:15:14 +0000 (04:15 +0000)]
mml.el (mml-preview): Work properly when editing article.

13 years agoSupport for systems without floats was removed a decade ago.
Glenn Morris [Fri, 22 Oct 2010 04:03:55 +0000 (21:03 -0700)]
Support for systems without floats was removed a decade ago.

* lisp/loadup.el: Unconditionally load float-sup.
* lisp/paren.el (show-paren-delay):
* lisp/emacs-lisp/float-sup.el:
* lisp/emulation/cua-base.el (cua-prefix-override-inhibit-delay):
* lisp/obsolete/lazy-lock.el (lazy-lock-defer-time, lazy-lock-stealth-nice)
(lazy-lock-stealth-verbose): Assume float support.
* lisp/ps-print.el: Assume float support on Emacs.
* lisp/emacs-lisp/timer.el (timer-next-integral-multiple-of-time):
Remove non-float branch.

* lisp/obsolete/lazy-lock.el: Remove leading `*' from defcustom docs.

13 years agoFix format of old ChangeLog entry.
Glenn Morris [Fri, 22 Oct 2010 03:38:52 +0000 (20:38 -0700)]
Fix format of old ChangeLog entry.

13 years ago* src/Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
Glenn Morris [Fri, 22 Oct 2010 03:37:20 +0000 (20:37 -0700)]
* src/Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
Remove ccl and duplicate mouse.

13 years agoAdd bug ref to Changelog entry.
Glenn Morris [Fri, 22 Oct 2010 03:34:22 +0000 (20:34 -0700)]
Add bug ref to Changelog entry.

13 years agoSmall autoloads fix.
Glenn Morris [Fri, 22 Oct 2010 03:32:46 +0000 (20:32 -0700)]
Small autoloads fix.

* lisp/emacs-lisp/autoload.el (batch-update-autoloads): Update for
src/Makefile no longer being pre-processed.

13 years ago* admin/make-tarball.txt: Misc updates.
Glenn Morris [Fri, 22 Oct 2010 03:28:21 +0000 (20:28 -0700)]
* admin/make-tarball.txt: Misc updates.

13 years ago* make-dist: Avoid listing .el files twice.
Glenn Morris [Fri, 22 Oct 2010 03:26:34 +0000 (20:26 -0700)]
* make-dist: Avoid listing .el files twice.
Don't try to run autoconf if --no-update.

13 years ago* lisp/emacs-lisp/find-func.el (find-library): Use test-completion.
Stefan Monnier [Fri, 22 Oct 2010 03:17:26 +0000 (23:17 -0400)]
* lisp/emacs-lisp/find-func.el (find-library): Use test-completion.

13 years agognus-group.el (gnus-group-unsubscribe-group): Fix args passed to gnus-group-completin...
Gnus developers [Fri, 22 Oct 2010 01:39:13 +0000 (01:39 +0000)]
gnus-group.el (gnus-group-unsubscribe-group): Fix args passed to gnus-group-completing-read.
gnus-start.el (gnus-read-active-file-1): Don't add method to gnus-have-read-active-file if it's already been in.

13 years agomessage.el (message-setup-1): Allow message-default-headers to be a function.
Gnus developers [Thu, 21 Oct 2010 22:12:01 +0000 (22:12 +0000)]
message.el (message-setup-1): Allow message-default-headers to be a function.
message.el (message-mode-map): Don't bind M-; to comment region, to allow the global comment-dwim to work.

13 years ago* newcomment.el (comment-dwim): Fix the intentation in the doc string.
Lars Magne Ingebrigtsen [Thu, 21 Oct 2010 20:12:38 +0000 (22:12 +0200)]
* newcomment.el (comment-dwim): Fix the intentation in the doc string.

13 years ago* insdel.c (prepare_to_modify_buffer): Don't set
Chong Yidong [Thu, 21 Oct 2010 17:27:32 +0000 (13:27 -0400)]
* insdel.c (prepare_to_modify_buffer): Don't set
saved-region-selection if modification hooks are disabled.

13 years ago* net/tramp-sh.el (tramp-do-file-attributes-with-stat): Do not use
Michael Albinus [Thu, 21 Oct 2010 08:05:23 +0000 (10:05 +0200)]
* net/tramp-sh.el (tramp-do-file-attributes-with-stat): Do not use
space in stat format string.
(tramp-send-command): Unset $PS1 when using here documents, in
order not to get several prompts.
(tramp-get-inline-coding): Return `nil' in case of errors.

13 years agoshr.el (shr-tag-table): Simplify.
Katsumi Yamaoka [Thu, 21 Oct 2010 05:36:36 +0000 (05:36 +0000)]
shr.el (shr-tag-table): Simplify.

13 years agognus-html.el (gnus-html-prefetch-images): Only prefetch http images to avoid trying...
Lars Magne Ingebrigtsen [Thu, 21 Oct 2010 03:48:01 +0000 (03:48 +0000)]
gnus-html.el (gnus-html-prefetch-images): Only prefetch http images to avoid trying to snarf invalid stuff.

13 years agognus-sum.el (gnus-summary-edit-article-done): Bind replace-result.
Katsumi Yamaoka [Thu, 21 Oct 2010 02:52:45 +0000 (02:52 +0000)]
gnus-sum.el (gnus-summary-edit-article-done): Bind replace-result.

13 years agognus.el (gnus-message-archive-group): Quote value.
Lars Magne Ingebrigtsen [Thu, 21 Oct 2010 02:44:47 +0000 (02:44 +0000)]
gnus.el (gnus-message-archive-group): Quote value.
gnus.el (gnus-message-archive-group): Mark as changed.

13 years agoTweak revert-buffer-function to inhibit auto-mode-alist.
Daiki Ueno [Thu, 21 Oct 2010 02:38:46 +0000 (11:38 +0900)]
Tweak revert-buffer-function to inhibit auto-mode-alist.

* hexl.el (hexl-mode, hexl-mode-exit): Tweak
revert-buffer-function to inhibit auto-mode-alist (Bug#7252).
(hexl-revert-buffer-function): New function.
(hexl-before-revert-hook, hexl-after-revert-hook): Abolish.

13 years agognus-news.texi: Mention new archive defaults.
Lars Magne Ingebrigtsen [Thu, 21 Oct 2010 02:31:33 +0000 (02:31 +0000)]
gnus-news.texi: Mention new archive defaults.

13 years agomessage.el (message-fix-before-sending): Change options when sending non-printable...
Lars Magne Ingebrigtsen [Thu, 21 Oct 2010 01:49:12 +0000 (01:49 +0000)]
message.el (message-fix-before-sending): Change options when sending non-printable characters.
shr.el (shr-add-font): Don't put the font properties on the newline or the indentation.

13 years agognus.el (gnus-update-message-archive-method): Change the default to monthly outgoing...
Lars Magne Ingebrigtsen [Thu, 21 Oct 2010 01:28:34 +0000 (01:28 +0000)]
gnus.el (gnus-update-message-archive-method): Change the default to monthly outgoing groups.

13 years agoAllow nnimap article editing (sort of).
Lars Magne Ingebrigtsen [Thu, 21 Oct 2010 01:23:34 +0000 (01:23 +0000)]
Allow nnimap article editing (sort of).

gnus-sum.el (gnus-summary-edit-article-done): Try to replace articles that have gotten new numbers.
nnimap.el (nnimap-request-replace-article): New function.

13 years agognus.texi (RSS): Remove nnrss-wash-html-in-text-plain-parts.
Katsumi Yamaoka [Thu, 21 Oct 2010 00:33:40 +0000 (00:33 +0000)]
gnus.texi (RSS): Remove nnrss-wash-html-in-text-plain-parts.

13 years agonnrss.el (nnrss-wash-html-in-text-plain-parts): Remove.
Katsumi Yamaoka [Thu, 21 Oct 2010 00:27:32 +0000 (00:27 +0000)]
nnrss.el (nnrss-wash-html-in-text-plain-parts): Remove.
nnrss.el (nnrss-request-article): Don't use special html washing code.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Wed, 20 Oct 2010 22:29:38 +0000 (22:29 +0000)]
Merge changes made in Gnus trunk.

nnimap.el (nnimap-insert-partial-structure): Fix boundary detection.
spam.el (spam-list-of-processors): Mark as obsolete.
gnus-art.el (gnus-blocked-images): New function.  Allow the `gnus-blocked-images' to be a function.
gnus-art.el (gnus-article-wash-function): Remove it, and use `mm-text-html-renderer' instead.
mm-decode.el (mm-inline-text-html-renderer): Removed.
mm-decode.el (mm-inline-media-tests): Removed use.
mm-view.el (mm-inline-text-html): Removed use.
mm-view.el (mm-text-html-renderer-alist): Add the `shr' and `gnus-w3m' symbols.
gnus.texi (Article Washing): shr and gnus-w3m, not the direct function names.
gnus-art.el (article-wash-html): Simplify and remove the charset stuff.  Use the normal html rendering code instead of the special html washing code.
mm-view.el (mm-text-html-washer-alist): Removed.
gnus-news.texi: Mention that mm-text-html-renderer is the only HTML variable now.
shr.el (shr-tag-table): Remove useless nconc.

13 years agoshr.el (shr-tag-table): Fix last change.
Katsumi Yamaoka [Wed, 20 Oct 2010 12:24:49 +0000 (12:24 +0000)]
shr.el (shr-tag-table): Fix last change.

13 years agonnimap.el (nnimap-request-article): Fix BODYSTRUCTURE retrieval.
Julien Danjou [Wed, 20 Oct 2010 10:34:58 +0000 (10:34 +0000)]
nnimap.el (nnimap-request-article): Fix BODYSTRUCTURE retrieval.

13 years agoemacs-mime.texi (Flowed text): Add a note about mml-enable-flowed variable.
Gnus developers [Wed, 20 Oct 2010 10:31:10 +0000 (10:31 +0000)]
emacs-mime.texi (Flowed text): Add a note about mml-enable-flowed variable.
gnus/ChangeLog (2010-10-15): Fix typo in changelog.
gnus-draft.el (gnus-draft-check-draft-articles): Don't unnecessarily run file-truename on remote files when checking drafts.

13 years agoshr.el: (shr-tag-table): Support caption, thead, and tfoot.
Katsumi Yamaoka [Wed, 20 Oct 2010 07:31:25 +0000 (07:31 +0000)]
shr.el: (shr-tag-table): Support caption, thead, and tfoot.

13 years ago* make-dist: No longer create lisp/MANIFEST.
Glenn Morris [Wed, 20 Oct 2010 03:55:30 +0000 (20:55 -0700)]
* make-dist: No longer create lisp/MANIFEST.
No-one can remember what this file was for.
http://lists.gnu.org/archive/html/emacs-devel/2010-10/msg00512.html

13 years agoFix format of old lib-src/ChangeLog entry.
Glenn Morris [Wed, 20 Oct 2010 03:53:34 +0000 (20:53 -0700)]
Fix format of old lib-src/ChangeLog entry.

13 years agoFix src/Makefile.in comment typo from 2010-10-10T14:43:05Z!dann@ics.uci.edu.
Glenn Morris [Wed, 20 Oct 2010 03:52:27 +0000 (20:52 -0700)]
Fix src/Makefile.in comment typo from 2010-10-10T14:43:05Z!dann@ics.uci.edu.

13 years agoshr.el (shr-find-fill-point): Shorten line if the preceding char is kinsoku-eol regar...
Katsumi Yamaoka [Wed, 20 Oct 2010 00:44:28 +0000 (00:44 +0000)]
shr.el (shr-find-fill-point): Shorten line if the preceding char is kinsoku-eol regardless of shr-kinsoku-shorten.

13 years agoshr.el (shr-save-contents): New command and keystroke.
Lars Magne Ingebrigtsen [Wed, 20 Oct 2010 00:02:35 +0000 (00:02 +0000)]
shr.el (shr-save-contents): New command and keystroke.

13 years agoshr.el (shr-find-fill-point): Don't leave blanks at the start of some lines.
Lars Magne Ingebrigtsen [Tue, 19 Oct 2010 23:26:28 +0000 (23:26 +0000)]
shr.el (shr-find-fill-point): Don't leave blanks at the start of some lines.

13 years agonndoc.el (nndoc-transform-git-headers): Generate Subject headers.
Lars Magne Ingebrigtsen [Tue, 19 Oct 2010 23:06:50 +0000 (23:06 +0000)]
nndoc.el (nndoc-transform-git-headers): Generate Subject headers.
gnus.texi (Document Groups): Mention git.

13 years agoUpdate.
Lars Magne Ingebrigtsen [Tue, 19 Oct 2010 22:30:29 +0000 (22:30 +0000)]
Update.

13 years agoMerge changes made in Gnus trunk.
Lars Magne Ingebrigtsen [Tue, 19 Oct 2010 22:20:47 +0000 (22:20 +0000)]
Merge changes made in Gnus trunk.

gnus.texi (Customizing the IMAP Connection): The port strings are strings.
nnmairix.el (nnmairix-summary-mode-hook): Move nnmairix's `$' command to `G G' to avoid collisions.
shr.el (shr-parse-style, shr-tag-span): New functions.
nndoc.el (nndoc-type-alist): Add git support.
(nndoc-git-type-p, nndoc-transform-git-article, nndoc-transform-git-headers): New functions.

13 years agocc-langs.el (c-type-decl-prefix-key): C++ bit: move
Alan Mackenzie [Tue, 19 Oct 2010 20:45:42 +0000 (20:45 +0000)]
cc-langs.el (c-type-decl-prefix-key): C++ bit: move
"\(const\|throw\|volatile\)\>" nearer the start of the regexp, so that
these keywords aren't wrongly matched as identifiers.

13 years agocc-mode.el (c-before-change, c-after-change): Move the setting of
Alan Mackenzie [Tue, 19 Oct 2010 20:18:35 +0000 (20:18 +0000)]
cc-mode.el (c-before-change, c-after-change): Move the setting of
c-new-BEG and c-new-END from c-before-change to c-after-change.

13 years agoetc/NEWS: Document change to mode-line-format.
Chong Yidong [Tue, 19 Oct 2010 19:24:39 +0000 (15:24 -0400)]
etc/NEWS: Document change to mode-line-format.

13 years agoRevert 2010-10-18 change; use safe-functions instead.
Chong Yidong [Tue, 19 Oct 2010 19:22:40 +0000 (15:22 -0400)]
Revert 2010-10-18 change; use safe-functions instead.

* cus-face.el (custom-theme-set-faces): Revert 2010-10-18 change.
Don't mark as safe.

* custom.el (custom-theme-set-variables): Likewise.
(load-theme): Add custom-theme-set-faces and
custom-theme-set-variables to safe-functions while loading.
(custom-enabled-themes): Mark as risky.

13 years agoRemove mode-line end dashes on graphical terminals.
Julien Danjou [Tue, 19 Oct 2010 19:20:33 +0000 (15:20 -0400)]
Remove mode-line end dashes on graphical terminals.

* tutorials/TUTORIAL: Don't mention mode-line end dashes.
* bindings.el: Remove end dashes in default mode-line-format.

13 years agoDecouple C-d and delete, so that the former does not delete the region.
Chong Yidong [Tue, 19 Oct 2010 15:43:27 +0000 (11:43 -0400)]
Decouple C-d and delete, so that the former does not delete the region.

* lisp/bindings.el (global-map): Bind C-d to delete-char and deletechar
to delete-forward-char.

* lisp/simple.el (normal-erase-is-backspace-mode): Remap delete to
deletechar, and hence delete-forward-char.

* src/cmds.c (Fdelete_char): Doc fix.

13 years agoMerge changes from emacs-23 branch.
Juanma Barranquero [Tue, 19 Oct 2010 11:44:07 +0000 (13:44 +0200)]
Merge changes from emacs-23 branch.

13 years ago* net/tramp-sh.el (tramp-do-file-attributes-with-stat)
Michael Albinus [Tue, 19 Oct 2010 09:50:07 +0000 (11:50 +0200)]
* net/tramp-sh.el (tramp-do-file-attributes-with-stat)
(tramp-do-directory-files-and-attributes-with-stat): Use "e0" in
order to make stat results a float.  Patch by Andreas Schwab
<schwab@linux-m68k.org>.

13 years ago* net/tramp.el (tramp-do-file-attributes-with-stat)
Michael Albinus [Tue, 19 Oct 2010 09:26:21 +0000 (11:26 +0200)]
* net/tramp.el (tramp-do-file-attributes-with-stat)
(tramp-do-directory-files-and-attributes-with-stat): Use "e0" in
order to make stat results a float.  Patch by Andreas Schwab
<schwab@linux-m68k.org>.

13 years agoshr.el: Fix last change.
Katsumi Yamaoka [Tue, 19 Oct 2010 08:19:45 +0000 (08:19 +0000)]
shr.el: Fix last change.

13 years agoshr.el: Improve kinsoku and table rendering.
Katsumi Yamaoka [Tue, 19 Oct 2010 07:57:50 +0000 (07:57 +0000)]
shr.el: Improve kinsoku and table rendering.

13 years ago* lisp/gnus/nnimap.el (nnimap-request-move-article, nnimap-parse-line)
Stefan Monnier [Tue, 19 Oct 2010 00:13:27 +0000 (20:13 -0400)]
* lisp/gnus/nnimap.el (nnimap-request-move-article, nnimap-parse-line)
(nnimap-process-expiry-targets): Use unibyte for buffers that hold
undecoded network data.

13 years agomessage.el (message-get-reply-headers): If we're fed `to-address', then always use...
Lars Magne Ingebrigtsen [Mon, 18 Oct 2010 23:41:03 +0000 (23:41 +0000)]
message.el (message-get-reply-headers): If we're fed `to-address', then always use that.
gnus-agent.el (gnus-agent-toggle-plugged): Use the right minor mode name in the mode line spec so that the mode line menu works (bug #2431).

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Mon, 18 Oct 2010 22:09:28 +0000 (22:09 +0000)]
Merge changes made in Gnus trunk.

gnus-art.el: Make the "dumbquotes" translation work again.
gnus-registry.el (gnus-registry-split-fancy-with-parent): Splitting according to references/in-reply-to obeys the ignore-groups variable, while splitting by sender and subject do not.
nnimap.el (nnimap-request-group): Don't SELECT the group twice on `M-g'.
nnimap.el (nnimap-update-info): Update flags/read marks even if \* isn't part of the permanent marks.
gnus-coding.texi (Gnus Maintainance Guide): Update to mention Emacs bzr/Gnus git sync.
gnus-delay.el (gnus-delay-article): Remove superfluous `group' binding.
gnus-art.el (gnus-article-make-menu-bar): The article/group menus aren't so wide as to need to switch off the edit menu.

13 years ago* lisp/avoid.el (mouse-avoidance-ignore-p): Ignore mouse when it is
Julien Danjou [Mon, 18 Oct 2010 21:10:38 +0000 (17:10 -0400)]
* lisp/avoid.el (mouse-avoidance-ignore-p): Ignore mouse when it is
hidden by `make-pointer-invisible'.

13 years ago* src/frame.c (Fframe_pointer_visible_p):
Julien Danjou [Mon, 18 Oct 2010 21:07:31 +0000 (17:07 -0400)]
* src/frame.c (Fframe_pointer_visible_p):
Add `frame-pointer-visible-p' to get the pointer visibility.

13 years ago* lisp/files.el (locate-file-completion-table): Strip non-matching elements
Stefan Monnier [Mon, 18 Oct 2010 21:02:00 +0000 (17:02 -0400)]
* lisp/files.el (locate-file-completion-table): Strip non-matching elements
before checking length of list.

Fixes: debbugs:7238

13 years ago(emacs_gnutls_read): Return 0 if we get a non-"EAGAIN"-like error to signal to Emacs...
Lars Magne Ingebrigtsen [Mon, 18 Oct 2010 20:32:54 +0000 (22:32 +0200)]
(emacs_gnutls_read): Return 0 if we get a non-"EAGAIN"-like error to signal to Emacs that the socket should be closed.

13 years ago* lisp/repeat.el (repeat): Use read-key to ignore mouse-down events.
Stefan Monnier [Mon, 18 Oct 2010 18:38:11 +0000 (14:38 -0400)]
* lisp/repeat.el (repeat): Use read-key to ignore mouse-down events.

Fixes: debbugs:6256

13 years agoDon't allow functions that display messages in unsafep.
Chong Yidong [Mon, 18 Oct 2010 17:28:20 +0000 (13:28 -0400)]
Don't allow functions that display messages in unsafep.

* emacs-lisp/unsafep.el: Don't mark functions that display
messages as safe.  Suggested by Johan Bockgård.

13 years agoUse unsafep to check for theme safety.
Chong Yidong [Mon, 18 Oct 2010 17:26:25 +0000 (13:26 -0400)]
Use unsafep to check for theme safety.

* cus-face.el (custom-theme-set-faces): Mark as a safe function.

* custom.el (custom-theme-set-variables): Mark as a safe function.
(load-theme): Check forms using unsafep.

13 years agoispell.el (ispell-aspell-find-dictionary): Fix aspell data file search (bug#7230).
Agustín Martín [Mon, 18 Oct 2010 16:01:43 +0000 (18:01 +0200)]
ispell.el (ispell-aspell-find-dictionary): Fix aspell data file search (bug#7230).

13 years ago* src/s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
Ken Brown [Mon, 18 Oct 2010 12:23:41 +0000 (08:23 -0400)]
* src/s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).

13 years agoshr.el (shr-insert): Comment fix.
Katsumi Yamaoka [Mon, 18 Oct 2010 05:45:06 +0000 (05:45 +0000)]
shr.el (shr-insert): Comment fix.

13 years agoshr.el (shr-insert): Don't insert space behind a wide character categorized as kinsok...
Katsumi Yamaoka [Mon, 18 Oct 2010 05:21:26 +0000 (05:21 +0000)]
shr.el (shr-insert): Don't insert space behind a wide character categorized as kinsoku-bol, or between characters both categorized as nospace.

13 years ago(regexp-opt-group, regexp-opt-charset): Turn comments into docstrings
Stefan Monnier [Sun, 17 Oct 2010 18:59:58 +0000 (14:59 -0400)]
(regexp-opt-group, regexp-opt-charset): Turn comments into docstrings

13 years ago* lisp/minibuffer.el (completion--replace): Move point where it belongs
Stefan Monnier [Sun, 17 Oct 2010 17:30:22 +0000 (13:30 -0400)]
* lisp/minibuffer.el (completion--replace): Move point where it belongs
when there's a common suffix.

Fixes: debbugs:7215

13 years agoFix a misleading widget message in the last checkin.
Chong Yidong [Sun, 17 Oct 2010 00:05:20 +0000 (20:05 -0400)]
Fix a misleading widget message in the last checkin.

13 years agoshr.el (shr-tag-img): Don't align images -- since we're not rescaling, this often...
Gnus developers [Sun, 17 Oct 2010 00:04:06 +0000 (00:04 +0000)]
shr.el (shr-tag-img): Don't align images -- since we're not rescaling, this often leads to ugly displays.
gnus-sum.el (gnus-summary-refer-thread): Bug fix. Add the thread headers to gnus-newsgroup-headers.

13 years agoAllow Custom settings to be migrated into a custom theme.
Chong Yidong [Sun, 17 Oct 2010 00:00:34 +0000 (20:00 -0400)]
Allow Custom settings to be migrated into a custom theme.

* cus-theme.el (custom-theme--migrate-settings): New var.
(customize-create-theme): Allow editing the `user' theme.
(custom-theme-add-variable, custom-theme-add-var-1)
(custom-theme-add-face, custom-theme-add-face-1): Add a checkbox
to the front of each variable or face widget.
(custom-theme-write): Save theme settings in the correct order.
Optionally, remove saved settings from user customizations.
(custom-theme-write-variables, custom-theme-write-faces): Saved
only the checked widgets.
(customize-themes): Add a link for migrating custom settings.

* custom.el (custom-declare-theme, provide-theme): Use
custom-theme-name-valid-p.
(custom-theme-name-valid-p): Remove checks that are now
unnecessary since themes no longer obey load-path.

* cus-edit.el (custom-variable-value-create): For the simple
style, hide documentation string when hidden.

13 years agoAllow hiding of modified custom widgets.
Chong Yidong [Sat, 16 Oct 2010 20:36:20 +0000 (16:36 -0400)]
Allow hiding of modified custom widgets.

* cus-edit.el (custom-variable, custom-face): Combine the
:inhibit-magic and :display-style properties into a single
:custom-style property.
(custom-toggle-hide-variable, custom-toggle-hide-face): New
functions.  If hiding an edited value, save it to :shown-value.
(custom-variable-value-create, custom-face-value-create): Use
them.
(custom-magic-reset): Allow magic property to be unset.

* cus-theme.el (custom-theme-add-var-1)
(custom-theme-add-face-1): Use the :custom-style property.

* custom.el: (custom-theme-load-path): Doc fix.

13 years agoMove built-in theme directory to etc/.
Chong Yidong [Sat, 16 Oct 2010 18:27:08 +0000 (14:27 -0400)]
Move built-in theme directory to etc/.

* custom.el: Custom themes no longer use load-path.
(custom-theme-load-path): New option.  Change built-in theme
directory to etc/.
(custom-enabled-themes): Add custom-theme-load-path dependency.
(custom-theme--load-path): New function.
(load-theme, custom-available-themes): Use it.

* cus-theme.el (describe-theme-1): Use custom-theme--load-path.
(customize-themes): Link to custom-theme-load-path variable.

13 years agoFinished work on mouse highlight that comes from display strings.
Eli Zaretskii [Sat, 16 Oct 2010 16:14:16 +0000 (18:14 +0200)]
Finished work on mouse highlight that comes from display strings.
Not tested yet.

 xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
 (mouse_face_from_string_pos): New function, replaces fast_find_string_pos.
 (note_mouse_highlight): Call it instead of fast_find_string_pos.

13 years agoFix searching for bibitem entries.
Ralf Angeli [Sat, 16 Oct 2010 15:08:47 +0000 (17:08 +0200)]
Fix searching for bibitem entries.

13 years agoSupport bidi-reordered text in mouse-highlighted mode- and header-lines.
Eli Zaretskii [Sat, 16 Oct 2010 12:52:54 +0000 (14:52 +0200)]
Support bidi-reordered text in mouse-highlighted mode- and header-lines.
Note: Not tested with actually bidi-reordered strings.

 xdisp.c (note_mode_line_or_margin_highlight): Support
 bidi-reordered strings and R2L glyph rows.  Fix more comments.

13 years agoStart working on mouse highlight of mode- and header-lines.
Eli Zaretskii [Sat, 16 Oct 2010 10:04:03 +0000 (12:04 +0200)]
Start working on mouse highlight of mode- and header-lines.

 xdisp.c (rows_from_pos_range, mouse_face_from_buffer_pos)
 (note_mode_line_or_margin_highlight): Fix comments.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Sat, 16 Oct 2010 01:55:08 +0000 (01:55 +0000)]
Merge changes made in Gnus trunk.

nnimap.el: Use nnheader-message throughout.
gnus.el: Autoload gnus-html-show-images.
mml.el (mml-generate-mime-1): Add `mml-enable-flow' variable to add a possibility to disable format=flow encoding when using hard newlines.
gnus-diary.el (gnus-diary-check-message): Fix gnus-completing-read call.
gnus-sum.el (gnus-summary-refer-thread): unconditionally ignore duplicates.

13 years agoBugfixes for `customize-create-theme'.
Chong Yidong [Sat, 16 Oct 2010 00:16:34 +0000 (20:16 -0400)]
Bugfixes for `customize-create-theme'.

* cus-theme.el (customize-create-theme): Delete overlays after
erasing.  If given a THEME arg, display only the faces of that arg
instead of custom-theme--listed-faces.
(custom-theme-variable-menu, custom-theme-variable-action)
(custom-variable-reset-theme, custom-theme-delete-variable): Deleted.
(custom-theme-add-variable, custom-theme-add-face): Apply value
from the theme settings, instead of the current value.
(custom-theme-add-var-1, custom-theme-add-face-1): New functions.
(custom-theme-visit-theme): Allow calling outside theme buffers.
(custom-theme-merge-theme): Don't enable the theme when merging.
(custom-theme-write-variables, custom-theme-write-faces): Use the
:shown-value properties to save buffer values, not global ones.
(customize-themes): Display a warning about user customizations.

* cus-edit.el (custom-variable-value-create)
(custom-face-value-create): Obey new special properties
:shown-value and :inhibit-magic.