]> git.eshelyaron.com Git - emacs.git/log
emacs.git
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
10 years ago* minibuffer.el (completion-hilit-commonality): Revert 2014-03-01 short-cut,
Glenn Morris [Tue, 4 Mar 2014 17:01:37 +0000 (09:01 -0800)]
* minibuffer.el (completion-hilit-commonality): Revert 2014-03-01 short-cut,
which changed the return value.

Fixes: debbugs:16933
10 years agolisp/hilit-chg.el (hilit-chg-unload-function): New function.
Juanma Barranquero [Tue, 4 Mar 2014 15:07:59 +0000 (16:07 +0100)]
lisp/hilit-chg.el (hilit-chg-unload-function): New function.

(highlight-changes-mode, highlight-changes-visible-mode): Fix typos.
(hilit-chg-map-changes): Prefer cardinal number to digit.
(hilit-chg-display-changes): Reflow docstring.
(highlight-changes-rotate-faces): Remove superfluous backslash.

10 years ago* net/tramp-sh.el (tramp-sh-handle-vc-registered): Do not call
Michael Albinus [Tue, 4 Mar 2014 14:40:38 +0000 (15:40 +0100)]
* net/tramp-sh.el (tramp-sh-handle-vc-registered): Do not call
`tramp-send-command-and-check'.

10 years agominibuffer.el (minibuffer-completion-help): Use 0 as thefallback value for `base...
Bastien Guerry [Tue, 4 Mar 2014 14:33:56 +0000 (15:33 +0100)]
minibuffer.el (minibuffer-completion-help): Use 0 as thefallback value for `base-size'

* minibuffer.el (minibuffer-completion-help): Use 0 as the
fallback value for `base-size'.  (Bug#16933)

10 years agolisp/hexl.el: Fix typos in docstrings.
Juanma Barranquero [Tue, 4 Mar 2014 14:13:41 +0000 (15:13 +0100)]
lisp/hexl.el: Fix typos in docstrings.

(hexl-address-region, hexl-ascii-region)
(hexl-goto-hex-address, hexl-backward-char, hexl-forward-char)
(hexl-backward-short, hexl-forward-short, hexl-backward-word)
(hexl-forward-word, hexl-previous-line, hexl-next-line):
Use "Hexl mode" for non-hyperlinked hexl-mode references in docstrings.
(hexl-mode): Doc fix.
(hexl-ascii-start-column, hexl-beginning-of-line, hexl-end-of-line)
(hexl-mode-ruler): Fix typos in docstrings.

10 years agolisp/strokes.el: Fix typos.
Juanma Barranquero [Tue, 4 Mar 2014 13:01:48 +0000 (14:01 +0100)]
lisp/strokes.el: Fix typos.

(strokes-xpm-header, strokes-rate-stroke): Fix typos.
(strokes-character, strokes-get-grid-position, strokes-list-strokes):
Remove superfluous backslashes.
(strokes-last-stroke, strokes-global-map, strokes-mode):
Reflow docstrings.
(strokes-xpm-for-stroke, strokes-xpm-to-compressed-string)
(strokes-xpm-for-compressed-string): Use quotes with buffer name.
(strokes-distance-squared, strokes-global-set-stroke)
(strokes-global-set-stroke-string): Doc fixes.
(strokes-help): Fix typos; reflow docstring.

10 years ago* xterm.c (x_draw_stretch_glyph_string): Reset clipping. (Bug#16932)
YAMAMOTO Mitsuharu [Tue, 4 Mar 2014 11:02:36 +0000 (20:02 +0900)]
* xterm.c (x_draw_stretch_glyph_string): Reset clipping.  (Bug#16932)

10 years agoFix some window code related doc-string and info entries.
Martin Rudalics [Tue, 4 Mar 2014 10:44:46 +0000 (11:44 +0100)]
Fix some window code related doc-string and info entries.

* window.el (window-in-direction): Fix doc-string.
* windows.texi (Windows and Frames): Add some missing &optional
designators.  Adjust description of window-in-direction.

10 years ago* lisp/cedet/semantic/util.el (semantic-complete-symbol):
Glenn Morris [Tue, 4 Mar 2014 08:37:48 +0000 (00:37 -0800)]
* lisp/cedet/semantic/util.el (semantic-complete-symbol):
Replace use of obsolete argument of display-completion-list.

10 years agoSmall smie.el doc and fix
Glenn Morris [Tue, 4 Mar 2014 08:35:11 +0000 (00:35 -0800)]
Small smie.el doc and fix

* lisp/emacs-lisp/smie.el (smie-config-guess): Doc fix.
Explicit error if no grammar.
(smie-config-save): Doc fix.  Fix quote typo.

* etc/NEWS: Related edit.

10 years ago* lisp/electric.el (electric-indent-mode-has-been-called): Remove.
Stefan Monnier [Tue, 4 Mar 2014 04:03:34 +0000 (23:03 -0500)]
* lisp/electric.el (electric-indent-mode-has-been-called): Remove.
(electric-indent-mode): Fix accordingly.
* lisp/progmodes/cc-mode.el (c-initialize-cc-mode): Only hook into
electric-indent-mode-hook if we obey electric-indent-mode.
(c-basic-common-init): Use (fboundp 'electric-indent-local-mode) to
decide whether we obey electric-indent-mode.
(c-change-set-fl-decl-start, c-extend-after-change-region):
Silence warnings.
(c-electric-indent-mode-hook): Assume we do want to obey
electric-indent-mode.

10 years ago* lisp/files.el (hack-local-variables): Mention file name in warning.
Stefan Monnier [Tue, 4 Mar 2014 03:26:17 +0000 (22:26 -0500)]
* lisp/files.el (hack-local-variables): Mention file name in warning.

10 years ago* lisp/htmlfontify.el (hfy-fontify-buffer): Drop `invis-range' message.
Stefan Monnier [Tue, 4 Mar 2014 03:18:55 +0000 (22:18 -0500)]
* lisp/htmlfontify.el (hfy-fontify-buffer): Drop `invis-range' message.

10 years ago* binding.el: Add comment describing why C-d binds to `delete-char'.
Michal Nazarewicz [Tue, 4 Mar 2014 03:14:11 +0000 (22:14 -0500)]
* binding.el: Add comment describing why C-d binds to `delete-char'.
* lisp/simple.el (delete-forward-char): Mark as interactive-only.
* src/cmds.c (delete-char): Update docstring pointing out that the
function ignores `delete-active-region' and `overwrite-mode'.

10 years agoFix bug #16930 with broken build --without-x.
Eli Zaretskii [Mon, 3 Mar 2014 19:58:20 +0000 (21:58 +0200)]
Fix bug #16930 with broken build --without-x.

 src/font.c (Fframe_font_cache): Fix last change.

10 years agodoc/misc/*.texi: Fix typos and whitespace.
Juanma Barranquero [Mon, 3 Mar 2014 17:15:42 +0000 (18:15 +0100)]
doc/misc/*.texi: Fix typos and whitespace.

* doc/misc/ede.texi (Android projects):
* doc/misc/eieio.texi (Class Options, Making New Objects)
  (Method Invocation, CLOS compatibility):
* doc/misc/sem-user.texi (Tag Decoration Mode): Fix typos.

* doc/misc/gnus.texi:
* doc/misc/semantic.texi: Fix whitespace.

10 years agoChangeLog entries should be usable without the VCS
Glenn Morris [Mon, 3 Mar 2014 17:03:32 +0000 (09:03 -0800)]
ChangeLog entries should be usable without the VCS

10 years agoFix crashes in lisp_align_free in a build with GC_MCHECK.
Eli Zaretskii [Mon, 3 Mar 2014 16:46:36 +0000 (18:46 +0200)]
Fix crashes in lisp_align_free in a build with GC_MCHECK.

 src/gmalloc.c (aligned_alloc): Fix adjustment of size of the
 allocated buffer due to alignment.
 (freehook): If the block to be freed was allocated by
 'aligned_alloc', find its real pointer before calling 'free'.
 (mabort) [emacs]: Call 'emacs_abort', not 'abort', to provide a
 backtrace.

Fixes: debbugs:16901
10 years agoAvoid crashes when X fonts are erroneously freed on reused X
Dmitry Antipov [Mon, 3 Mar 2014 08:27:58 +0000 (12:27 +0400)]
Avoid crashes when X fonts are erroneously freed on reused X
'Display *' connection data (Bug#16069).  Note that X font
resources still may be leaked, but currently there is no way
to completely avoid it.
* xterm.h (struct x_display_info): New member x_id.  Add comments.
* xterm.c (x_display_id): New variable.
(x_term_init): Assign identifier to each opened X connection.
* xfont.c (struct xfont): New member x_display_id.
(xfont_open): Initialize it with frame's display id.
(xfont_close): Check whether font's display id matches the one
recorded for the given display.  Adjust comment.
* xftfont.c (struct xftfont_info):
(xftfont_open, xftfont_close): Exactly as above with xfont stuff.

10 years ago* font.c (toplevel): Adjust comment about font cache layout.
Dmitry Antipov [Mon, 3 Mar 2014 07:46:08 +0000 (11:46 +0400)]
* font.c (toplevel): Adjust comment about font cache layout.
(font_clear_cache): Fix to match real font cache layout.
Suggested by <namespace_collision@yahoo.com> in Bug#16069.
(Fframe_font_cache) [FONT_DEBUG]: New function.
(syms_of_font) [FONT_DEBUG]: Defsubr it.

10 years agoSpelling fixes.
Paul Eggert [Mon, 3 Mar 2014 05:12:12 +0000 (21:12 -0800)]
Spelling fixes.

10 years ago*/ChangeLog: Trivial fixes.
Juanma Barranquero [Mon, 3 Mar 2014 04:57:26 +0000 (05:57 +0100)]
*/ChangeLog: Trivial fixes.

10 years agolisp/icomplete.el (icomplete-completions): Follow-up to 2014-03-01T01:25:29Z!lekktu...
Juanma Barranquero [Mon, 3 Mar 2014 03:40:48 +0000 (04:40 +0100)]
lisp/icomplete.el (icomplete-completions): Follow-up to 2014-03-01T01:25:29Z!lekktu@gmail.com.

10 years agolisp/icomplete.el, lisp/ido.el: Doc fixes.
Juanma Barranquero [Mon, 3 Mar 2014 02:27:08 +0000 (03:27 +0100)]
lisp/icomplete.el, lisp/ido.el: Doc fixes.

lisp/icomplete.el: Miscellaneous doc fixes.
Use Icomplete everywhere instead of icomplete for consistency.
(icomplete-max-delay-chars): Fix typo.
(icomplete-mode): Use \[].
(icomplete-tidy, icomplete-exhibit): Reflow.
(icomplete-minibuffer-setup-hook, icomplete-completions):
Remove superfluous backlashes.

lisp/ido.el: Miscellaneous doc fixes.
Use Ido everywhere instead of ido or `ido' for consistency.
(ido-record-ftp-work-directories, ido-merge-ftp-work-directories)
(ido-cache-ftp-work-directory-time, ido-slow-ftp-hosts)
(ido-slow-ftp-host-regexps, ido-reread-directory): Upcase "ftp".
(ido-separator): Extract obsolescence info from docstring and declare
with make-obsolete-variable.
(ido-minibuffer-setup-hook): Simplify example.
(ido-text, ido-text-init, ido-input-stack, ido-report-no-match)
(ido-wide-find-file, ido-wide-find-dir, ido-wide-find-dir-or-delete-dir)
(ido-completion-help, ido-completing-read): Fix typos in docstrings.
(ido-everywhere): Reflow docstring.
(ido-toggle-vc): Doc fix.
(ido-switch-buffer, ido-find-file): Use tabs to improve legibility
of long list of keybindings.

10 years ago* etc/NEWS: Tweak previous change.
Glenn Morris [Mon, 3 Mar 2014 01:41:28 +0000 (17:41 -0800)]
* etc/NEWS: Tweak previous change.

10 years ago* etc/NEWS: Minor edit
Glenn Morris [Mon, 3 Mar 2014 01:16:58 +0000 (17:16 -0800)]
* etc/NEWS: Minor edit

10 years agoMinor doc tweaks for display-*-width, height
Glenn Morris [Mon, 3 Mar 2014 01:00:27 +0000 (17:00 -0800)]
Minor doc tweaks for display-*-width, height

* lisp/frame.el (display-pixel-height, display-pixel-width)
(display-mm-dimensions-alist, display-mm-height)
(display-mm-width): Doc tweaks.

* doc/lispref/frames.texi: Remove FIXME comments.  The x- versions of
these functions are internal details that do not need documenting.

* etc/NEWS: Related markup.

10 years ago* markers.texi (Moving Marker Positions): Clarify guidance about
Barry O'Reilly [Sun, 2 Mar 2014 17:49:02 +0000 (12:49 -0500)]
* markers.texi (Moving Marker Positions): Clarify guidance about
when to move markers and when to create a new one, as discussed at
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16818#17

10 years ago* simple.el (undo-elt-in-region): Fix buffer corruption for edge
Barry O'Reilly [Sun, 2 Mar 2014 17:37:32 +0000 (12:37 -0500)]
* simple.el (undo-elt-in-region): Fix buffer corruption for edge
case of undo in region.
* automated/undo-tests.el (undo-test-in-region-not-most-recent):
Add new test of undo in region.
(undo-test-in-region-eob): Add test case described at
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16411#41