]> git.eshelyaron.com Git - emacs.git/log
emacs.git
13 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
13 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)

13 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.

13 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.

13 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.

13 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.

13 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.

13 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.

13 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".

13 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.

13 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)

13 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.

13 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.

13 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)

13 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.

13 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.

13 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.

13 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).

13 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.

13 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.

13 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.

13 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.

13 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.

13 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.

13 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
13 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)

13 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.

13 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.

13 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.

13 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.

13 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.

13 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.

13 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
13 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.

13 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)

13 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.

13 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
13 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
13 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>.

13 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.

13 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.

13 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.

13 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'.

13 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.

13 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.

13 years ago* mh-e.texi: (VERSION, EDITION, UPDATED, UPDATE-MONTH): Update for mh-e-doc-8.3
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.

13 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.

13 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
13 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
13 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.

13 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.

13 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
13 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.

13 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.

13 years ago* lisp/info.el (Info-last-preorder): Visit last menu item only when
Juri Linkov [Tue, 20 Sep 2011 16:28:07 +0000 (19:28 +0300)]
* lisp/info.el (Info-last-preorder): Visit last menu item only when
`Info-scroll-prefer-subnodes' is non-nil (third test-case of bug#9528).

13 years agopassword-cache.el (password-cache-remove): Remove entries even if the value is nil...
Julien Danjou [Tue, 20 Sep 2011 14:08:04 +0000 (14:08 +0000)]
password-cache.el (password-cache-remove): Remove entries even if the value is nil, so that password with a nil value (negative caching) is possible to invalidate.
auth-source.el (auth-source-format-cache-entry): New function.

13 years agoAuto-commit of loaddefs files.
Glenn Morris [Tue, 20 Sep 2011 10:18:55 +0000 (06:18 -0400)]
Auto-commit of loaddefs files.

13 years agoTweak previous f90.el change.
Glenn Morris [Tue, 20 Sep 2011 06:36:45 +0000 (23:36 -0700)]
Tweak previous f90.el change.

13 years ago* mh-e.el (Version, mh-version): Update for release 8.3. mh-e-8.3
Bill Wohler [Tue, 20 Sep 2011 04:56:51 +0000 (21:56 -0700)]
* mh-e.el (Version, mh-version): Update for release 8.3.

13 years ago* mh-show.el (mh-unvisit-file): Clarify language in yes-or-no-p and
Bill Wohler [Tue, 20 Sep 2011 04:56:09 +0000 (21:56 -0700)]
* mh-show.el (mh-unvisit-file): Clarify language in yes-or-no-p and
error messages.

13 years ago* NEWS, MH-E-NEWS: Update for MH-E release 8.3.
Bill Wohler [Tue, 20 Sep 2011 04:51:59 +0000 (21:51 -0700)]
* NEWS, MH-E-NEWS: Update for MH-E release 8.3.

13 years agoFixes for f90.el filling in comments (bug#9553)
Lawrence Mitchell [Tue, 20 Sep 2011 04:12:05 +0000 (21:12 -0700)]
Fixes for f90.el filling in comments (bug#9553)

* lisp/progmodes/f90.el (f90-break-line): If breaking inside comment delete
all whitespace around breakpoint.
(f90-find-breakpoint): Only break at whitespace inside a comment.

13 years ago* lisp/minibuffer.el (completion-file-name-table): Keep track of errors.
Stefan Monnier [Tue, 20 Sep 2011 01:06:29 +0000 (21:06 -0400)]
* lisp/minibuffer.el (completion-file-name-table): Keep track of errors.
(completion-table-with-predicate): Handle the case where pred1 is nil.
* lisp/pcomplete.el (pcomplete-completions-at-point): Simplify.

Fixes: debbugs:9160
13 years agognus-fun.el (gnus-convert-image-to-x-face-command): Doc fix.
Katsumi Yamaoka [Tue, 20 Sep 2011 00:21:58 +0000 (00:21 +0000)]
gnus-fun.el (gnus-convert-image-to-x-face-command): Doc fix.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Mon, 19 Sep 2011 22:06:57 +0000 (22:06 +0000)]
Merge changes made in Gnus trunk.

mm-decode.el (mm-inline-media-tests): Fix typo in regexp.
auth-source.el (auth-source-netrc-parse): Use an obfuscation method which work with things that are not ASCII.

13 years ago* lisp/emacs-lisp/debug.el (debugger-args): Give it a docstring.
Stefan Monnier [Mon, 19 Sep 2011 21:14:23 +0000 (17:14 -0400)]
* lisp/emacs-lisp/debug.el (debugger-args): Give it a docstring.
(debugger-return-value): Signal an error if the debugging context does
not await any return value.

13 years ago* lisp/ps-mule.el (ps-mule-plot-string): Don't inf-loop.
Stefan Monnier [Mon, 19 Sep 2011 19:27:30 +0000 (15:27 -0400)]
* lisp/ps-mule.el (ps-mule-plot-string): Don't inf-loop.
* lisp/image-mode.el (image-toggle-display-text)
(image-toggle-display-image): Stay away from evil `intangible'.

Fixes: debbugs:5108
13 years agoFixes for Occur Edit mode.
Leo Liu [Mon, 19 Sep 2011 18:57:55 +0000 (14:57 -0400)]
Fixes for Occur Edit mode.

* replace.el (occur-revert-arguments): Make it permanent-local.
(occur-mode): Don't call font-lock-defontify.

13 years agoAdd missing ChangeLog entry for ldap.el change in 2011-09-17T21:28:17Z!cyd@stupidchic...
Chong Yidong [Mon, 19 Sep 2011 18:45:55 +0000 (14:45 -0400)]
Add missing ChangeLog entry for ldap.el change in 2011-09-17T21:28:17Z!cyd@stupidchicken.com.

13 years ago* lisp/whitespace.el (whitespace-newline-mode): Disable it right.
Stefan Monnier [Mon, 19 Sep 2011 18:06:14 +0000 (14:06 -0400)]
* lisp/whitespace.el (whitespace-newline-mode): Disable it right.

Fixes: debbugs:9550
13 years agoorg/org.el: Add FIXMEs for odd chunks of code
Stefan Monnier [Mon, 19 Sep 2011 16:48:36 +0000 (12:48 -0400)]
org/org.el: Add FIXMEs for odd chunks of code

13 years ago* .dir-locals.el: Change the debbugs regexp to allow having the bug number as the...
Lars Magne Ingebrigtsen [Mon, 19 Sep 2011 08:26:50 +0000 (10:26 +0200)]
* .dir-locals.el: Change the debbugs regexp to allow having the bug number as the first thing on a line.

13 years ago* lread.c (Fread_from_string): Document what FINAL-STRING-INDEX is.
Lars Magne Ingebrigtsen [Mon, 19 Sep 2011 08:25:35 +0000 (10:25 +0200)]
* lread.c (Fread_from_string): Document what FINAL-STRING-INDEX is.

Fixes: debbugs:9493
13 years ago* errors.texi (Standard Errors): Remove apparent placeholder text (bug#9491).
Lars Magne Ingebrigtsen [Mon, 19 Sep 2011 08:14:13 +0000 (10:14 +0200)]
* errors.texi (Standard Errors): Remove apparent placeholder text (bug#9491).

13 years ago* net/tramp-sh.el (tramp-inline-compress-commands): Add "xz".
Michael Albinus [Mon, 19 Sep 2011 06:53:45 +0000 (08:53 +0200)]
* net/tramp-sh.el (tramp-inline-compress-commands): Add "xz".
Suggested by Liam Stitt <stittl@cuug.ab.ca>.

13 years agoCapitalize non-function content words in menu item strings.
Juri Linkov [Sun, 18 Sep 2011 20:43:20 +0000 (23:43 +0300)]
Capitalize non-function content words in menu item strings.

* lisp/buff-menu.el (Buffer-menu-mode-map):
* lisp/dired.el (dired-mode-map):
* lisp/emacs-lisp/lisp-mode.el (emacs-lisp-mode-map)
(lisp-interaction-mode-map):
* lisp/emacs-lisp/package.el (package-menu-mode-map):
* lisp/epa.el (epa-key-list-mode-map):
* lisp/menu-bar.el (menu-bar-showhide-tool-bar-menu)
(menu-bar-options-menu):
* lisp/outline.el (outline-mode-menu-bar-map):
* lisp/vc/vc-bzr.el (vc-bzr-shelve-menu-map, vc-bzr-extra-menu-map):
* lisp/vc/vc-dir.el (vc-dir-menu-map):
* lisp/vc/vc-git.el (vc-git-stash-menu-map, vc-git-extra-menu-map):
Capitalize non-function content words in menu item strings.

* lisp/dired.el (dired-mode-map): Add menu item for
`image-dired-dired-toggle-marked-thumbs'.

13 years agoPreserve current isearch case-fold value in `isearch-edit-string'.
Juri Linkov [Sun, 18 Sep 2011 20:28:45 +0000 (23:28 +0300)]
Preserve current isearch case-fold value in `isearch-edit-string'.

* lisp/isearch.el (isearch-edit-string): Bind `isearch-new-case-fold'
to `isearch-case-fold-search' and restore its original value
after the `isearch-mode' call.

13 years ago* lisp/progmodes/grep.el (grep-process-setup): Don't check code for 1
Juri Linkov [Sun, 18 Sep 2011 20:20:08 +0000 (23:20 +0300)]
* lisp/progmodes/grep.el (grep-process-setup): Don't check code for 1
because `zgrep' returns 1 for successful matches.

Fixes: debbugs:9226
13 years ago* lisp/info.el (Info-extract-menu-node-name): Check the second match
Juri Linkov [Sun, 18 Sep 2011 20:14:16 +0000 (23:14 +0300)]
* lisp/info.el (Info-extract-menu-node-name): Check the second match
for empty string (second test-case of bug#9528).
(Info-last-preorder): Let-bind `Info-history' to nil to not add
intermediate nodes to the history (first test-case of bug#9528).

13 years agoFix handling of X resource for window icons.
Chong Yidong [Sun, 18 Sep 2011 20:01:37 +0000 (16:01 -0400)]
Fix handling of X resource for window icons.

* src/xfns.c (Fx_create_frame): Handle bitmapIcon resource as a boolean.

* doc/emacs/cmdargs.texi (Icons X): Fix description of Emacs icon.

* doc/emacs/xresources.texi (Table of Resources): Fix documentation of
bitmapIcon.

* doc/lispref/frames.texi (Management Parameters): Fix description of
icon-type parameter.

Fixes: debbugs:9154
13 years ago* lisp/info.el (Info-mode-syntax-table): New variable.
Juri Linkov [Sun, 18 Sep 2011 19:56:12 +0000 (22:56 +0300)]
* lisp/info.el (Info-mode-syntax-table): New variable.
(Info-mode): Set `:syntax-table' to `Info-mode-syntax-table'.

Fixes: debbugs:3312
13 years ago* lisp/info.el (Info-file-supports-index-cookies): Increment
Juri Linkov [Sun, 18 Sep 2011 19:49:13 +0000 (22:49 +0300)]
* lisp/info.el (Info-file-supports-index-cookies): Increment
line-beginning-position's arg from 3 to 4 because makeinfo outputs
one more line for long file names.

Fixes: debbugs:4142
13 years agoFix bug #9545 with crash in Dired when $ is pressed.
Eli Zaretskii [Sun, 18 Sep 2011 19:02:17 +0000 (22:02 +0300)]
Fix bug #9545 with crash in Dired when $ is pressed.

 src/xdisp.c (reseat_at_next_visible_line_start): Undo the change made on
 2011-09-17 that saved paragraph information and restored it after
 the call to `reseat'.

13 years agoFix for uncommentin in Fundamental mode.
Chong Yidong [Sun, 18 Sep 2011 18:10:01 +0000 (14:10 -0400)]
Fix for uncommentin in Fundamental mode.

* newcomment.el (comment-normalize-vars): If prompting for
comment-start, set comment-start-skip too.

Fixes: debbugs:8424
13 years agoFix a bug in :align-to on a TTY when the column is beyond frame width.
Eli Zaretskii [Sun, 18 Sep 2011 16:17:40 +0000 (19:17 +0300)]
Fix a bug in :align-to on a TTY when the column is beyond frame width.

 src/xdisp.c (produce_stretch_glyph): Don't subtract 1 "pixel" when
 computing width of the stretch on a TTY.

13 years agoFix previous fix of Bug#5849.
Johan Bockgård [Sun, 18 Sep 2011 16:13:01 +0000 (12:13 -0400)]
Fix previous fix of Bug#5849.

* icomplete.el (icomplete-mode): Don't set completion-show-inline-help.
(icomplete-minibuffer-setup): Set completion-show-inline-help
locally during icompletion.

13 years agoFix yet another woman parser snafu.
Chong Yidong [Sun, 18 Sep 2011 16:03:48 +0000 (12:03 -0400)]
Fix yet another woman parser snafu.

* woman.el (woman2-process-escapes): Don't delete unrecognized
escapes (Bug#7843).

13 years agoFix bug #9530 on a TTY.
Eli Zaretskii [Sun, 18 Sep 2011 15:48:12 +0000 (18:48 +0300)]
Fix bug #9530 on a TTY.

 src/xdisp.c (display_line): Record maximum and minimum buffer
 positions even if no glyphs were produced (e.g., by a zero-width
 stretch).  Fixes bug#9530 on a TTY.  Under word-wrap, don't record
 buffer positions that will be removed from the glyph row because
 they don't fit.

13 years agoAllow visiting files with malformed prop-lines.
Chong Yidong [Sun, 18 Sep 2011 15:30:10 +0000 (11:30 -0400)]
Allow visiting files with malformed prop-lines.

* files.el (inhibit-first-line-modes-regexps): Add image files.
(hack-local-variables-prop-line): Return nil for malformed prop-lines.

Fixes: debbugs:9044
13 years agoMerge changes from emacs-23 branch
Chong Yidong [Sun, 18 Sep 2011 15:21:57 +0000 (11:21 -0400)]
Merge changes from emacs-23 branch

13 years agosrc/xdisp.c (reseat_at_next_visible_line_start): Fix last change.
Eli Zaretskii [Sun, 18 Sep 2011 15:16:47 +0000 (18:16 +0300)]
src/xdisp.c (reseat_at_next_visible_line_start): Fix last change.

13 years ago* net/tramp.el (top): Don't require 'shell.
Michael Albinus [Sun, 18 Sep 2011 11:26:15 +0000 (13:26 +0200)]
* net/tramp.el (top): Don't require 'shell.
(tramp-methods): Fix docstring.
(tramp-get-remote-tmpdir): New defun, moved from tramp-sh.el.
Return complete remote file name.  Handle "smb" case.  Use
`tramp-tmpdir', if defined for the respective method.
(tramp-make-tramp-temp-file): Adapt call of `tramp-get-remote-tmpdir'.

* net/tramp-compat.el (top): Require 'shell.

* net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band)
(tramp-maybe-open-connection): Use `tramp-file-name-real-host' for
`tramp-current-host'.
(tramp-get-remote-tmpdir): Remove.

* net/tramp-smb.el (tramp-methods): Add `tramp-remote-shell' and
`tramp-tmpdir' entries.
(tramp-smb-errors): Add "NT_STATUS_IMAGE_ALREADY_LOADED".
(tramp-smb-handle-file-attributes): Ignore errors.
(tramp-smb-wait-for-output): Check also for process end.

13 years agoFix minor problem found by static checking.
Paul Eggert [Sun, 18 Sep 2011 09:01:39 +0000 (02:01 -0700)]
Fix minor problem found by static checking.

* xdisp.c (reseat_at_next_visible_line_start): Mark locals as
initialized, to pacify gcc -Wuninitialized.

13 years ago* fileio.c: Report proper errno when syscall falls.
Paul Eggert [Sun, 18 Sep 2011 08:34:09 +0000 (01:34 -0700)]
* fileio.c: Report proper errno when syscall falls.

(Finsert_file_contents): Save and restore errno,
so that report_file_error outputs the correct diagnostic.
(Fwrite_region) [CLASH_DETECTION]: Likewise.

13 years ago(smtpmail-via-smtp): Ignore errors that arise when sending QUIT.
Lars Magne Ingebrigtsen [Sun, 18 Sep 2011 07:36:20 +0000 (09:36 +0200)]
(smtpmail-via-smtp): Ignore errors that arise when sending QUIT.

Fixes: debbugs:9312
13 years agosrc/xdisp.c: Revert inadvertently committed changes.
Eli Zaretskii [Sun, 18 Sep 2011 07:36:10 +0000 (03:36 -0400)]
src/xdisp.c: Revert inadvertently committed changes.

13 years agosrc/.gdbinit (pgx): Fix references to fields of `struct glyph'.
Eli Zaretskii [Sun, 18 Sep 2011 07:33:04 +0000 (03:33 -0400)]
src/.gdbinit (pgx): Fix references to fields of `struct glyph'.

13 years ago* lisp/replace.el (occur-mode-map): Rebind occur-edit-mode to "e".
Chong Yidong [Sat, 17 Sep 2011 21:28:17 +0000 (17:28 -0400)]
* lisp/replace.el (occur-mode-map): Rebind occur-edit-mode to "e".
(occur-edit-mode-map): Bind C-c C-c to occur-cease-edit and C-o to
occur-mode-display-occurrence.
(occur-edit-mode): Add usage message.
(occur-cease-edit): New command.
(occur-after-change-function): Use text properties to find the
position of the prefix text.
(occur-engine): Set stickiness of prefix text properties.

Fixes: debbugs:8463
13 years ago* doc/lispref/tips.texi: Don't bind a key sequence ending in C-g.
Chong Yidong [Sat, 17 Sep 2011 19:49:57 +0000 (15:49 -0400)]
* doc/lispref/tips.texi: Don't bind a key sequence ending in C-g.
Suggested by Edward O'Connor.

13 years agocomplete-tag fix for bug#9526
Glenn Morris [Sat, 17 Sep 2011 19:05:52 +0000 (12:05 -0700)]
complete-tag fix for bug#9526

* lisp/progmodes/etags.el (complete-tag):
Fix call to completion-in-region. (cf info-complete).