]> code.delx.au - gnu-emacs/log
gnu-emacs
12 years agoMerge changes from emacs-23 branch
Chong Yidong [Tue, 30 Aug 2011 22:43:43 +0000 (18:43 -0400)]
Merge changes from emacs-23 branch

12 years agoFix syntax scanning bug causing fontification crashes.
Chong Yidong [Tue, 30 Aug 2011 22:38:07 +0000 (18:38 -0400)]
Fix syntax scanning bug causing fontification crashes.

* src/syntax.c (find_defun_start): Update all cache variables if
exiting early.

Fixes: debbugs:9401
12 years agognus-group.el (gnus-group-name-charset): Don't bug out on server names.
Lars Magne Ingebrigtsen [Tue, 30 Aug 2011 22:07:52 +0000 (22:07 +0000)]
gnus-group.el (gnus-group-name-charset): Don't bug out on server names.

12 years ago* configure.in: Remove no-longer used HP patterns.
Paul Eggert [Tue, 30 Aug 2011 20:46:59 +0000 (13:46 -0700)]
* configure.in: Remove no-longer used HP patterns.

(opsys): Remove unreachable pattern hppa*-*-linux-gnu*.
Also, remove ia64*-hp-hpux1[1-9]*, as it also sets machine=hp800,
and that can't possibly work now that src/m/hp800.h no longer exists.

12 years ago* configure.in (opsys): Change pattern to *-*-linux*.
Paul Eggert [Tue, 30 Aug 2011 20:41:54 +0000 (13:41 -0700)]
* configure.in (opsys): Change pattern to *-*-linux*.

12 years agosrc/image.c (x_bitmap_pixmap): Cast to int to avoid compiler warnings.
Eli Zaretskii [Tue, 30 Aug 2011 18:15:53 +0000 (21:15 +0300)]
src/image.c (x_bitmap_pixmap): Cast to int to avoid compiler warnings.

12 years agoFix bug #9402 with :align-to on TTY frames.
Eli Zaretskii [Tue, 30 Aug 2011 17:32:44 +0000 (20:32 +0300)]
Fix bug #9402 with :align-to on TTY frames.

 src/xdisp.c (produce_stretch_glyph): No longer static, compiled also
 when HAVE_WINDOW_SYSTEM is not defined.  Support both GUI and TTY
 frames.  Call tty_append_glyph in the TTY case.  (Bug#9402)
 src/term.c (tty_append_glyph): New function.
 (produce_stretch_glyph): Static function and its prototype deleted.
 src/dispextern.h (produce_stretch_glyph, tty_append_glyph): Add
 prototypes.

12 years ago* configure.in (opsys): Add pattern *-gnu-linux*
Paul Eggert [Tue, 30 Aug 2011 15:57:22 +0000 (08:57 -0700)]
* configure.in (opsys): Add pattern *-gnu-linux*

to recognize powerpc-gnu-linux-uclibc (Bug#9403).

12 years agoDocument new Emacs 24 faces in Lisp manual.
Chong Yidong [Tue, 30 Aug 2011 15:24:07 +0000 (11:24 -0400)]
Document new Emacs 24 faces in Lisp manual.

* doc/lispref/display.texi (Basic Faces): New node.  Document new faces.

* doc/lispref/modes.texi (Major Mode Conventions): Move some text there.
(Mode Help): Remove major-mode var, duplicated in Major Modes.

12 years ago* lisp/subr.el (event-modifiers): Fix "missing modifier" part of docstring.
Stefan Monnier [Tue, 30 Aug 2011 14:50:02 +0000 (10:50 -0400)]
* lisp/subr.el (event-modifiers): Fix "missing modifier" part of docstring.

Fixes: debbugs:9356
12 years ago* lisp/vc/pcvs-defs.el (cvs-find-file-and-jump): Typo in docstring.
Reuben Thomas [Tue, 30 Aug 2011 14:40:51 +0000 (10:40 -0400)]
* lisp/vc/pcvs-defs.el (cvs-find-file-and-jump): Typo in docstring.

Fixes: debbugs:9369
12 years ago* MACHINES: Remove obsolete info and update a bit (Bug#9404).
Paul Eggert [Tue, 30 Aug 2011 05:52:05 +0000 (22:52 -0700)]
* MACHINES: Remove obsolete info and update a bit (Bug#9404).

12 years ago* PROBLEMS: Remove obsolete comment re Yellow Dog (Bug#9403).
Paul Eggert [Tue, 30 Aug 2011 02:05:43 +0000 (19:05 -0700)]
* PROBLEMS: Remove obsolete comment re Yellow Dog (Bug#9403).

12 years agoUpdate and edit manual sections on major modes.
Chong Yidong [Mon, 29 Aug 2011 22:02:21 +0000 (18:02 -0400)]
Update and edit manual sections on major modes.

* doc/emacs/modes.texi (Choosing Modes): auto-mode-case-fold is now t.

* doc/lispref/modes.texi (Basic Major Modes): New node.  Callers updated.
(Major Modes): Document fundamental-mode and major-mode.
(Major Mode Basics): Node deleted; text moved to Major Modes.
(Derived Modes): Document derived-mode-p.

12 years ago* lisp/isearch.el (isearch-done): Don't display message "Mark saved"
Juri Linkov [Mon, 29 Aug 2011 20:22:44 +0000 (23:22 +0300)]
* lisp/isearch.el (isearch-done): Don't display message "Mark saved"
when arg `edit' is non-nil to prevent its flicker in the echo area.

12 years ago* leim/quail/latin-ltx.el: Complete the super and subscript letters.
Stefan Monnier [Mon, 29 Aug 2011 18:48:01 +0000 (14:48 -0400)]
* leim/quail/latin-ltx.el: Complete the super and subscript letters.

12 years ago* image.c (parse_image_spec): Check for nonnegative, not for positive,
Paul Eggert [Mon, 29 Aug 2011 03:34:25 +0000 (20:34 -0700)]
* image.c (parse_image_spec): Check for nonnegative, not for positive,
when checking :margin (Bug#9390).
(IMAGE_NON_NEGATIVE_INTEGER_VALUE_OR_PAIR):
Renamed from IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR,
so that the name doesn't mislead.  All uses changed.

12 years agoMerge changes made in Gnus trunk.
Daiki Ueno [Sun, 28 Aug 2011 22:04:32 +0000 (22:04 +0000)]
Merge changes made in Gnus trunk.

mml-smime.el (mml-smime-epg-verify): Don't use the 4th arg of mm-replace-in-string for compatibility issues.
mml2015.el (mml2015-epg-verify): Ditto.

12 years agoFix package menu bug in marking obsolete packages for deletion.
Chong Yidong [Sun, 28 Aug 2011 21:32:50 +0000 (17:32 -0400)]
Fix package menu bug in marking obsolete packages for deletion.

* lisp/emacs-lisp/package.el (package-menu-mark-delete): Allow marking
obsolete packages for deletion.

12 years agoAdd xrefs to View Mode node to Emacs manual.
Chong Yidong [Sun, 28 Aug 2011 21:15:20 +0000 (17:15 -0400)]
Add xrefs to View Mode node to Emacs manual.

* doc/emacs/files.texi (File Archives):
* doc/emacs/cal-xtra.texi (Diary Display):
* doc/emacs/help.texi (Help Mode): Add xref to View Mode.

12 years agoDocument copy-directory and related changes in manuals.
Chong Yidong [Sun, 28 Aug 2011 21:07:10 +0000 (17:07 -0400)]
Document copy-directory and related changes in manuals.

* doc/emacs/buffers.texi (Misc Buffer): Move view-buffer to View Mode.

* doc/emacs/display.texi (View Mode): New node.  Move view-file here from
Misc File Ops.  Move view-buffer here from Misc Buffer.

* doc/emacs/files.texi (Misc File Ops): Document new
delete-by-moving-to-trash behavior.  Remove view-file.

* doc/lispref/files.texi (Changing Files, Create/Delete Dirs): Document new
arguments for delete-file, delete-directory, and copy-directory.

12 years ago* src/term.c (init_tty) [HAVE_GPM]: Move mouse settings after set_tty_hooks.
Johan Bockgård [Sun, 28 Aug 2011 20:45:55 +0000 (22:45 +0200)]
* src/term.c (init_tty) [HAVE_GPM]: Move mouse settings after set_tty_hooks.

12 years agoDocument trash changes in manual.
Chong Yidong [Sun, 28 Aug 2011 20:22:10 +0000 (16:22 -0400)]
Document trash changes in manual.

* doc/emacs/dired.texi (Dired Deletion): Shorten description of Trash.

* doc/emacs/files.texi (Misc File Ops): Document new
delete-by-moving-to-trash behavior.

* doc/lispref/files.texi (Changing Files, Create/Delete Dirs): Document TRASH
argument.

12 years ago* dic/lispref/lists.texi (Building Lists): Fix typo.
Dani Moncayo [Sun, 28 Aug 2011 19:08:45 +0000 (15:08 -0400)]
* dic/lispref/lists.texi (Building Lists): Fix typo.

12 years agoMake custom-theme-choose-mode inherit from special-mode.
Chong Yidong [Sun, 28 Aug 2011 19:05:26 +0000 (15:05 -0400)]
Make custom-theme-choose-mode inherit from special-mode.

* lisp/cus-theme.el (custom-theme-choose-mode): Inherit from special-mode.
(custom-theme-choose-mode-map): Add special-mode to parent.

Fixes: debbugs:9124
12 years agoMake Help mode inherit from special-mode.
Christoph Scholtes [Sun, 28 Aug 2011 18:58:16 +0000 (14:58 -0400)]
Make Help mode inherit from special-mode.

* help-mode.el (help-mode-map): Add special-mode-map to parent.
(help-mode): Derive help-mode from special-mode. Don't invoke
view-mode from help-mode.
(help-xref-override-view-map): Remove.
(help-make-xrefs): Remove minor-mode-overriding-map-alist since
view-mode is not used anymore.

12 years agoUpdate manuals for some Emacs 24 changes.
Chong Yidong [Sun, 28 Aug 2011 18:49:59 +0000 (14:49 -0400)]
Update manuals for some Emacs 24 changes.

* doc/emacs/misc.texi (emacsclient Options): Document server-port.

* doc/lispref/display.texi (Progress): Document spinner functionality.

* doc/lispref/frames.texi (Layout Parameters): The defaults for the
menu-bar-lines and tool-bar-lines parameters depend on the mode.

* doc/lispref/objects.texi (Symbol Type): Document ## print representation.

* doc/lispref/os.texi (Killing Emacs): Note that kill-emacs can be called by
operating system signals.  Refer to save-buffers-kill-terminal
instead of save-buffers-kill-emacs.

12 years ago* lisp/server.el (server-port): Doc fix.
Chong Yidong [Sun, 28 Aug 2011 18:46:38 +0000 (14:46 -0400)]
* lisp/server.el (server-port): Doc fix.

12 years agoFix - typing on a C++ inher-intro or inher-cont line should preserve the
Alan Mackenzie [Sun, 28 Aug 2011 11:42:33 +0000 (11:42 +0000)]
Fix - typing on a C++ inher-intro or inher-cont line should preserve the
fontification of the inherited class names.  Analogously for namespace
names and Java import, extends, etc.

(cc-fonts.el): (c-make-font-lock-BO-decl-search-function): New function.
(c-basic-matchers-after - "Fontify the clauses after various keywords"):
Extract the three keyword lists for the 3 erroneous constructs from the
list of four, and use the new function above in place of an old one.

12 years agoA few cosmetic fixes in lisp/org/ChangeLog.
Bastien Guerry [Sun, 28 Aug 2011 08:31:04 +0000 (10:31 +0200)]
A few cosmetic fixes in lisp/org/ChangeLog.

12 years ago* lisp/net/rcirc.el (rcirc-insert-prev-input)
Deniz Dogan [Sun, 28 Aug 2011 06:07:14 +0000 (08:07 +0200)]
* lisp/net/rcirc.el (rcirc-insert-prev-input)
(rcirc-insert-next-input): Remove unused argument.

12 years ago* lisp/shell.el (shell-parse-pcomplete-arguments): Unquote args.
Stefan Monnier [Sun, 28 Aug 2011 05:15:17 +0000 (01:15 -0400)]
* lisp/shell.el (shell-parse-pcomplete-arguments): Unquote args.

Fixes: debbugs:9160
12 years agoFix vertical cursor motion from start of R2L lines in L2R paragraphs.
Eli Zaretskii [Sat, 27 Aug 2011 18:11:49 +0000 (21:11 +0300)]
Fix vertical cursor motion from start of R2L lines in L2R paragraphs.

 src/xdisp.c (move_it_to): Don't bail out early when reaching
 position beyond to_charpos, if we are scanning backwards.
 (move_it_vertically_backward): When DY == 0, make sure we get to
 the first character in the line after the newline.

12 years agosrc/bidi.c: Rearrange commentary to bidi_fetch_char.
Eli Zaretskii [Sat, 27 Aug 2011 12:18:27 +0000 (15:18 +0300)]
src/bidi.c: Rearrange commentary to bidi_fetch_char.

12 years agoMinor fix of documenting for focus-follows-mouse.
Eli Zaretskii [Sat, 27 Aug 2011 12:10:24 +0000 (15:10 +0300)]
Minor fix of documenting for focus-follows-mouse.

 doc/emacs/frames.texi (Frame Commands): Advise setting focus-follows-mouse
 even on MS-Windows.  Fix a typo.

12 years agotextmodes/paragraphs.el. Undo previous accidental patch.
Alan Mackenzie [Sat, 27 Aug 2011 11:14:50 +0000 (11:14 +0000)]
textmodes/paragraphs.el.  Undo previous accidental patch.

12 years agoprogmodes/cc-menus.el (cc-imenu-c++-generic-expression): Make it handle
Alan Mackenzie [Sat, 27 Aug 2011 08:41:23 +0000 (08:41 +0000)]
progmodes/cc-menus.el (cc-imenu-c++-generic-expression): Make it handle
function pointer parameters properly.

12 years agoFix bug in display-buffer-reuse-window (Bug#9381).
Martin Rudalics [Sat, 27 Aug 2011 08:38:33 +0000 (10:38 +0200)]
Fix bug in display-buffer-reuse-window (Bug#9381).

* window.el (display-buffer-reuse-window): Fix case where
selected window was reused with non-nil OTHER-WINDOW argument.
(Bug#9381)

12 years agoetc/NEWS: Fix entries related to bidirectional support.
Eli Zaretskii [Sat, 27 Aug 2011 08:36:56 +0000 (11:36 +0300)]
etc/NEWS: Fix entries related to bidirectional support.

12 years ago* net/rcirc.el (rcirc-check-auth-status): Adding support for oftc's NickServ messages.
Deniz Dogan [Sat, 27 Aug 2011 08:28:46 +0000 (10:28 +0200)]
* net/rcirc.el (rcirc-check-auth-status): Adding support for oftc's NickServ messages.

12 years agoTUTORIAL.he: Use LRE instead of LRO.
Eli Zaretskii [Sat, 27 Aug 2011 08:22:29 +0000 (11:22 +0300)]
TUTORIAL.he: Use LRE instead of LRO.

12 years ago* ccl.c: Improve and simplify overflow checking (Bug#9196).
Paul Eggert [Sat, 27 Aug 2011 07:07:32 +0000 (00:07 -0700)]
* ccl.c: Improve and simplify overflow checking (Bug#9196).

(ccl_driver): Do not generate an out-of-range pointer.
(Fccl_execute_on_string): Remove unnecessary check for
integer overflow, noted by Stefan Monnier in
<http://lists.gnu.org/archive/html/emacs-devel/2011-08/msg00979.html>.
Remove a FIXME that didn't need fixing.
Simplify the newly-introduced buffer reallocation code.

12 years agosrc/makefile.w32-in ($(BLD)/alloc.$(O)): Depend on lib/verify.h.
Juanma Barranquero [Sat, 27 Aug 2011 01:42:00 +0000 (03:42 +0200)]
src/makefile.w32-in ($(BLD)/alloc.$(O)): Depend on lib/verify.h.

12 years ago* lisp/saveplace.el (save-place-limit): Make it finite. (Bug#9352)
Glenn Morris [Sat, 27 Aug 2011 00:52:47 +0000 (20:52 -0400)]
* lisp/saveplace.el (save-place-limit): Make it finite.  (Bug#9352)

12 years agoRe-order NEWS items.
Chong Yidong [Fri, 26 Aug 2011 19:10:19 +0000 (15:10 -0400)]
Re-order NEWS items.

12 years agoMerge from trunk.
Paul Eggert [Fri, 26 Aug 2011 16:13:07 +0000 (09:13 -0700)]
Merge from trunk.

12 years ago* package.el (package-install): Call package-initialize if called interactively.
Chong Yidong [Fri, 26 Aug 2011 15:53:50 +0000 (11:53 -0400)]
* package.el (package-install): Call package-initialize if called interactively.

12 years agoDocument package manager in Emacs manual.
Chong Yidong [Fri, 26 Aug 2011 15:48:19 +0000 (11:48 -0400)]
Document package manager in Emacs manual.

* doc/emacs/package.texi: New file, documenting the package manager.

* doc/emacs/emacs.texi: Include it.

* doc/emacs/help.texi (Help Summary): Add describe-package.

12 years agoAuto-commit of generated files.
Glenn Morris [Fri, 26 Aug 2011 10:19:08 +0000 (06:19 -0400)]
Auto-commit of generated files.

12 years agoFix bug #9324 with unwarranted repositioning of point.
Eli Zaretskii [Fri, 26 Aug 2011 10:07:06 +0000 (13:07 +0300)]
Fix bug #9324 with unwarranted repositioning of point.

 src/xdisp.c (redisplay_window): Don't force window start if point
 will be invisible in the resulting window.

12 years agoFix format bug in defstruct
Leo Liu [Fri, 26 Aug 2011 09:52:07 +0000 (17:52 +0800)]
Fix format bug in defstruct

http://debbugs.gnu.org/9357

12 years agomailcap.el (mailcap-mime-data): Regexp-quote MIME subtype.
Katsumi Yamaoka [Fri, 26 Aug 2011 09:01:56 +0000 (09:01 +0000)]
mailcap.el (mailcap-mime-data): Regexp-quote MIME subtype.

12 years ago* configure.in: Add -MP to DEPFLAGS.
Jan Djärv [Fri, 26 Aug 2011 07:12:16 +0000 (09:12 +0200)]
* configure.in: Add -MP to DEPFLAGS.

Fixes: debbugs:9372
12 years agoMerge from trunk.
Paul Eggert [Fri, 26 Aug 2011 05:05:13 +0000 (22:05 -0700)]
Merge from trunk.

12 years agognus-msg.el (gnus-setup-message): Remove extra apostrophe.
Katsumi Yamaoka [Fri, 26 Aug 2011 04:25:55 +0000 (04:25 +0000)]
gnus-msg.el (gnus-setup-message): Remove extra apostrophe.

12 years agoMerge from trunk.
Paul Eggert [Thu, 25 Aug 2011 22:38:52 +0000 (15:38 -0700)]
Merge from trunk.

12 years ago* lisp/isearch.el (isearch-occur): Let-bind `search-spaces-regexp' to
Juri Linkov [Thu, 25 Aug 2011 20:48:45 +0000 (23:48 +0300)]
* lisp/isearch.el (isearch-occur): Let-bind `search-spaces-regexp' to
`search-whitespace-regexp'.

Fixes: debbugs:9364
12 years ago* lisp/isearch.el (isearch-edit-string): Let-bind `search-ring' and
Juri Linkov [Thu, 25 Aug 2011 20:32:54 +0000 (23:32 +0300)]
* lisp/isearch.el (isearch-edit-string): Let-bind `search-ring' and
`regexp-search-ring' to their global values to protect from
updating by `read-from-minibuffer'.

Fixes: debbugs:9185
12 years ago* lisp/textmodes/ispell.el (ispell-command-loop): Add newline
Juri Linkov [Thu, 25 Aug 2011 19:54:07 +0000 (22:54 +0300)]
* lisp/textmodes/ispell.el (ispell-command-loop): Add newline
at the end of the "Use option `i'..." line.

12 years ago* lisp/battery.el (display-battery-mode): If `battery-status-function'
Juri Linkov [Thu, 25 Aug 2011 19:49:57 +0000 (22:49 +0300)]
* lisp/battery.el (display-battery-mode): If `battery-status-function'
or `battery-mode-line-format' is nil, display the message and set
`display-battery-mode' to nil.

Fixes: debbugs:9363
12 years agoMerge from trunk.
Paul Eggert [Thu, 25 Aug 2011 19:06:56 +0000 (12:06 -0700)]
Merge from trunk.

12 years agoFix last change for text terminals.
Eli Zaretskii [Thu, 25 Aug 2011 17:16:39 +0000 (20:16 +0300)]
Fix last change for text terminals.

 src/xdisp.c (try_cursor_movement): Don't advance `row' beyond the
 last row of the window.

12 years agoFix cursor motion with long continued lines near window bottom.
Eli Zaretskii [Thu, 25 Aug 2011 16:33:16 +0000 (19:33 +0300)]
Fix cursor motion with long continued lines near window bottom.

 src/xdisp.c (try_cursor_movement): Check for the need to scroll more
 accurately, and prefer exact match for point under bidi.

12 years agoFix Emacs manual chapter numbers in last change.
Chong Yidong [Thu, 25 Aug 2011 16:30:46 +0000 (12:30 -0400)]
Fix Emacs manual chapter numbers in last change.

12 years agoRelocate some additional Emacs manual nodes.
Chong Yidong [Thu, 25 Aug 2011 16:13:59 +0000 (12:13 -0400)]
Relocate some additional Emacs manual nodes.

* doc/emacs/display.texi (Narrowing): Move into display chapter.

* doc/emacs/picture-xtra.texi (Picture Mode): Group with Editing Binary
Files section.  Convert from chapter into section.

* doc/emacs/text.texi (Two-Column): Move into Text chapter.

12 years agoRearrange manual chapters to group mail, rmail, and gnus together.
Chong Yidong [Thu, 25 Aug 2011 15:38:49 +0000 (11:38 -0400)]
Rearrange manual chapters to group mail, rmail, and gnus together.

* sending.texi (Sending Mail):
* rmail.texi (Rmail):
* misc.texi (Gnus, Document View):
* dired.texi (Dired):
* emacs.texi: Group the mail, rmail, and gnus chapters together.

12 years agoCosmetic fixes.
Bastien Guerry [Thu, 25 Aug 2011 11:00:13 +0000 (13:00 +0200)]
Cosmetic fixes.

12 years agoHandle `(space ...)' display spec as paragraph separator.
Eli Zaretskii [Thu, 25 Aug 2011 10:45:33 +0000 (13:45 +0300)]
Handle `(space ...)' display spec as paragraph separator.

 src/xdisp.c (compute_display_string_pos): Return 2 in DISP_PROP when
 the display spec is of the form `(space ...)'.
 (handle_display_spec): Return the value returned by
 handle_single_display_spec, not just 1 or zero.
 (handle_single_display_spec): If the display spec is of the form
 `(space ...)', and specifies display in the text area, return 2
 rather than 1.
 src/dispextern.h (struct bidi_it): Rename the disp_prop_p member
 into disp_prop; all users changed.
 src/bidi.c (bidi_fetch_char): If compute_display_string_pos returns
 DISP_PROP = 2, substitute the u+2029 PARAGRAPH SEPARATOR character
 for the text covered by the display property.
 lisp/buff-menu.el (Buffer-menu-buffer+size): Remove calls to
 bidi-string-mark-left-to-right; they are unnecessary now.
 doc/lispref/display.texi (Specified Space): Mention that `space' specs
 influence bidi reordering.
 (Bidirectional Display): Explain how to use `(space . PROPS)' for
 separating fields with bidirectional content.

12 years ago* lisp/net/quickurl.el: Documentation typo fixes.
Deniz Dogan [Thu, 25 Aug 2011 05:43:57 +0000 (07:43 +0200)]
* lisp/net/quickurl.el: Documentation typo fixes.

12 years ago* lisp/emacs-lisp/derived.el (define-derived-mode): Doc fix.
Glenn Morris [Thu, 25 Aug 2011 05:37:55 +0000 (22:37 -0700)]
* lisp/emacs-lisp/derived.el (define-derived-mode): Doc fix.

12 years agoDelete record-buffer, and rename unrecord-buffer to bury-buffer-internal.
Chong Yidong [Thu, 25 Aug 2011 00:45:23 +0000 (20:45 -0400)]
Delete record-buffer, and rename unrecord-buffer to bury-buffer-internal.

* lisp/window.el (bury-buffer, quit-window): Use bury-buffer-internal.

* src/buffer.c (Fbury_buffer_internal): Rename from Funrecord_buffer.
Change return value to nil.
(Frecord_buffer): Delete unused function.

12 years agoMinor smtpmail.el fixes.
Glenn Morris [Thu, 25 Aug 2011 00:41:03 +0000 (20:41 -0400)]
Minor smtpmail.el fixes.

* lisp/mail/smtpmail.el (smtpmail-smtp-user): Add version: tag.
(smtpmail-via-smtp): Handle nil response from smtp.

12 years agoMerge from trunk.
Paul Eggert [Wed, 24 Aug 2011 21:20:36 +0000 (14:20 -0700)]
Merge from trunk.

12 years agoMore uses of `error' and `warning' faces.
Juri Linkov [Wed, 24 Aug 2011 18:09:18 +0000 (21:09 +0300)]
More uses of `error' and `warning' faces.

* lisp/battery.el (battery-update): Use the face `error' instead of
`font-lock-warning-face'.

* lisp/ibuffer.el (ibuffer-marked-face): Change default face from
`font-lock-warning-face' to `warning'.
(ibuffer-deletion-face): Change default face from
`font-lock-type-face' to `error'.

* lisp/proced.el (proced-marked): Inherit from `error' instead of
`font-lock-warning-face'.

Fixes: debbugs:6117
12 years ago* lisp/faces.el (success): Change face color from "Green3" to
Juri Linkov [Wed, 24 Aug 2011 18:01:40 +0000 (21:01 +0300)]
* lisp/faces.el (success): Change face color from "Green3" to
"ForestGreen" on light background.

Fixes: debbugs:9353
12 years agoRename quit-restore-window into quit-window.
Chong Yidong [Wed, 24 Aug 2011 17:38:46 +0000 (13:38 -0400)]
Rename quit-restore-window into quit-window.

* lisp/window.el (quit-window): Renamed from quit-restore-window.  Use
same arglist as old quit-window.
(frame-auto-delete): Doc fix.

* lisp/view.el (view-mode-exit): Use quit-window.

12 years agoFix cursor movement in R2L text within L2R paragraphs.
Eli Zaretskii [Wed, 24 Aug 2011 15:51:56 +0000 (18:51 +0300)]
Fix cursor movement in R2L text within L2R paragraphs.

 src/xdisp.c (set_cursor_from_row): Consider candidate row a win if its
 glyph represents a newline and point is on that newline.  Fixes cursor
 positioning on the newline at EOL of R2L text within L2R
 paragraph, and vice versa.
 (try_cursor_movement): Check continued rows, in addition to
 continuation rows.  Fixes unwarranted scroll when point enters a
 continued line of R2L text within an L2R paragraph, or vice versa.
 (cursor_row_p): Consider the case of point being equal to
 MATRIX_ROW_END_CHARPOS.  Prevents cursor being stuck when moving
 from the end of a short line to the beginning of a continued line
 of R2L text within L2R paragraph.
 (RECORD_MAX_MIN_POS): For max_pos, use IT_CHARPOS even for
 composed characters.

12 years agoFix current-bidi-paragraph-direction and its doc.
Eli Zaretskii [Wed, 24 Aug 2011 11:49:54 +0000 (14:49 +0300)]
Fix current-bidi-paragraph-direction and its doc.

 src/xdisp.c (Fcurrent_bidi_paragraph_direction): For unibyte
 buffers, return left-to-right.
 doc/lispref/display.texi (Bidirectional Display): Document return value in
 buffers that are not bidi-reordered for display, and in unibyte
 buffers.

12 years ago"C-s M-p" brings the tip of the search ring.
Juri Linkov [Wed, 24 Aug 2011 09:40:58 +0000 (12:40 +0300)]
"C-s M-p" brings the tip of the search ring.

* lisp/isearch.el (isearch-ring-adjust1): Start visiting previous
search strings from the index 0 (-1 + 1) instead of 1 (0 + 1).
(isearch-repeat, isearch-edit-string): Call `isearch-ring-adjust1'
for empty search string (when the last search string is reused
automatically) to adjust the isearch ring to the last element and
prepare the correct index for further M-p commands.

Fixes: debbugs:9185
12 years agoMinor changes in bidi.c.
Eli Zaretskii [Wed, 24 Aug 2011 07:46:00 +0000 (10:46 +0300)]
Minor changes in bidi.c.

 src/bidi.c (bidi_check_type): Use xassert.
 (bidi_cache_iterator_state): Update the disp_pos and disp_prop_p
 members.

12 years agomerge trunk
Kenichi Handa [Wed, 24 Aug 2011 07:35:02 +0000 (16:35 +0900)]
merge trunk

12 years agointernational/ucs-normalize.el: If decomposition property of CHAR is the default...
Kenichi Handa [Wed, 24 Aug 2011 07:33:55 +0000 (16:33 +0900)]
international/ucs-normalize.el: If decomposition property of CHAR is the default one (i.e. a list of CHAR itself), treat it as nil.

12 years ago* etc/refcards/refcard.tex: Add a few more commands. (tiny change)
Steve Chapel [Wed, 24 Aug 2011 07:31:35 +0000 (00:31 -0700)]
* etc/refcards/refcard.tex: Add a few more commands.  (tiny change)

Fixes: debbugs:9343
12 years ago* lisp/mpc.el (mpc--proc-filter): Don't signal mpc-proc-error since signals
Stefan Monnier [Wed, 24 Aug 2011 01:55:10 +0000 (21:55 -0400)]
* lisp/mpc.el (mpc--proc-filter): Don't signal mpc-proc-error since signals
from process filters aren't reliably transmitted to the surrounding
accept-process-output.
(mpc-proc-check): New function.
(mpc-proc-sync): Use it

Fixes: debbugs:8293
12 years ago* lisp/emacs-lisp/eieio.el (eieio-defmethod, eieio-defgeneric):
Stefan Monnier [Tue, 23 Aug 2011 18:53:51 +0000 (14:53 -0400)]
* lisp/emacs-lisp/eieio.el (eieio-defmethod, eieio-defgeneric):
Add compatibility functions.

Fixes: debbugs:9313
12 years agocus-start.el: Add :version tag to bidi-paragraph-direction.
Eli Zaretskii [Tue, 23 Aug 2011 15:53:46 +0000 (18:53 +0300)]
cus-start.el: Add :version tag to bidi-paragraph-direction.

12 years agocus-start.el: Add entry for bidi-paragraph-direction.
Eli Zaretskii [Tue, 23 Aug 2011 15:21:19 +0000 (18:21 +0300)]
cus-start.el: Add entry for bidi-paragraph-direction.

12 years agoFollowup for character properties in 2011-08-23T11:48:07Z!handa@m17n.org.
Eli Zaretskii [Tue, 23 Aug 2011 14:45:14 +0000 (17:45 +0300)]
Followup for character properties in 2011-08-23T11:48:07Z!handa@m17n.org.

 src/bidi.c (bidi_get_type): Abort if we get zero as the bidi type of
 a character.
 admin/unidata/unidata-gen.el (unidata-prop-alist): Update the default
 values of bidi-class according to DerivedBidiClass.txt from the
 latest UCD.
 lisp/international/uni-bidi.el: Regenerated.
 doc/lispref/nonascii.texi (Character Properties): Document the values for
 unassigned codepoints.

12 years ago* src/nsfont.m (ns_otf_to_script): Fix typo.
Chong Yidong [Tue, 23 Aug 2011 14:41:07 +0000 (10:41 -0400)]
* src/nsfont.m (ns_otf_to_script): Fix typo.

12 years agomerge trunk
Kenichi Handa [Tue, 23 Aug 2011 11:49:03 +0000 (20:49 +0900)]
merge trunk

12 years agoFix default values of character properties.
Kenichi Handa [Tue, 23 Aug 2011 11:48:07 +0000 (20:48 +0900)]
Fix default values of character properties.

12 years agoFix bug #8874 with recentering and header line under scroll-conservatively.
Eli Zaretskii [Tue, 23 Aug 2011 10:35:47 +0000 (13:35 +0300)]
Fix bug #8874 with recentering and header line under scroll-conservatively.

 src/xdisp.c (redisplay_window): When computing centering_position,
 account for the height of the header line.

12 years agoFix message in help-window-setup (Bug#9341).
Martin Rudalics [Tue, 23 Aug 2011 09:31:54 +0000 (11:31 +0200)]
Fix message in help-window-setup (Bug#9341).

* help.el (help-window-setup): Fix message displayed when other
window is reused.  (Bug#9341)

12 years agoFix crashes with completion and composed characters.
Eli Zaretskii [Tue, 23 Aug 2011 08:38:29 +0000 (11:38 +0300)]
Fix crashes with completion and composed characters.

 src/dispnew.c (buffer_posn_from_coords): Use buf_charpos_to_bytepos
 instead of CHAR_TO_BYTE.  Fixes a crash when a completion
 candidate is selected by the mouse, and that candidate has a
 composed character under the mouse.

12 years agoFix pos-visible-in-window-p for zero-column composed character.
Eli Zaretskii [Tue, 23 Aug 2011 07:01:25 +0000 (10:01 +0300)]
Fix pos-visible-in-window-p for zero-column composed character.

 src/xdisp.c (x_produce_glyphs): Set it->nglyphs to 1.  Fixes pixel
 coordinates reported by pos-visible-in-window-p for a composed
 character in column zero.

12 years ago* lisp/shell.el (shell-completion-vars): Set pcomplete-arg-quote-list.
Stefan Monnier [Tue, 23 Aug 2011 05:25:17 +0000 (01:25 -0400)]
* lisp/shell.el (shell-completion-vars): Set pcomplete-arg-quote-list.
* lisp/pcomplete.el (pcomplete-quote-argument): Fix thinko.

Fixes: debbugs:9161
12 years ago* lisp/pcomplete.el (pcomplete-parse-comint-arguments): Fix inf-loop.
Stefan Monnier [Tue, 23 Aug 2011 05:21:09 +0000 (01:21 -0400)]
* lisp/pcomplete.el (pcomplete-parse-comint-arguments): Fix inf-loop.
Mark obsolete.
* lisp/shell.el (shell-parse-pcomplete-arguments): New function.
(shell-completion-vars): Use it instead.

Fixes: debbugs:9160
12 years ago* src/cmds.c (Fself_insert_command): Mention post-self-insert-hook.
Stefan Monnier [Tue, 23 Aug 2011 03:09:59 +0000 (23:09 -0400)]
* src/cmds.c (Fself_insert_command): Mention post-self-insert-hook.

12 years ago* lisp/progmodes/sh-script.el (sh-maybe-here-document): Disable magic in
Stefan Monnier [Mon, 22 Aug 2011 22:10:21 +0000 (18:10 -0400)]
* lisp/progmodes/sh-script.el (sh-maybe-here-document): Disable magic in
strings and comments.

Fixes: debbugs:9333
12 years ago* lisp/emacs-lisp/debug.el (debug-arglist): New function.
Stefan Monnier [Mon, 22 Aug 2011 21:16:46 +0000 (17:16 -0400)]
* lisp/emacs-lisp/debug.el (debug-arglist): New function.
(debug-convert-byte-code): Use it.  Handle lexical byte-codes.
(debug-on-entry-1): Handle interpreted closures.

Fixes: debbugs:9120