]> git.eshelyaron.com Git - emacs.git/log
emacs.git
10 years agoSupport the old `blink-matching-paren' behavior
Dmitry Gutov [Fri, 14 Mar 2014 18:01:39 +0000 (20:01 +0200)]
Support the old `blink-matching-paren' behavior

* lisp/simple.el (blink-matching-paren): Describe the new value,
`jump', enabling the old behavior.
(blink-matching-open): Use that value.

Fixes: debbugs:17008
10 years ago* lisp/finder.el: Tweak previous change.
Glenn Morris [Fri, 14 Mar 2014 18:00:08 +0000 (14:00 -0400)]
* lisp/finder.el: Tweak previous change.

10 years agoStop files with same basename messing up finder's package--builtins
Glenn Morris [Fri, 14 Mar 2014 17:54:12 +0000 (13:54 -0400)]
Stop files with same basename messing up finder's package--builtins

* lisp/Makefile.in (setwins_finder): New, excluding leim.
(finder-data): Use setwins_finder.

* lisp/finder.el (finder-no-scan-regexp): Add leim-list.
(finder-compile-keywords): Don't skip files with same basename.

Fixes: debbugs:14010
10 years ago* etc/tutorials/TUTORIAL.de: Adapt to recent changes in TUTORIAL.
Rüdiger Sonderfeld [Fri, 14 Mar 2014 17:03:30 +0000 (18:03 +0100)]
* etc/tutorials/TUTORIAL.de: Adapt to recent changes in TUTORIAL.
Thanks to Jorgen Schäfer for help with the translation.

10 years agoDocument pixelwise frame resizing and fix related bug on Windows.
Martin Rudalics [Fri, 14 Mar 2014 10:38:46 +0000 (11:38 +0100)]
Document pixelwise frame resizing and fix related bug on Windows.

* w32term.c (x_set_window_size): When frame-resize-pixelwise is
nil, always resize character wise to avoid potential loss of the
mode line (Bug#16923 related).
* display.texi (Temporary Displays): Say that
with-temp-buffer-window makes its buffer current.
* frames.texi (Size and Position): Describe new option
`frame-resize-pixelwise'.  Rewrite descriptions of
`set-frame-size', `set-frame-height' and `set-frame-width'.

10 years agoMove some help functions from help-fns.el to help.el, which is preloaded.
Glenn Morris [Fri, 14 Mar 2014 00:32:41 +0000 (20:32 -0400)]
Move some help functions from help-fns.el to help.el, which is preloaded.

They are now needed by eg the function `documentation' in some circumstances.

* lisp/help-fns.el (help-split-fundoc, help-add-fundoc-usage)
(help-function-arglist, help-make-usage): Move from here...

* lisp/help.el (help-split-fundoc, help-add-fundoc-usage)
(help-function-arglist, help-make-usage): ... to here.

* lisp/emacs-lisp/bytecomp.el (byte-compile-lambda): Do not load help-fns.

Fixes: debbugs:17001
10 years agolisp/net/*.el, lisp/progmodes/*.el: Fix docstring typos.
Juanma Barranquero [Fri, 14 Mar 2014 00:22:33 +0000 (01:22 +0100)]
lisp/net/*.el, lisp/progmodes/*.el: Fix docstring typos.

* net/socks.el (socks, socks-override-functions)
(socks-find-services-entry): FT
* progmodes/hideif.el (hif-set-var, hif-nexttoken, hif-comma)
(hif-find-ifdef-block):
* progmodes/modula2.el (m2-indent): Fix docstring typos.

* net/tls.el (tls-program): Reflow docstring.

* progmodes/opascal.el (opascal-compound-block-indent)
(opascal-case-label-indent): Fix docstring typos.
(opascal-mode): Fix typos; let defined-derived-mode document mode hook.

* progmodes/pascal.el (pascal-mode-abbrev-table)
(pascal-imenu-generic-expression, pascal-auto-endcomments)
(pascal-mark-defun, pascal-comment-area, pascal-indent-level)
(pascal-outline-mode): Fix docstring typos.
(pascal-mode): Let define-derived-mode document mode hook.
(pascal-uncomment-area): Reflow.
(pascal-exclude-str-start, pascal-exclude-str-end): Add docstring.

10 years ago* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Fontify
Dmitry Gutov [Thu, 13 Mar 2014 13:37:27 +0000 (15:37 +0200)]
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Fontify
multiple adjacent negation chars.

Fixes: debbugs:17004
10 years ago* lisp/emacs-lisp/package.el (package--prepare-dependencies):
Tom Willemse [Thu, 13 Mar 2014 13:34:01 +0000 (09:34 -0400)]
* lisp/emacs-lisp/package.el (package--prepare-dependencies):
Accept requirements without explicit version.

Fixes: debbugs:14941
10 years ago* mule.texi (International, Language Environments): Update
Paul Eggert [Thu, 13 Mar 2014 05:27:28 +0000 (22:27 -0700)]
* mule.texi (International, Language Environments): Update

the list of language environments to what Emacs currently
supports.  Add the full list to the index.  Suggest C-h L for
details rather than trying to give very brief details here.

10 years ago* nextstep/templates/Info.plist.in: Make it strictly valid xml.
Glenn Morris [Thu, 13 Mar 2014 00:43:30 +0000 (20:43 -0400)]
* nextstep/templates/Info.plist.in: Make it strictly valid xml.

Fixes: debbugs:17002
10 years agolisp/register.el (register-separator, copy-to-register): Doc fixes.
Juanma Barranquero [Wed, 12 Mar 2014 21:16:34 +0000 (22:16 +0100)]
lisp/register.el (register-separator, copy-to-register): Doc fixes.
(register-preview-default): Remove unnecessary call to concat.

10 years ago* doc/emacs/cmdargs.texi (General Variables): Don't mention INCPATH,
Glenn Morris [Wed, 12 Mar 2014 21:00:36 +0000 (17:00 -0400)]
* doc/emacs/cmdargs.texi (General Variables): Don't mention INCPATH,
from the obsolete complete.el.

10 years ago* doc/misc/eww.texi (History and Acknowledgments): Don't list everyone
Glenn Morris [Wed, 12 Mar 2014 20:57:34 +0000 (16:57 -0400)]
* doc/misc/eww.texi (History and Acknowledgments): Don't list everyone
who changed the code.

It was a nice gesture, but seems likely to just become a pain to keep
up-to-date.  Also not really needed, given ChangeLogs and VCS logs.

10 years agoUse @file for buffers, per the Texinfo manual
Glenn Morris [Wed, 12 Mar 2014 20:52:34 +0000 (16:52 -0400)]
Use @file for buffers, per the Texinfo manual

* doc/misc/ada-mode.texi, doc/misc/auth.texi, doc/misc/calc.texi:
* doc/misc/ebrowse.texi, doc/misc/efaq.texi, doc/misc/emacs-gnutls.texi:
* doc/misc/epa.texi, doc/misc/ert.texi, doc/misc/eshell.texi:
* doc/misc/eww.texi, doc/misc/flymake.texi, doc/misc/gnus.texi:
* doc/misc/info.texi, doc/misc/message.texi, doc/misc/mh-e.texi:
* doc/misc/newsticker.texi, doc/misc/pcl-cvs.texi, doc/misc/rcirc.texi:
* doc/misc/sem-user.texi, doc/misc/smtpmail.texi, doc/misc/url.texi:
* doc/misc/viper.texi, doc/misc/wisent.texi, doc/misc/woman.texi:
Use @file for buffers, per the Texinfo manual.

10 years agoFix ChangeLog typo
Glenn Morris [Wed, 12 Mar 2014 20:47:03 +0000 (16:47 -0400)]
Fix ChangeLog typo

10 years agolisp/frameset.el: Optimize check for visible frame.
Juanma Barranquero [Wed, 12 Mar 2014 18:36:26 +0000 (19:36 +0100)]
lisp/frameset.el: Optimize check for visible frame.

(frameset-restore): When checking for a visible frame,
use the action map instead of calling visible-frame-list.

10 years agolisp/emacs-lisp/eieio.el (with-slots): Use cl-symbol-macrolet (bug#16998).
Jonas Bernoulli [Wed, 12 Mar 2014 15:02:45 +0000 (16:02 +0100)]
lisp/emacs-lisp/eieio.el (with-slots): Use cl-symbol-macrolet (bug#16998).

10 years agoTwo adjustments in window/frame resizing.
Martin Rudalics [Wed, 12 Mar 2014 07:28:23 +0000 (08:28 +0100)]
Two adjustments in window/frame resizing.

* frame.c (x_set_frame_parameters): Always calculate new sizes
pixelwise to avoid potential loss when rounding.
* window.el (fit-frame-to-buffer): Get maximum width from
display's width instead of height.

10 years ago* doc/emacs/misc.texi (Saving Emacs Sessions): Make previous change
Glenn Morris [Wed, 12 Mar 2014 07:26:07 +0000 (00:26 -0700)]
* doc/emacs/misc.texi (Saving Emacs Sessions): Make previous change
slightly less brief.

10 years ago* org.texi: Don't set txicodequoteundirected and txicodequotebacktick
Paul Eggert [Wed, 12 Mar 2014 07:20:43 +0000 (00:20 -0700)]
* org.texi: Don't set txicodequoteundirected and txicodequotebacktick

so that the Org Manual's style for ` and ' in code is consistent
with the other Emacs manuals.  This affects PDF, not .info files.

10 years agoSome doc edits related to desktop-restore-frames
Glenn Morris [Wed, 12 Mar 2014 07:14:30 +0000 (00:14 -0700)]
Some doc edits related to desktop-restore-frames

* doc/emacs/misc.texi (Saving Emacs Sessions):
Be briefer about desktop's handling of frames.
The manual does not need to mention every option, nor should
it just repeat the doc-strings.

* lisp/desktop.el (desktop-restore-frames)
(desktop-restore-in-current-display, desktop-restore-forces-onscreen)
(desktop-restore-reuses-frames): Doc tweaks.

* etc/NEWS: Related edits.

10 years ago* mule.texi (International Chars): Adjust C-u C-x = description.
Paul Eggert [Wed, 12 Mar 2014 07:03:40 +0000 (00:03 -0700)]
* mule.texi (International Chars): Adjust C-u C-x = description.

Change it to match Emacs's current behavior.  Also, change the
example to use ê instead of À, as the isolated grave accent in the
latter's decomposition listing was confusingly transliterated to
left single quote in the PDF version of the manual.

10 years ago* doc/misc/octave-mode.texi (Using Octave Mode): Remove outdated stuff
Glenn Morris [Wed, 12 Mar 2014 06:52:54 +0000 (23:52 -0700)]
* doc/misc/octave-mode.texi (Using Octave Mode): Remove outdated stuff
about RET and indentation.  E.g., octave-reindent-then-newline-and-indent
was removed three years ago.

When you delete commands, please use grep to check for references to them.

10 years ago* emacs/indent.texi (Indent Convenience): Mention electric-indent-local-mode.
Glenn Morris [Wed, 12 Mar 2014 06:48:20 +0000 (23:48 -0700)]
* emacs/indent.texi (Indent Convenience): Mention electric-indent-local-mode.

* lisp/electric.el (electric-indent-mode): Doc fix.

* etc/NEWS: Related markup.

10 years agolisp/vc/pcvs*.el: Fix typos.
Juanma Barranquero [Wed, 12 Mar 2014 04:00:03 +0000 (05:00 +0100)]
lisp/vc/pcvs*.el: Fix typos.

* lisp/vc/pcvs-defs.el (cvs-auto-remove-handled)
(cvs-auto-remove-directories, cvs-default-ignore-marks)
(cvs-idiff-imerge-handlers, cvs-reuse-cvs-buffer)
(cvs-execute-single-dir): Fix docstring typos.

* lisp/vc/pcvs-info.el (cvs-status-map, cvs-states): Fix docstring typos.
(cvs-fileinfo-pp, cvs-fileinfo-from-entries): Doc fixes.

* lisp/vc/pcvs-parse.el (cvs-parsed-fileinfo): Reflow docstring.

* lisp/vc/pcvs-util.el (cvs-flags-query, cvs-flags-set, cvs-prefix-set):
Fix docstring typos.

* lisp/vc/pcvs.el (cvs-temp-buffer, defun-cvs-mode, cvs-get-cvsroot)
(cvs-checkout, cvs-mode-checkout, cvs-update-filter, cvs-mode-mark)
(cvs-mode-diff-head, cvs-mode-diff-repository, cvs-mode-diff-yesterday)
(cvs-mode-diff-vendor, cvs-mode-do, cvs-change-cvsroot)
(cvs-dired-use-hook): Fix docstring typos.
(cvs-mode-view-file-other-window, cvs-mode-byte-compile-files):
Doc fixes.

10 years agolisp/frameset.el (frameset--jump-to-register): Add autoload.
Juanma Barranquero [Wed, 12 Mar 2014 02:21:09 +0000 (03:21 +0100)]
lisp/frameset.el (frameset--jump-to-register): Add autoload.

10 years ago* lisp/simple.el (set-mark): Ensure mark-active is nil if the mark is nil.
Stefan Monnier [Tue, 11 Mar 2014 17:10:07 +0000 (13:10 -0400)]
* lisp/simple.el (set-mark): Ensure mark-active is nil if the mark is nil.
Deactivate the mark before setting it to nil.
(activate-mark): Do nothing if region is already active.

Fixes: debbugs:16975
10 years agoAdd comment for 2014-03-10T10:31:13Z!rudalics@gmx.at and 2014-03-10T18:53:39Z!rudalic...
Martin Rudalics [Tue, 11 Mar 2014 07:20:49 +0000 (08:20 +0100)]
Add comment for 2014-03-10T10:31:13Z!rudalics@gmx.at and 2014-03-10T18:53:39Z!rudalics@gmx.at.

10 years ago* xfns.c (x_set_mouse_color): Recolor vertical_drag_cursor.
Dmitry Antipov [Tue, 11 Mar 2014 06:50:01 +0000 (10:50 +0400)]
* xfns.c (x_set_mouse_color): Recolor vertical_drag_cursor.
* xterm.c (x_free_frame_resources): Free all allocated cursors.

10 years agolisp/frameset.el: Let-bind frameset--target-display.
Juanma Barranquero [Tue, 11 Mar 2014 01:44:51 +0000 (02:44 +0100)]
lisp/frameset.el: Let-bind frameset--target-display.

* frameset.el (frameset--target-display): Remove definition; declare.
(frameset-save, frameset-restore): Let-bind frameset--target-display.

10 years ago* lisp/emacs-lisp/nadvice.el (advice--make-1): Fix autoloading avoidance.
Stefan Monnier [Tue, 11 Mar 2014 01:22:24 +0000 (21:22 -0400)]
* lisp/emacs-lisp/nadvice.el (advice--make-1): Fix autoloading avoidance.
(advice-add): Add a :advice--pending marker, so advice--make-1 knows
when the advice is pending.
(advice-remove): Remove this marker when not needed any more.

10 years agolisp/frameset.el: Separate frame reusing from cleaning up.
Juanma Barranquero [Tue, 11 Mar 2014 00:46:07 +0000 (01:46 +0100)]
lisp/frameset.el: Separate frame reusing from cleaning up.

* lisp/desktop.el (desktop-restore-forces-onscreen)
  (desktop-restore-reuses-frames): Use non-keyword values.
  (desktop-restore-frameset): Use CLEANUP-FRAMES arg of frameset-restore.

* lisp/frameset.el: Separate options for reusing frames and cleaning up.
  (frameset--reuse-list): Remove definition; declare.
  (frameset--action-map): Declare.
  (frameset--find-frame-if): Doc fix.
  (frameset--restore-frame): Cache frame action.
  (frameset-restore): New keyword arg CLEANUP-FRAMES, allows to select
  how to clean up the frame list after restoring.  Remove cleaning
  options from REUSE-FRAMES.  Change all keyword values to symbols.
  (frameset--jump-to-register): Simplify by using CLEANUP-FRAMES.

10 years agoRevert last change to w32_read_socket.
Martin Rudalics [Mon, 10 Mar 2014 18:53:39 +0000 (19:53 +0100)]
Revert last change to w32_read_socket.

10 years ago* lisp/files.el (find-file): Doc fix: update info node name.
Glenn Morris [Mon, 10 Mar 2014 18:48:35 +0000 (14:48 -0400)]
* lisp/files.el (find-file): Doc fix: update info node name.

10 years ago* lisp/emacs-lisp/advice.el (ad-add-advice, defadvice): Doc fix
Glenn Morris [Mon, 10 Mar 2014 18:16:13 +0000 (14:16 -0400)]
* lisp/emacs-lisp/advice.el (ad-add-advice, defadvice): Doc fix
remove references to deleted info nodes.

10 years agoFix "\" problem in tutorials by using natural-language quotes.
Paul Eggert [Mon, 10 Mar 2014 18:12:25 +0000 (11:12 -0700)]
Fix "\" problem in tutorials by using natural-language quotes.

* tutorials/TUTORIAL, tutorials/TUTORIAL.cs, tutorials/TUTORIAL.eo:
* tutorials/TUTORIAL.es, tutorials/TUTORIAL.it, tutorials/TUTORIAL.ja:
* tutorials/TUTORIAL.ko, tutorials/TUTORIAL.nl, tutorials/TUTORIAL.pl:
* tutorials/TUTORIAL.pt_BR, tutorials/TUTORIAL.ro:
* tutorials/TUTORIAL.ru, tutorials/TUTORIAL.sk, tutorials/TUTORIAL.sv:
* tutorials/TUTORIAL.th:
Avoid using ` for natural-language quotes.  Instead, work around
the problem with "\" by using non-" quotation marks appropriate
for the natural language in question, e.g., «...» for Spanish.
For English “...” could be used, but use '...' instead so that
TUTORIAL continues to be encoded in ASCII.

10 years agodoc/lispref/ChangeLog: Add bug reference.
Juanma Barranquero [Mon, 10 Mar 2014 17:33:52 +0000 (18:33 +0100)]
doc/lispref/ChangeLog: Add bug reference.

10 years agosrc/w32.c (stat_worker): Fix commentary.
Eli Zaretskii [Mon, 10 Mar 2014 17:31:17 +0000 (19:31 +0200)]
src/w32.c (stat_worker): Fix commentary.

10 years agoFix an obscure bug in fstatat on Windows 9X.
Eli Zaretskii [Mon, 10 Mar 2014 17:26:45 +0000 (19:26 +0200)]
Fix an obscure bug in fstatat on Windows 9X.

 src/w32.c (fstatat): Don't add an extra slash if the argument ends
 with a slash: this fails the subsequent call to stat_worker on
 Windows 9X.  Reported by oslsachem <oslsachem@gmail.com>.

10 years agoIn tutorials, replace "\" with `\'
Glenn Morris [Mon, 10 Mar 2014 16:00:15 +0000 (09:00 -0700)]
In tutorials, replace "\" with `\'
Otherwise Emacs can get confused and think the rest of the buffer is
a string.

10 years agoAdd missing NEWS entry
Glenn Morris [Mon, 10 Mar 2014 15:49:01 +0000 (08:49 -0700)]
Add missing NEWS entry

10 years ago* tutorials/TUTORIAL.fr: Adapt to the recent changes in TUTORIAL.
Bastien Guerry [Mon, 10 Mar 2014 14:05:54 +0000 (15:05 +0100)]
* tutorials/TUTORIAL.fr: Adapt to the recent changes in TUTORIAL.

10 years ago* net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Michael Albinus [Mon, 10 Mar 2014 13:36:39 +0000 (14:36 +0100)]
* net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Do not add `nil' to the environment, when there's no remote `locale'.
(tramp-find-inline-encoding): Check, that the remote host has
installed perl, before sending scripts.

10 years agoUnconditionally set visibility to 1 when restoring frame size (Bug#16967).
Martin Rudalics [Mon, 10 Mar 2014 10:31:13 +0000 (11:31 +0100)]
Unconditionally set visibility to 1 when restoring frame size (Bug#16967).

* w32term.c (w32_read_socket): In SIZE_RESTORED case
unconditionally set visibility of frame to 1.

10 years ago* emacs-lisp/eldoc.el (eldoc-minibuffer-message): Clear
Leo Liu [Mon, 10 Mar 2014 05:33:31 +0000 (13:33 +0800)]
* emacs-lisp/eldoc.el (eldoc-minibuffer-message): Clear
eldoc-last-message.

Fixes: debbugs:16920
10 years ago* lisp/desktop.el (desktop-create-buffer): Don't run activate-mark-hook.
Stefan Monnier [Mon, 10 Mar 2014 02:18:29 +0000 (22:18 -0400)]
* lisp/desktop.el (desktop-create-buffer): Don't run activate-mark-hook.

Fixes: debbugs:14430
10 years agolib-src/emacsclient.c (main): #ifdef out previous change on Windows.
Juanma Barranquero [Mon, 10 Mar 2014 00:09:30 +0000 (01:09 +0100)]
lib-src/emacsclient.c (main): #ifdef out previous change on Windows.

10 years agoetc/ChangeLog: Add missing bug reference.
Juanma Barranquero [Sun, 9 Mar 2014 23:55:11 +0000 (00:55 +0100)]
etc/ChangeLog: Add missing bug reference.

doc/emacs/ChangeLog, doc/lispref/ChangeLog, lisp/ChangeLog*: Fix typos.

10 years agoFix emacsclient terminal corruption when in background.
Paul Eggert [Sun, 9 Mar 2014 22:38:15 +0000 (15:38 -0700)]
Fix emacsclient terminal corruption when in background.

* emacsclient.c (handle_sigcont): Check for tcgetpgrp failure.
Cancel the continue only if tty.  Send SIGTTIN to the process
group, not SIGSTOP to self, as this is what the glibc manual
recommends.
(main): If tty, and if started in the background, send SIGTTIN
to the process group.

Fixes: debbugs:16892
10 years ago* lisp/ansi-color.el (ansi-color-names-vector): Copy default colors
Juri Linkov [Sun, 9 Mar 2014 21:55:35 +0000 (23:55 +0200)]
* lisp/ansi-color.el (ansi-color-names-vector): Copy default colors
from `xterm-standard-colors' that look well on the default white
background (and also on the black background) to avoid illegible
color combinations like yello-on-white and white-on-white.
http://lists.gnu.org/archive/html/emacs-devel/2014-02/msg00157.html

10 years agoUpdate docs for window dividers and `window-text-pixel-size'.
Martin Rudalics [Sun, 9 Mar 2014 11:36:51 +0000 (12:36 +0100)]
Update docs for window dividers and `window-text-pixel-size'.

* xdisp.c (Fwindow_text_pixel_size): Adjust doc-string.
* elisp.texi (Top): Rename section "Width" to "Size of Displayed
Text".
* text.texi (Primitive Indent):
* strings.texi (String Basics):
* sequences.texi (Sequence Functions): Update references
accordingly.
* display.texi (Size of Displayed Text): Rename section from
"Width".  Add description for `window-text-pixel-size'.
(Window Dividers): Reword description of window dividers.
* frames.texi (Layout Parameters): Improve description of window
divider parameters.
* windows.texi (Window Sizes): Add descriptions of
`window-mode-line-height' and `window-header-line-height'.
(Coordinates and Windows): Mention window dividers.

10 years agolisp/frameset.el: Avoid computing frame-list unnecessarily.
Juanma Barranquero [Sat, 8 Mar 2014 22:26:20 +0000 (23:26 +0100)]
lisp/frameset.el: Avoid computing frame-list unnecessarily.
(frameset-restore): When no frame is visible, do not generate
a list of frames, just make visible the selected one.

10 years agoetc/tutorials/TUTORIAL.es: Fix typos.
Luis Felipe López Acevedo [Sat, 8 Mar 2014 20:12:42 +0000 (21:12 +0100)]
etc/tutorials/TUTORIAL.es: Fix typos.

10 years ago* nsterm.h (MAC_OS_X_VERSION_10_9): Add.
Jan Djärv [Sat, 8 Mar 2014 15:49:59 +0000 (16:49 +0100)]
* nsterm.h (MAC_OS_X_VERSION_10_9): Add.

* nsterm.m (constrainFrameRect:toScreen:): Constrain normally when frame
is only on one screen.

Fixes: debbugs:14713
10 years agosrc/xdisp.c (Fmove_point_visually): Fix previous change.
Eli Zaretskii [Sat, 8 Mar 2014 13:18:43 +0000 (15:18 +0200)]
src/xdisp.c (Fmove_point_visually): Fix previous change.

Fixes: debbugs:16961
10 years agoFix more failures of visual-order cursor movement under word-wrap (bug#16961).
Eli Zaretskii [Sat, 8 Mar 2014 10:54:43 +0000 (12:54 +0200)]
Fix more failures of visual-order cursor movement under word-wrap (bug#16961).

 src/xdisp.c (move_it_in_display_line_to): If word-wrap is ON, and
 there's a valid wrap point in the display line, the last glyph
 cannot "just barely fit" on this row, because display_line doesn't
 let it.  Instead, proceed as if the last glyph didn't fit, so that
 we eventually back up the iterator to the wrap point.  This avoids
 delusional behavior of move_it_to, whereby it proceeds to the next
 display line, but sets current_x to zero for all the glyphs that
 without word-wrap would fit on the previous display line.  One
 result was that visual-order cursor movement behaved erratically
 under word-wrap.
 (Fmove_point_visually): Add code to find the x coordinate of the
 last character before wrap point, under word-wrap on a TTY.

10 years agotutorials/TUTORIAL.he: Adapt to the recent changes in TUTORIAL.
Eli Zaretskii [Sat, 8 Mar 2014 08:28:43 +0000 (10:28 +0200)]
tutorials/TUTORIAL.he: Adapt to the recent changes in TUTORIAL.

10 years agoFix #16897
Dmitry Gutov [Sat, 8 Mar 2014 06:56:22 +0000 (08:56 +0200)]
Fix #16897

* lisp/vc/vc-git.el (vc-git-command): Turn FILE-OR-LIST into nil when
it only contains the repository root.

10 years agoFix bug #16961 with visual-order cursor movement and word-wrap.
Eli Zaretskii [Fri, 7 Mar 2014 20:00:33 +0000 (22:00 +0200)]
Fix bug #16961 with visual-order cursor movement and word-wrap.

 src/xdisp.c (Fmove_point_visually): When under word-wrap, accept
 also return value of MOVE_POS_MATCH_OR_ZV from
 move_it_in_display_line_to, when moving from beginning of line to
 point's position.

10 years agoSpelling and wording fixes.
Paul Eggert [Fri, 7 Mar 2014 19:12:31 +0000 (11:12 -0800)]
Spelling and wording fixes.

10 years agoMerge from gnulib.
Paul Eggert [Fri, 7 Mar 2014 18:57:11 +0000 (10:57 -0800)]
Merge from gnulib.

This incorporates:
2014-03-04 stdint: fix missing SIZE_MAX on Android
2013-03-02 sys_types: avoid autoconf warning about gl_SYS_TYPES_H
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* lib/stdint.in.h, lib/sys_types.in.h, m4/sys_types_h.m4:
Update from gnulib.

Fix oversight preventing lib/sys/types.h from being generated.
* admin/merge-gnulib (GNULIB_TOOL_FLAGS): Don't avoid sys_types.

10 years agonnimap respool fix
Lars Ingebrigtsen [Fri, 7 Mar 2014 17:21:35 +0000 (18:21 +0100)]
nnimap respool fix

* nnimap.el (nnimap-request-accept-article): Make respooling to nnimap
groups work again.

10 years ago* nnir.el (nnir-run-namazu): Parse namazu results that are larger than 999
George McNinch [Fri, 7 Mar 2014 16:58:25 +0000 (17:58 +0100)]
* nnir.el (nnir-run-namazu): Parse namazu results that are larger than 999
(i.e. "1,342").

10 years agoUpdate docs for select-window and buffer-list-update-hook.
Martin Rudalics [Fri, 7 Mar 2014 15:11:12 +0000 (16:11 +0100)]
Update docs for select-window and buffer-list-update-hook.

* buffer.c (Vbuffer_list_update_hook): Doc-string fix.
* window.c (Fselect_window): Explain NORECORD and
`buffer-list-update-hook' in doc-string.
* buffers.texi (The Buffer List): Rename node to Buffer List.
Describe `buffer-list-update-hook'.
* elisp.texi (Top): "The Buffer List" renamed to "Buffer List".
Add node for Window Dividers.
* hooks.texi (Standard Hooks): Add reference to
`buffer-list-update-hook'.
* windows.texi (Selecting Windows): Update description of
`select-window'.

10 years ago* gnus-agent.el (gnus-agent-update-files-total-fetched-for): Don't bug out
Lars Ingebrigtsen [Fri, 7 Mar 2014 15:00:34 +0000 (16:00 +0100)]
* gnus-agent.el (gnus-agent-update-files-total-fetched-for): Don't bug out
if the directory doesn't exist.

10 years ago* automated/tramp-tests.el (tramp-copy-size-limit): Declare.
Michael Albinus [Fri, 7 Mar 2014 14:11:37 +0000 (15:11 +0100)]
* automated/tramp-tests.el (tramp-copy-size-limit): Declare.
(tramp-test10-write-region): Extend for out-of-band copy.
(tramp-test31-asynchronous-requests): New test.

10 years ago* net/tramp-sh.el (tramp-sh-handle-vc-registered): Run first pass
Michael Albinus [Fri, 7 Mar 2014 14:07:12 +0000 (15:07 +0100)]
* net/tramp-sh.el (tramp-sh-handle-vc-registered): Run first pass
only when `remote-file-name-inhibit-cache' is nil.
(tramp-sh-file-name-handler): Use `tramp-error'.  Simplify code.

10 years agoAdd/update elisp texinfo for window-min-size and split-window.
Martin Rudalics [Fri, 7 Mar 2014 09:53:23 +0000 (10:53 +0100)]
Add/update elisp texinfo for window-min-size and split-window.

* windows.texi (Window Sizes): Describe `window-min-size'.
(Splitting Windows): Update description of `split-window'.

10 years agolisp/ChangeLog*: Fix typos.
Juanma Barranquero [Fri, 7 Mar 2014 00:01:19 +0000 (01:01 +0100)]
lisp/ChangeLog*: Fix typos.

10 years agoMore window code related fixes and documentation changes.
Martin Rudalics [Thu, 6 Mar 2014 13:41:58 +0000 (14:41 +0100)]
More window code related fixes and documentation changes.

* window.c (Fother_window_for_scrolling): Check that
Vother_window_scroll_buffer is a buffer.
* window.el (fit-frame-to-buffer, fit-frame-to-buffer-margins):
Fix doc-strings.
(fit-frame-to-buffer): New argument ONLY.  Remove dependency on
fit-frame-to-buffer variable.  Fix doc-string.
(fit-window-to-buffer): Set ONLY argument in call of
fit-frame-to-buffer.  Fix doc-string.
* frames.texi (Size and Position): Rewrite entries for
`fit-frame-to-buffer' and `fit-frame-to-buffer-margins'.  Add
description for `fit-frame-to-buffer-sizes'.
* windows.texi (Resizing Windows): Add descriptions for
pixelwise resizing.  Add entries for `window-resize-pixelwise'
and `fit-window-to-buffer-horizontally'.  Rewrite
`fit-window-to-buffer' entry.

10 years ago* net/tramp.el (tramp-error): VEC-OR-PROC can be nil.
Michael Albinus [Thu, 6 Mar 2014 13:23:04 +0000 (14:23 +0100)]
* net/tramp.el (tramp-error): VEC-OR-PROC can be nil.
(tramp-action-password): Clear password cache if needed.
(tramp-read-passwd): Do not clear password cache.

* net/tramp-gvfs.el (tramp-gvfs-handler-askpassword): Clear password
cache unless it is the first password request.

10 years agoDoc fix.
Xue Fuqiao [Thu, 6 Mar 2014 12:39:47 +0000 (20:39 +0800)]
Doc fix.

* doc/lispref/internals.texi (Window Internals): Remove field
  `region_showing'.

10 years ago* xterm.c (xim_initialize): Always pass a copy of resource name
Dmitry Antipov [Thu, 6 Mar 2014 11:18:22 +0000 (15:18 +0400)]
* xterm.c (xim_initialize): Always pass a copy of resource name
to XRegisterIMInstantiateCallback and eassert whether return
value is True.  Passing copy is important because Xlib doesn't
make its own copy and resource name argument usually points to
SSDATA (Vx_resource_name), which may be changed from Lisp.
(xim_close_display): For XUnregisterIMInstantiateCallback,
always eassert return value and pass exactly the same values
as were used for XRegisterIMInstantiateCallback.  Otherwise
XUnregisterIMInstantiateCallback will always fail.  See Xlib
sources to check why if you are interested.

10 years agoetc/tutorials/TUTORIAL.es: Adapt to change in English language tutorial.
Juanma Barranquero [Thu, 6 Mar 2014 11:12:25 +0000 (12:12 +0100)]
etc/tutorials/TUTORIAL.es: Adapt to change in English language tutorial.

10 years agoComment
Xue Fuqiao [Thu, 6 Mar 2014 10:53:26 +0000 (18:53 +0800)]
Comment

10 years ago* lisp/simple.el (newline): Doc tweak.
Glenn Morris [Thu, 6 Mar 2014 04:11:08 +0000 (20:11 -0800)]
* lisp/simple.el (newline): Doc tweak.

* etc/NEWS: Related edit.

10 years ago* doc/lispref/searching.texi (Replacing Match): Remove incorrect return value
Glenn Morris [Thu, 6 Mar 2014 02:10:33 +0000 (21:10 -0500)]
* doc/lispref/searching.texi (Replacing Match): Remove incorrect return value

Fixes: debbugs:16942
10 years ago* lisp/mh-e/mh-compat.el (mh-display-completion-list): Replace use of obsolete
Glenn Morris [Thu, 6 Mar 2014 02:02:46 +0000 (21:02 -0500)]
* lisp/mh-e/mh-compat.el (mh-display-completion-list): Replace use of obsolete
argument of display-completion-list.

10 years ago* lisp/emacs-lisp/shadow.el (load-path-shadows-find): Ignore dir-locals.
Glenn Morris [Thu, 6 Mar 2014 02:01:02 +0000 (21:01 -0500)]
* lisp/emacs-lisp/shadow.el (load-path-shadows-find): Ignore dir-locals.

Fixes: debbugs:12357
10 years ago* etc/tutorials/TUTORIAL: Mention electric behavior of RET.
Glenn Morris [Thu, 6 Mar 2014 01:59:47 +0000 (20:59 -0500)]
* etc/tutorials/TUTORIAL: Mention electric behavior of RET.

Note that I had to change "\" to `\', because otherwise Emacs thought
that everything after that point was inside a string and so did not
indent anything.

So translators should check for anything similar in their translated
versions.

10 years agolisp/gnus/gnus-group.el (gnus-group-make-group): Clarify prompt
Lars Ingebrigtsen [Wed, 5 Mar 2014 22:54:48 +0000 (22:54 +0000)]
lisp/gnus/gnus-group.el (gnus-group-make-group): Clarify prompt

10 years agoTweak previous tweak
Glenn Morris [Wed, 5 Mar 2014 20:35:38 +0000 (15:35 -0500)]
Tweak previous tweak

10 years ago* configure.ac: Tweak the "unported" error message.
Glenn Morris [Wed, 5 Mar 2014 19:57:36 +0000 (14:57 -0500)]
* configure.ac: Tweak the "unported" error message.
"Has not been ported to" usually isn't quite correct these days.
Eg it could be an old platform that we dropped support for.

10 years agoFix ChangeLog bug# typo
Glenn Morris [Wed, 5 Mar 2014 19:04:44 +0000 (14:04 -0500)]
Fix ChangeLog bug# typo

10 years ago* lisp/progmodes/sh-script.el: Fix whitespace in previous change.
Glenn Morris [Wed, 5 Mar 2014 19:02:55 +0000 (14:02 -0500)]
* lisp/progmodes/sh-script.el: Fix whitespace in previous change.

10 years agoRecognize dash shell
Glenn Morris [Wed, 5 Mar 2014 18:58:16 +0000 (13:58 -0500)]
Recognize dash shell

* lisp/files.el (interpreter-mode-alist):
* lisp/progmodes/sh-script.el (sh-ancestor-alist): Add dash.

Fixes: debbugs:16938
10 years ago(eww-textarea-map): [tab] doesn't work on tty.
Lars Ingebrigtsen [Wed, 5 Mar 2014 18:44:58 +0000 (19:44 +0100)]
(eww-textarea-map): [tab] doesn't work on tty.

Reported by Mario Lang.

* net/shr.el (shr-map): Ditto.

10 years ago* etc/NEWS: Fix paren typo from earlier change
Glenn Morris [Wed, 5 Mar 2014 17:14:48 +0000 (09:14 -0800)]
* etc/NEWS: Fix paren typo from earlier change

10 years agolisp/frameset.el (frameset--initial-params): Filter out null entries.
Juanma Barranquero [Wed, 5 Mar 2014 16:22:47 +0000 (17:22 +0100)]
lisp/frameset.el (frameset--initial-params): Filter out null entries.

10 years agoVarious window code related fixes and documentation changes.
Martin Rudalics [Wed, 5 Mar 2014 13:50:48 +0000 (14:50 +0100)]
Various window code related fixes and documentation changes.

* dispnew.c (change_frame_size_1): Add new_lines instead of
new_height, the latter may be still zero if passed as such.
* window.c (Fwindow_pixel_height): Mention bottom divider in
doc-string.
* window.el (window-min-height, window-min-width): Rewrite
doc-strings.
(window-body-size): Add PIXELWISE argument to make it consistent
with its callees.
* display.texi (Window Dividers): New section.
* frames.texi (Layout Parameters): Add right-divider-width and
bottom-divider-width.
* windows.texi (Window Sizes): Redraw schematic and rewrite its
description.  Rewrite descriptions of `window-total-height',
`window-total-width', `window-total-size', `window-body-height',
`window-body-width' and `window-size-fixed'.  Add descriptions
for `window-pixel-height', `window-pixel-width',
`window-min-height' and `window-min-width'.  Remove description
of `window-size-fixed-p' moving part of it to that of
`window-size-fixed'.
(Resizing Windows): Mention dividers when talking about minimum
sizes.

10 years agolisp/finder.el: Revert part of 2014-02-28 change.
Juanma Barranquero [Wed, 5 Mar 2014 13:09:17 +0000 (14:09 +0100)]
lisp/finder.el: Revert part of 2014-02-28 change.

10 years ago* net/eww.el (eww-mode-map): [tab] doesn't work on tty.
Lars Ingebrigtsen [Wed, 5 Mar 2014 12:39:13 +0000 (13:39 +0100)]
* net/eww.el (eww-mode-map): [tab] doesn't work on tty.

* net/eww.el (eww-mode-map): [tab] doesn't work on tty.
(eww-setup-buffer): Clear next/prev/etc more reliably.

10 years agoTry to document some smie changes
Glenn Morris [Wed, 5 Mar 2014 07:41:48 +0000 (23:41 -0800)]
Try to document some smie changes

* doc/lispref/modes.texi (SMIE Customization): New section.

* doc/lispref/elisp.texi (Top): Update detailed menu.

* etc/NEWS: Related edits.

10 years agoRevert 2014-03-04T14:33:56Z!bzg@gnu.org.
Bastien Guerry [Wed, 5 Mar 2014 07:04:01 +0000 (08:04 +0100)]
Revert 2014-03-04T14:33:56Z!bzg@gnu.org.

Thanks to Leo for reporting this.

10 years agoFix "resource temporarily unavailable" with xgselect.
Paul Eggert [Wed, 5 Mar 2014 06:31:57 +0000 (22:31 -0800)]
Fix "resource temporarily unavailable" with xgselect.

* xgselect.c: Include <stdbool.h>.
(xg_select) [!USE_GTK]: Don't lose track of errno.

Fixes: debbugs:16925
10 years agoFix minor --enable-gcc-warnings issues.
Paul Eggert [Wed, 5 Mar 2014 06:28:20 +0000 (22:28 -0800)]
Fix minor --enable-gcc-warnings issues.

* widget.c (update_various_frame_slots, EmacsFrameResize):
Avoid unused locals.  Prefer 'if' to '#if' when either will do.

10 years agoFix configuration bug on Solaris 2.5.1.
Paul Eggert [Wed, 5 Mar 2014 02:39:05 +0000 (18:39 -0800)]
Fix configuration bug on Solaris 2.5.1.

* configure.ac: Fix a bug in shell pattern matching that caused
'configure' to treat Solaris 2.5.1 as if it were Solaris 10 or later.

Fixes: debbugs:16896
10 years agoFurther follow-up to last change in gmalloc.c.
Ken Brown [Tue, 4 Mar 2014 19:02:49 +0000 (14:02 -0500)]
Further follow-up to last change in gmalloc.c.

* src/gmalloc.c (aligned_alloc): Clarify the code by making `adj'
represent the actual adjustment needed for alignment.

10 years agoFollow-up improvements for last change in gmalloc.c.
Eli Zaretskii [Tue, 4 Mar 2014 17:35:15 +0000 (19:35 +0200)]
Follow-up improvements for last change in gmalloc.c.

 src/gmalloc.c (aligned_alloc): Don't allocate more memory than
 needed, and don't reallocate if the initial allocation already
 fits the bill.  Suggested by Ken Brown <kbrown@cornell.edu>.

Fixes: debbugs:16901