bpt/emacs.git
12 years agoFix bug #9624 with crashes in Muse mode.
Eli Zaretskii [Wed, 28 Sep 2011 14:37:27 +0000 (17:37 +0300)]
Fix bug #9624 with crashes in Muse mode.

 src/xdisp.c (compute_display_string_end): If there's no display
 string at CHARPOS, return -1.
 src/bidi.c (bidi_fetch_char): When compute_display_string_end
 returns a negative value, treat the character as a normal
 character not covered by a display string.

12 years agognus-uu.el (gnus-uu-grab-articles): Require gnus-async so that `gnus-asynchronous...
Lars Magne Ingebrigtsen [Wed, 28 Sep 2011 09:03:55 +0000 (09:03 +0000)]
gnus-uu.el (gnus-uu-grab-articles): Require gnus-async so that `gnus-asynchronous' isn't shadowed.

12 years ago* lisp/progmodes/perl-mode.el (perl-syntax-propertize-function):
Stefan Monnier [Wed, 28 Sep 2011 02:19:56 +0000 (22:19 -0400)]
* lisp/progmodes/perl-mode.el (perl-syntax-propertize-function):
Don't confuse "y => 3" as the beginning of a `y' operation.

12 years ago* lisp/emacs-lisp/debug.el (debug-convert-byte-code): Don't assume the
Stefan Monnier [Wed, 28 Sep 2011 01:20:41 +0000 (21:20 -0400)]
* lisp/emacs-lisp/debug.el (debug-convert-byte-code): Don't assume the
object has more than 4 slots.

Fixes: debbugs:9613

12 years agoFix typos.
Juanma Barranquero [Wed, 28 Sep 2011 00:59:28 +0000 (02:59 +0200)]
Fix typos.

12 years agoMove test/newsticker-testsuite.el to automated/newsticker-tests.el
Ulf Jasper [Tue, 27 Sep 2011 19:08:40 +0000 (21:08 +0200)]
Move test/newsticker-testsuite.el to automated/newsticker-tests.el

2011-09-27  Ulf Jasper  <ulf.jasper@web.de>

* automated/newsticker-tests.el: Move newsticker-testsuite.el
to automated/newsticker-tests.el. Convert to ERT.

12 years agoMove test/newsticker-testsuite.el to automated/newsticker-tests.el
Ulf Jasper [Tue, 27 Sep 2011 18:52:00 +0000 (20:52 +0200)]
Move test/newsticker-testsuite.el to automated/newsticker-tests.el

2011-09-27  Ulf Jasper  <ulf.jasper@web.de>

* automated/newsticker-tests.el: Move newsticker-testsuite.el
to automated/newsticker-tests.el. Convert to ERT.

12 years agoImprove doc strings for completion styles.
Eli Zaretskii [Tue, 27 Sep 2011 18:51:05 +0000 (21:51 +0300)]
Improve doc strings for completion styles.

 lisp/minibuffer.el (completion-styles)
 (completion-category-overrides): Cross reference each other in doc
 strings.

12 years agopcmpl-cvs.el fix for bug#9606
Glenn Morris [Tue, 27 Sep 2011 18:09:43 +0000 (14:09 -0400)]
pcmpl-cvs.el fix for bug#9606

* lisp/pcmpl-cvs.el (pcmpl-cvs-entries): Update for Emacs 22.1 changes
to split-string.

12 years ago* mail/smtpmail.el (smtpmail-via-smtp): Fix STARTTLS detection.
Lars Magne Ingebrigtsen [Tue, 27 Sep 2011 17:45:18 +0000 (19:45 +0200)]
* mail/smtpmail.el (smtpmail-via-smtp): Fix STARTTLS detection.

Fixes: debbugs:9615

12 years agoFix bug #9610 with slow cursor motion in buffers with invisible text.
Eli Zaretskii [Tue, 27 Sep 2011 17:18:31 +0000 (20:18 +0300)]
Fix bug #9610 with slow cursor motion in buffers with invisible text.

 src/xdisp.c (handle_invisible_prop): If invisible text ends on a
 newline, reseat the iterator instead of bidi-iterating there one
 character at a time.  (Bug#9610)
 (BUFFER_POS_REACHED_P, move_it_in_display_line_to): Bail when past
 TO_CHARPOS if the bidi iterator is at base embedding level.

12 years agoForce left-to-right paragraphs in Org buffers.
Eli Zaretskii [Tue, 27 Sep 2011 16:46:17 +0000 (19:46 +0300)]
Force left-to-right paragraphs in Org buffers.

 lisp/org/org.el (org-mode): Force left-to-right paragraphs in Org
 buffers.  For a related discussions, see
 https://lists.gnu.org/archive/html/emacs-devel/2011-09/msg00349.html.

12 years ago* lisp/emacs-lisp/package.el (list-packages): Fix echo area message.
Chong Yidong [Tue, 27 Sep 2011 15:58:13 +0000 (11:58 -0400)]
* lisp/emacs-lisp/package.el (list-packages): Fix echo area message.

12 years agoAuto-commit of generated files.
Glenn Morris [Tue, 27 Sep 2011 10:19:42 +0000 (06:19 -0400)]
Auto-commit of generated files.

12 years agoAccept cons cell HIST arg in ido-read-internal
Leo Liu [Tue, 27 Sep 2011 09:28:03 +0000 (17:28 +0800)]
Accept cons cell HIST arg in ido-read-internal

12 years ago* lread.c (readevalloop): Use correct code for NBSP.
Andreas Schwab [Tue, 27 Sep 2011 08:37:07 +0000 (10:37 +0200)]
* lread.c (readevalloop): Use correct code for NBSP.
(read1): Likewise.  (Bug#9608)

12 years agoClarify plstore-select-keys documentation.
Daiki Ueno [Tue, 27 Sep 2011 06:01:27 +0000 (15:01 +0900)]
Clarify plstore-select-keys documentation.

* plstore.el (plstore-select-keys, plstore-encrypt-to): Clarify
documentation.

12 years agomerge trunk
Kenichi Handa [Tue, 27 Sep 2011 02:18:32 +0000 (11:18 +0900)]
merge trunk

12 years agoImprove tamil-itrans input method.
Kenichi Handa [Tue, 27 Sep 2011 02:15:28 +0000 (11:15 +0900)]
Improve tamil-itrans input method.

12 years agoFix last change.
Katsumi Yamaoka [Mon, 26 Sep 2011 22:53:59 +0000 (22:53 +0000)]
Fix last change.

12 years agonnimap.el (nnimap-insert-partial-structure): The charset parameter isn't case-sensitive.
Lars Magne Ingebrigtsen [Mon, 26 Sep 2011 22:52:31 +0000 (22:52 +0000)]
nnimap.el (nnimap-insert-partial-structure): The charset parameter isn't case-sensitive.

12 years agoMerge changes made in Gnus trunk.
Lars Magne Ingebrigtsen [Mon, 26 Sep 2011 21:59:47 +0000 (21:59 +0000)]
Merge changes made in Gnus trunk.

nnimap.el (nnimap-wait-for-response): Message less (bug#9540).
nnheader.el (nnheader-message-maybe): New function.
shr.el (shr-tag-table): Render totally broken tables better.
mml.el (mml-generate-mime-1): Don't alter the contents if we're computing the boundary.
pop3.el (pop3-number-of-responses): Removed.
 (pop3-wait-for-messages): Rewrite to take linear time instead of exponential time.

12 years agoMerge from trunk.
Paul Eggert [Mon, 26 Sep 2011 21:34:22 +0000 (14:34 -0700)]
Merge from trunk.

12 years agoMerge from gnulib, improving some licensing wording.
Paul Eggert [Mon, 26 Sep 2011 21:30:18 +0000 (14:30 -0700)]
Merge from gnulib, improving some licensing wording.

This clarifies and fixes some licensing issues raised by Glenn Morris
<http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
It also merges the latest version of texinfo.tex and has some
MSVC-related changes that don't affect Emacs.
* Makefile.in (GNULIB_TOOL_FLAGS): Avoid msvc-inval, msvc-nothrow,
pathmax, and raise, since these are needed only to address
MSVC-related issues that Emacs doesn't have.
* doc/misc/texinfo.tex, lib/dup2.c, lib/gnulib.mk, lib/signal.in.h:
* lib/sigprocmask.c, lib/stat.c, lib/stdio.in.h, lib/sys_stat.in.h:
* lib/unistd.in.h, m4/dup2.m4, m4/getloadavg.m4, m4/gl-comp.m4:
* m4/include_next.m4, m4/signal_h.m4, m4/signalblocking.m4:
* m4/stdint.m4, m4/stdio_h.m4, m4/sys_stat_h.m4, m4/time_h.m4:
* m4/unistd_h.m4: Merge from gnulib.

12 years ago* configure.in: Initialize HAVE_LIBXML2.
Andreas Schwab [Mon, 26 Sep 2011 18:38:31 +0000 (20:38 +0200)]
* configure.in: Initialize HAVE_LIBXML2.

12 years agoFix NEWS entry for M-SPC change.
Chong Yidong [Mon, 26 Sep 2011 15:05:52 +0000 (11:05 -0400)]
Fix NEWS entry for M-SPC change.

Fixes: debbugs:9604

12 years agoAuto-commit of generated files.
Glenn Morris [Mon, 26 Sep 2011 10:18:24 +0000 (06:18 -0400)]
Auto-commit of generated files.

12 years ago* make-dist: Add lib/makefile.w32-in.
Glenn Morris [Mon, 26 Sep 2011 08:23:13 +0000 (01:23 -0700)]
* make-dist: Add lib/makefile.w32-in.

12 years agoUpdates to admin/make-tarball.txt.
Chong Yidong [Mon, 26 Sep 2011 03:40:18 +0000 (23:40 -0400)]
Updates to admin/make-tarball.txt.

12 years agoBump version to 24.0.90.
Chong Yidong [Mon, 26 Sep 2011 03:20:03 +0000 (23:20 -0400)]
Bump version to 24.0.90.
Regenerate AUTHORS and ldefs-boot.el.

12 years ago* admin.el (set-version): Fix regexps for config.nt and sed2v2.inp.
Chong Yidong [Mon, 26 Sep 2011 03:02:21 +0000 (23:02 -0400)]
* admin.el (set-version): Fix regexps for config.nt and sed2v2.inp.

12 years ago* dbusbind.c (Fdbus_register_signal): When service is not
Michael Albinus [Sun, 25 Sep 2011 16:00:02 +0000 (18:00 +0200)]
* dbusbind.c (Fdbus_register_signal): When service is not
registered, use nil in Vdbus_registered_objects_table.  (Bug#9581)

12 years ago* net/dbus.el (dbus-unregister-object): Don't release services for
Michael Albinus [Sun, 25 Sep 2011 15:56:28 +0000 (17:56 +0200)]
* net/dbus.el (dbus-unregister-object): Don't release services for
registered signals.  (Bug#9581)

12 years agoAdd NEWS entries for quit-window, window-state functions, and ignore-window-parameters.
Martin Rudalics [Sun, 25 Sep 2011 15:29:14 +0000 (17:29 +0200)]
Add NEWS entries for quit-window, window-state functions, and ignore-window-parameters.

12 years agoDescribe window quitting, configuration and parameter additions.
Martin Rudalics [Sun, 25 Sep 2011 15:08:25 +0000 (17:08 +0200)]
Describe window quitting, configuration and parameter additions.

* windows.texi (Quitting Windows): New node.
(Window Configurations): Add descriptions of window-state-get
and window-state-put.
(Window Parameters): Describe variable ignore-window-parameters.
Sketch some window parameters currently in use.
* elisp.texi (Top): Update node listing.

12 years ago* lisp/progmodes/cfengine.el (cfengine-auto-mode): Add convenience function.
Ted Zlatanov [Sun, 25 Sep 2011 11:52:53 +0000 (07:52 -0400)]
* lisp/progmodes/cfengine.el (cfengine-auto-mode): Add convenience function.

* lisp/progmodes/cfengine.el (cfengine-auto-mode): Add convenience
function that picks between cfengine 2 and 3 support
automatically.  Update docs accordingly.

12 years agoAuto-commit of generated files.
Glenn Morris [Sun, 25 Sep 2011 10:19:40 +0000 (06:19 -0400)]
Auto-commit of generated files.

12 years agoSome minor changes in windows section.
Martin Rudalics [Sun, 25 Sep 2011 10:11:25 +0000 (12:11 +0200)]
Some minor changes in windows section.

* windows.texi (Windows and Frames, Display Action Functions)
(Switching Buffers): Fix some typos.
(Buffers and Windows): Remove reference to window-auto-delete.
Reword description of replace-buffer-in-windows.
(Window History): Fix some typos and refer to frame local buffer
list.

12 years agoDocument display-buffer-alist and related variables in Lisp manual.
Chong Yidong [Sun, 25 Sep 2011 03:32:51 +0000 (23:32 -0400)]
Document display-buffer-alist and related variables in Lisp manual.

* doc/lispref/windows.texi (Display Action Functions)
(Choosing Window Options): New nodes.

12 years ago* src/buffer.c (truncate-lines): Doc fix.
Glenn Morris [Sun, 25 Sep 2011 02:30:31 +0000 (19:30 -0700)]
* src/buffer.c (truncate-lines): Doc fix.

12 years agoSupport a new variable `shr-ignore-cache' to re-fetch images when hitting `g' in...
Lars Magne Ingebrigtsen [Sat, 24 Sep 2011 23:09:56 +0000 (23:09 +0000)]
Support a new variable `shr-ignore-cache' to re-fetch images when hitting `g' in Gnus.

gnus-sum.el (gnus-summary-show-article): Bind `shr-ignore-cache' to re-fetch images.
shr.el (shr-tag-img): Support a new variable `shr-ignore-cache' to re-fetch images when hitting `g' in Gnus.

12 years ago* url-http.el (url-http-create-request): Avoid adding extra CRLF (Bug#8931).
Christopher J. White [Sat, 24 Sep 2011 22:58:40 +0000 (18:58 -0400)]
* url-http.el (url-http-create-request): Avoid adding extra CRLF (Bug#8931).

12 years agoMinor doc fixes for some window functions.
Chong Yidong [Sat, 24 Sep 2011 22:51:36 +0000 (18:51 -0400)]
Minor doc fixes for some window functions.

Minor doc fixes for switch-to-buffer, window-prev-buffers,
set-window-prev-buffers, set-window-next-buffers.

12 years agoDocument display-buffer and other window changes in Lisp manual.
Chong Yidong [Sat, 24 Sep 2011 22:49:32 +0000 (18:49 -0400)]
Document display-buffer and other window changes in Lisp manual.

* doc/lispref/windows.texi (Window History): New node.  Move text here
from Buffers and Windows.
(Switching Buffers): Rename from Displaying Buffers, since we
don't document display-buffer here; callers changed.  Document
FORCE-SAME-WINDOW arg to switch-to-buffer and
switch-to-buffer-other-frame.  Delete duplicate
replace-buffer-in-windows doc.
(Choosing Window): Document display actions.

12 years ago* allout.el (allout-this-command-hid-stuff): Buffer-local variable that's
Ken Manheimer [Sat, 24 Sep 2011 20:58:23 +0000 (16:58 -0400)]
* allout.el (allout-this-command-hid-stuff): Buffer-local variable that's
true if the current command involved collapsing of text.  It's reset to
false at the beginning of the next command.
(allout-post-command-business): Move the cursor to the beginning of entry
if the cursor is hidden and collapsing activity just happened.

12 years ago* configure.in (CRT_DIR): Fix netbsd/openbsd handling.
Glenn Morris [Sat, 24 Sep 2011 19:06:20 +0000 (12:06 -0700)]
* configure.in (CRT_DIR): Fix netbsd/openbsd handling.

Ref: http://lists.gnu.org/archive/html/emacs-devel/2011-09/msg00562.html

12 years ago* mouse.el (mouse-drag-track): Set scroll-margin to 0 while tracking.
Chong Yidong [Sat, 24 Sep 2011 18:38:20 +0000 (14:38 -0400)]
* mouse.el (mouse-drag-track): Set scroll-margin to 0 while tracking.

Fixes: debbugs:9541

12 years ago* src/minibuf.c (read_minibuf): Disable line truncation. (Bug#5715)
Glenn Morris [Sat, 24 Sep 2011 18:29:35 +0000 (11:29 -0700)]
* src/minibuf.c (read_minibuf): Disable line truncation.  (Bug#5715)

12 years ago* etc/PROBLEMS: Very long lines being slow is a known issue.
Glenn Morris [Sat, 24 Sep 2011 18:27:18 +0000 (11:27 -0700)]
* etc/PROBLEMS: Very long lines being slow is a known issue.

12 years agoWindow-related updates to NEWS and Emacs manual.
Chong Yidong [Sat, 24 Sep 2011 18:19:20 +0000 (14:19 -0400)]
Window-related updates to NEWS and Emacs manual.

* etc/NEWS: Reorganize, placing user options in Changes section.

* doc/emacs/buffers.texi (Select Buffer): Clarify description of
buffer-switching commands.  Add xref to Window Display node.
Don't repeat confirm-nonexistent-file-or-buffer description from
Visiting node.  Remove even-window-heights.

* doc/emacs/frames.texi (Special Buffer Frames): Add xref to Window Choice.

* doc/emacs/windows.texi (Pop Up Window): Defer discussion of window
splitting to the Window Choice node.  Add index entries.
(Force Same Window): Node deleted.
(Displaying Buffers, Window Choice): New nodes.

12 years agoFix minor problems found by static checking.
Paul Eggert [Sat, 24 Sep 2011 16:31:55 +0000 (09:31 -0700)]
Fix minor problems found by static checking.

* xdisp.c (string_from_display_spec): Don't assume vecsize fits in int.
* indent.c (Fvertical_motion): Fix == vs = typo.

12 years ago* xdisp.c (string_from_display_spec): Don't use int for vector length.
Paul Eggert [Sat, 24 Sep 2011 16:28:25 +0000 (09:28 -0700)]
* xdisp.c (string_from_display_spec): Don't use int for vector length.

12 years ago* indent.c (Fvertical_motion): Fix == vs = typo.
Paul Eggert [Sat, 24 Sep 2011 16:15:32 +0000 (09:15 -0700)]
* indent.c (Fvertical_motion): Fix == vs = typo.

12 years agoChange the default value of redisplay-dont-pause to t.
Eli Zaretskii [Sat, 24 Sep 2011 14:38:16 +0000 (17:38 +0300)]
Change the default value of redisplay-dont-pause to t.

 src/dispnew.c (syms_of_display) <redisplay-dont-pause>: Default
 value is now t.  Doc fix.
 doc/lispref/display.texi (Forcing Redisplay): Update the description of
 redisplay-dont-pause due to change in the default value.
 etc/NEWS: Mention the change of the default value.

12 years agonewsticker: automatically load html rendering packages.
Ulf Jasper [Sat, 24 Sep 2011 14:04:46 +0000 (16:04 +0200)]
newsticker: automatically load html rendering packages.

lisp/ChangeLog:

2011-09-24  Ulf Jasper  <ulf.jasper@web.de>

* net/newst-reader.el (newsticker-html-renderer)
(newsticker-show-news): Automatically load html rendering package
if newsticker-html-renderer is set. Fixes "Warning: defvar ignored
because w3m-fill-column is let-bound" and the error "Symbol's
value as variable is void: w3m-fill-column".

12 years agoFix vertical cursor motion when the newline is covered by a display string.
Eli Zaretskii [Sat, 24 Sep 2011 13:23:58 +0000 (16:23 +0300)]
Fix vertical cursor motion when the newline is covered by a display string.

 src/indent.c (Fvertical_motion): Compute and apply the overshoot
 logic when moving up, not only when moving down.  Fix the
 confusing name and values of the it_overshoot_expected variable;
 logic changes accordingly.  (Bug#9254) (Bug#9549)
 src/xdisp.c (pos_visible_p): Produce correct pixel coordinates when
 CHARPOS is covered by a display string which includes newlines.
 (move_it_vertically_backward): Avoid inflooping when START_CHARPOS
 is covered by a display string with embedded newlines.

12 years ago* net/dbus.el (dbus-unregister-object): Remove match rule of signals.
Michael Albinus [Sat, 24 Sep 2011 11:45:13 +0000 (13:45 +0200)]
* net/dbus.el (dbus-unregister-object): Remove match rule of signals.
Release services only if they are defined.  (Bug#9581)

12 years ago* dbusbind.c (Fdbus_register_signal): Add match rule to
Michael Albinus [Sat, 24 Sep 2011 11:36:53 +0000 (13:36 +0200)]
* dbusbind.c (Fdbus_register_signal): Add match rule to
Vdbus_registered_objects_table.  (Bug#9581)
(Fdbus_register_method, Vdbus_registered_objects_table): Fix
docstring.

12 years agobidi.c: Whitespace changes and a few added parentheses,
Richard M. Stallman [Sat, 24 Sep 2011 10:31:37 +0000 (06:31 -0400)]
bidi.c: Whitespace changes and a few added parentheses,
to follow usual Emacs and GNU style.

12 years agodo not ignore write error for any output size
Jim Meyering [Sat, 24 Sep 2011 09:22:06 +0000 (11:22 +0200)]
do not ignore write error for any output size

The previous change was incomplete.
While it makes emacs --batch detect the vast majority of stdout
write failures, errors were still ignored whenever the output size is
k * (BUFSIZ+1) - 4.  E.g., on a system with BUFSIZ of 4096,
  $ emacs --batch --eval '(print (format "%4093d" 0))' > /dev/full \
      && echo FAIL: ignored write error
  FAIL: ignored write error
  $ emacs --batch --eval '(print (format "%20481d" 0))' > /dev/full \
      && echo FAIL: ignored write error
  FAIL: ignored write error
* emacs.c (Fkill_emacs): Also test ferror.  (Bug#9574)

12 years agoFor moving backward sentences,
Richard M. Stallman [Fri, 23 Sep 2011 23:55:52 +0000 (19:55 -0400)]
For moving backward sentences,
distinguish start of paragraph from start of its text.

12 years agoAutoload report-emacs-bug-query-existing-bugs.
Richard M. Stallman [Fri, 23 Sep 2011 23:47:27 +0000 (19:47 -0400)]
Autoload report-emacs-bug-query-existing-bugs.

12 years agoDon't allow killing Rmail view buffer by itself.
Richard M. Stallman [Fri, 23 Sep 2011 23:44:32 +0000 (19:44 -0400)]
Don't allow killing Rmail view buffer by itself.
It gets killed only when its Rmail buffer gets killed.

12 years ago* erc-button.el (erc-button-next-function): Scoping fix (Bug#9487).
Antoine Levitt [Fri, 23 Sep 2011 21:22:31 +0000 (17:22 -0400)]
* erc-button.el (erc-button-next-function): Scoping fix (Bug#9487).

12 years ago* lisp/international/mule-diag.el (mule-diag): Insert a newline after
Andreas Schwab [Fri, 23 Sep 2011 16:26:48 +0000 (18:26 +0200)]
* lisp/international/mule-diag.el (mule-diag): Insert a newline after
each fontset description.

12 years ago* lisp/simple.el (delete-trailing-whitespace): Document last change; simplify.
Stefan Monnier [Fri, 23 Sep 2011 15:06:14 +0000 (11:06 -0400)]
* lisp/simple.el (delete-trailing-whitespace): Document last change; simplify.

12 years agoDocument some window code changes in NEWS.
Martin Rudalics [Fri, 23 Sep 2011 15:01:49 +0000 (17:01 +0200)]
Document some window code changes in NEWS.

12 years ago* lisp/simple.el (delete-trailing-whitespace): Also delete
Peter J. Weisberg [Fri, 23 Sep 2011 14:56:00 +0000 (10:56 -0400)]
* lisp/simple.el (delete-trailing-whitespace): Also delete
extra newlines at the end of the buffer.

12 years ago* lisp/textmodes/picture.el: Make motion commands obey shift-select-mode.
Peter J. Weisberg [Fri, 23 Sep 2011 14:47:01 +0000 (10:47 -0400)]
* lisp/textmodes/picture.el: Make motion commands obey shift-select-mode.
(picture-newline): Use forward-line so as to ignore fields.

12 years ago* lisp/subr.el (with-wrapper-hook): Fix edebug spec.
Stefan Monnier [Fri, 23 Sep 2011 14:32:36 +0000 (10:32 -0400)]
* lisp/subr.el (with-wrapper-hook): Fix edebug spec.

12 years ago* simple.el (kill-line): Note effect of `show-trailing-whitespace'.
Lars Magne Ingebrigtsen [Fri, 23 Sep 2011 10:52:23 +0000 (12:52 +0200)]
* simple.el (kill-line): Note effect of `show-trailing-whitespace'.

Fixes: debbugs:4538

12 years ago* src/emacs.c (Fkill_emacs): In noninteractive mode exit
Andreas Schwab [Fri, 23 Sep 2011 09:56:55 +0000 (11:56 +0200)]
* src/emacs.c (Fkill_emacs): In noninteractive mode exit
non-successfully if a write error occurred on stdout.  (Bug#9574)

12 years ago* net/tramp-sh.el (tramp-sh-handle-file-name-all-completions): Fix
Michael Albinus [Fri, 23 Sep 2011 09:38:41 +0000 (11:38 +0200)]
* net/tramp-sh.el (tramp-sh-handle-file-name-all-completions): Fix
nasty bug using wrong cached values.

12 years agoprogmodes/cc-defs.el (c-version): Increase to 5.31.9.
Alan Mackenzie [Fri, 23 Sep 2011 09:24:47 +0000 (09:24 +0000)]
progmodes/cc-defs.el (c-version): Increase to 5.31.9.

12 years agoDocument changes to windows code.
Martin Rudalics [Fri, 23 Sep 2011 09:12:53 +0000 (11:12 +0200)]
Document changes to windows code.

* frames.texi (Frames and Windows): Move section and rename to
Windows and Frames in windows.texi.
* windows.texi (Windows): Restructure.
(Basic Windows): Rewrite.  Explain live and internal windows and
normalization functions.
(Windows and Frames): Move section here from frames.texi.
Describe subwindows, window combinations, window tree, and
corresponding functions including window-list here.
(Window Sizes): Rename section from Size of Window and move it
up in chapter.  Describe total and body sizes and the
corresponding functions.  Explain new semantics of
window-min-height/-width.
(Resizing Windows): Move section up in chapter.  Describe new
resize functions.
(Splitting Windows): Describe new behavior of split-window,
split-window-above-each-other and split-window-side-by-side.
Provide examples.  Describe window-nest and window-splits
options.
(Deleting Windows): Minor rewrite.
(Selecting Windows): Minor rewrite.  Describe
frame-selected-window and set-frame-selected-window here.
(Cyclic Window Ordering): Minor rewrite.  Describe
window-list-1.
(Buffers and Windows): Rewrite.  Explain a window's previous and
next buffers and the corresponding functions.
* elisp.texi (Top): Update node listings for frames and windows
sections.

12 years agoAdd reference to Bug#410 in ChangeLog entry.
Martin Rudalics [Fri, 23 Sep 2011 07:30:26 +0000 (09:30 +0200)]
Add reference to Bug#410 in ChangeLog entry.

12 years ago* window.el (pop-to-buffer): Ensure right window is selected if we chose another...
Chong Yidong [Fri, 23 Sep 2011 01:42:40 +0000 (21:42 -0400)]
* window.el (pop-to-buffer): Ensure right window is selected if we chose another frame.
Otherwise, C-x 5 b might not select the right window if reusing a
window on another frame.

12 years agoMake "C-x =" show display properties from overlays.
Eli Zaretskii [Thu, 22 Sep 2011 16:49:57 +0000 (19:49 +0300)]
Make "C-x =" show display properties from overlays.

 lisp/simple.el (what-cursor-position): Use get-char-property-change
 and next-single-char-property-change, to be able to show display
 properties that come from overlays as well as text properties.

12 years agoReintroduce pop-to-buffer-same-window; use it for previous users of same-window-*.
Chong Yidong [Thu, 22 Sep 2011 16:15:52 +0000 (12:15 -0400)]
Reintroduce pop-to-buffer-same-window; use it for previous users of same-window-*.

* window.el (pop-to-buffer-same-window): New (reinstated) fun.

* cmuscheme.el (run-scheme, switch-to-scheme):
* cus-edit.el (customize-group, custom-buffer-create)
(customize-browse):
* info.el (info):
* shell.el (shell):
* mail/sendmail.el (mail):
* progmodes/inf-lisp.el (inferior-lisp): Use it.

Fixes: debbugs:9532

12 years agoFix bug that C-x DEL deleted a newline before paragraph.
Richard M. Stallman [Thu, 22 Sep 2011 13:34:02 +0000 (09:34 -0400)]
Fix bug that C-x DEL deleted a newline before paragraph.

12 years ago* files.el (copy-directory): Set directory attributes only in case
Michael Albinus [Thu, 22 Sep 2011 10:00:07 +0000 (12:00 +0200)]
* files.el (copy-directory): Set directory attributes only in case
they could be retrieved from the source directory.  (Bug#9565)

12 years agoIn special-display-popup-frame reset new frame's previous buffers to nil.
Martin Rudalics [Thu, 22 Sep 2011 09:28:57 +0000 (11:28 +0200)]
In special-display-popup-frame reset new frame's previous buffers to nil.

* window.el (special-display-popup-frame): When popping up a new frame
reset its previous buffers to nil.  Simplify code.

12 years agoSmall hideshow fix - ignore strings as well as comments (tiny change)
Dima Kogan [Thu, 22 Sep 2011 07:24:08 +0000 (00:24 -0700)]
Small hideshow fix - ignore strings as well as comments (tiny change)

* lisp/progmodes/hideshow.el (hs-looking-at-block-start-p)
(hs-find-block-beginning, hs-hide-level-recursive):
Ignore strings as well as comments.

Fixes: debbugs:9502

12 years agoSmall sql.el fix (tiny change)
Andrew Schein [Thu, 22 Sep 2011 07:05:40 +0000 (00:05 -0700)]
Small sql.el fix (tiny change)

* lisp/progmodes/sql.el (sql-comint-postgres):
Convert port number to a string.

Fixes: debbugs:9556

12 years agoUndedicate window when quitting should switch to previous buffer.
Martin Rudalics [Thu, 22 Sep 2011 06:56:19 +0000 (08:56 +0200)]
Undedicate window when quitting should switch to previous buffer.

* window.el (quit-window): Undedicate window when switching to
previous buffer.  Reported by Thierry Volpiatto
<thierry.volpiatto@gmail.com>.

12 years agomml.el (mml-inhibit-compute-boundary): New internal variable.
Katsumi Yamaoka [Thu, 22 Sep 2011 04:43:36 +0000 (04:43 +0000)]
mml.el (mml-inhibit-compute-boundary): New internal variable.
 (mml-compute-boundary): Don't check collision if it is non-nil.
 (mml-compute-boundary-1): Use mml-generate-mime-1 to encode part before checking collision.

12 years agoMerge changes made in Gnus trunk.
Lars Magne Ingebrigtsen [Wed, 21 Sep 2011 22:34:54 +0000 (22:34 +0000)]
Merge changes made in Gnus trunk.

gnus.texi (Archived Messages): Note the default (bug#9552).
message.el (message-indent-citation): Really make sure there's a newline at the end.
nnimap.el (nnimap-parse-flags): Make regexp less prone to overflows.  Fix suggested by John Wiegley.
pop3.el (pop3-open-server): Fix +OK end-of-command regexp.
gnus-art.el (gnus-treat-hide-citation): Add doc.
message.el (message-default-send-rename-function): Break out into its own function.
ecomplete.el (ecomplete-display-matches): Revert patch since it doesn't work under XEmacs.
nnimap.el (nnimap-map-port): New function to connect to 993 instead of "imaps" to word around Windows problems.
 (nnimap-open-connection-1): Use it.
message.el (message-indent-citation): Revert last change which made `F' not work.

12 years agoecomplete.el (ecomplete-display-matches): Intercept key sequence from terminal as...
Kan-Ru Chen [Wed, 21 Sep 2011 12:23:49 +0000 (12:23 +0000)]
ecomplete.el (ecomplete-display-matches): Intercept key sequence from terminal as well.

12 years ago* net/tramp.el (tramp-handle-shell-command): Set process sentinel
Michael Albinus [Wed, 21 Sep 2011 10:42:55 +0000 (12:42 +0200)]
* net/tramp.el (tramp-handle-shell-command): Set process sentinel
and process filter, as done also in `shell-command'.

12 years agoRewrite code quitting windows and restoring the previous buffer.
Martin Rudalics [Wed, 21 Sep 2011 08:20:21 +0000 (10:20 +0200)]
Rewrite code quitting windows and restoring the previous buffer.

* window.el (set-window-buffer-start-and-point): Call
set-window-start with NOFORCE argument t.  Suggested by Thierry
Volpiatto <thierry.volpiatto@gmail.com>.
(quit-window): Reword doc-string.  Handle new format of
quit-restore parameter.  Don't delete window if it has a
previous buffer we can show instead of the present one.
(display-buffer-record-window): Rewrite using a new format for
the quit-restore window parameter
(special-display-popup-frame, display-buffer-same-window)
(display-buffer-reuse-window, display-buffer-pop-up-frame)
(display-buffer-pop-up-window, display-buffer-use-some-window):
Adapt symbol passed to display-buffer-record-window.
* help.el (help-window-setup): Handle new format of quit-restore
parameter.

12 years agoFix assertion failure when displaying stretch glyphs under linum-mode.
Eli Zaretskii [Wed, 21 Sep 2011 08:13:18 +0000 (04:13 -0400)]
Fix assertion failure when displaying stretch glyphs under linum-mode.

 src/xdisp.c (pop_it): Allow it->object that is a cons cell to pass
 the xassert test.
 src/dispextern.h (struct it): Update the comment documenting what
 can it->OBJECT be.

12 years ago* mh-e.texi: (VERSION, EDITION, UPDATED, UPDATE-MONTH): Update for
Bill Wohler [Wed, 21 Sep 2011 05:22:17 +0000 (22:22 -0700)]
* mh-e.texi: (VERSION, EDITION, UPDATED, UPDATE-MONTH): Update for
release 8.3.
(Preface): Updated support information.
(From Bill Wohler): Reset text to original version. As a historical
quote, the tense should be correct in the time that it was written.

12 years agomm-view.el (mm-display-inline-fontify): Don't run doc-view-mode because it displays...
Katsumi Yamaoka [Wed, 21 Sep 2011 02:13:03 +0000 (02:13 +0000)]
mm-view.el (mm-display-inline-fontify): Don't run doc-view-mode because it displays images using overlays that aren't easy to copy to the article buffer.

12 years ago* doc/lispref/display.texi (Face Functions): `face-list' returns faces.
Stefan Monnier [Wed, 21 Sep 2011 01:33:33 +0000 (21:33 -0400)]
* doc/lispref/display.texi (Face Functions): `face-list' returns faces.

Fixes: debbugs:9564

12 years ago* lisp/faces.el (face-list): Fix docstring.
Stefan Monnier [Wed, 21 Sep 2011 01:31:53 +0000 (21:31 -0400)]
* lisp/faces.el (face-list): Fix docstring.

Fixes: debbugs:9564

12 years ago* lisp/window.el (display-buffer--action-function-custom-type):
Stefan Monnier [Wed, 21 Sep 2011 01:30:35 +0000 (21:30 -0400)]
* lisp/window.el (display-buffer--action-function-custom-type):
Don't include internal functions in the Custom interface.

12 years agoMerge changes made in Gnus trunk.
Gnus developers [Tue, 20 Sep 2011 22:14:36 +0000 (22:14 +0000)]
Merge changes made in Gnus trunk.

message.el (message-indent-citation): Fix empty line removal at the end of the citation.
auth-source.el (auth-source-netrc-create): Use default value for password if specified. Evaluate default.
 (auth-source-plstore-create): Ditto.
 (auth-source-plstore-create, auth-source-netrc-create): Fix default value evaluation.
 (auth-source-netrc-create): Typo fix.
 (auth-source-plstore-create): Ditto.

12 years ago* lisp/info.el (Info-history-skip-intermediate-nodes): New defcustom.
Juri Linkov [Tue, 20 Sep 2011 20:16:42 +0000 (23:16 +0300)]
* lisp/info.el (Info-history-skip-intermediate-nodes): New defcustom.
(Info-forward-node, Info-backward-node, Info-next-preorder)
(Info-last-preorder): Use it.

Fixes: debbugs:9528

12 years agoFix bidi-aware cursor motion inside indentation.
Eli Zaretskii [Tue, 20 Sep 2011 17:42:16 +0000 (20:42 +0300)]
Fix bidi-aware cursor motion inside indentation.

 src/xdisp.c (Fcurrent_bidi_paragraph_direction): Fix search for previous
 non-empty line.  Fixes confusing cursor motion with arrow keys at
 the beginning of a line that starts with whitespace.

12 years agoFix bug #9549 with longlines-show-hard-newlines.
Eli Zaretskii [Tue, 20 Sep 2011 17:13:45 +0000 (20:13 +0300)]
Fix bug #9549 with longlines-show-hard-newlines.

 src/xdisp.c (set_cursor_from_row): If the row ends in a newline from
 a display string, extend search for cursor position to end of row.
 (find_row_edges): If the row ends in a newline from a display
 string, increment its MATRIX_ROW_END_CHARPOS by one.
 Handle the case of a display string with multiple newlines.