]> git.eshelyaron.com Git - emacs.git/log
emacs.git
9 years agoHave `x-show-tip' handle `right' and `bottom' frame parameters.
Martin Rudalics [Tue, 7 Jul 2015 06:45:21 +0000 (08:45 +0200)]
Have `x-show-tip' handle `right' and `bottom' frame parameters.

* src/nsfns.m (compute_tip_xy, Fx_show_tip)
* src/w32fns.c (compute_tip_xy, Fx_show_tip)
* src/xfns.c (compute_tip_xy, Fx_show_tip): Allow aligning
tooltips also via `right' and `bottom' frame parameters.

9 years agoAdd online-help support to describe types
Stefan Monnier [Tue, 7 Jul 2015 06:14:16 +0000 (02:14 -0400)]
Add online-help support to describe types

* lisp/help-fns.el (describe-symbol-backends): Move to help-mode.el.
(describe-symbol): Improve the selection of default.

* lisp/help-mode.el: Require cl-lib.
(describe-symbol-backends): Move from help-fns.el.
(help-make-xrefs): Use it.

* lisp/emacs-lisp/cl-extra.el (describe-symbol-backends): Add entry
for types.
(cl--typedef-regexp): New const.
(find-function-regexp-alist): Add entry for types.
(cl-help-type, cl-type-definition): New buttons.
(cl-find-class): New function.
(cl-describe-type): New command.
(cl--describe-class, cl--describe-class-slot)
(cl--describe-class-slots): New functions, moved from eieio-opt.el.

* lisp/emacs-lisp/cl-generic.el (cl--generic-method-documentation)
(cl--generic-all-functions, cl--generic-specializers-apply-to-type-p):
New functions.  Moved from eieio-opt.el.
(cl--generic-class-parents): New function, extracted from
cl--generic-struct-specializers.
(cl--generic-struct-specializers): Use it.

* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Use pcase-dolist.
Improve constructor's docstrings.
(cl-struct-unknown-slot): New error.
(cl-struct-slot-offset): Use it.

* lisp/emacs-lisp/cl-preloaded.el (cl-struct-define): Record the type
definition in current-load-list.

* lisp/emacs-lisp/eieio-core.el (eieio--known-slot-names): New var.
(eieio--add-new-slot): Set it.
(eieio-defclass-internal): Use new name for current-load-list.
(eieio-oref): Add compiler-macro to warn about unknown slots.
* lisp/emacs-lisp/eieio.el (defclass): Update eieio--known-slot-names
as compile-time as well.  Improve constructor docstrings.

* lisp/emacs-lisp/eieio-opt.el (eieio-help-class)
(eieio--help-print-slot, eieio-help-class-slots): Move to cl-extra.el.
(eieio-class-def): Remove button.
(eieio-help-constructor): Use new name for load-history element.
(eieio--specializers-apply-to-class-p, eieio-all-generic-functions)
(eieio-method-documentation): Move to cl-generic.el.
(eieio-display-method-list): Use new names.

* lisp/emacs-lisp/lisp-mode.el (lisp-imenu-generic-expression):
Add "define-linline".
(lisp-fdefs): Remove "defsubst".
(el-fdefs): Add "defsubst", "cl-defsubst", and "define-linline".

* lisp/emacs-lisp/macroexp.el (macroexp--warned): New var.
(macroexp--warn-and-return): Use it to avoid inf-loops.
Add `compile-only' argument.

9 years agopython.el: Fix local/remote shell environment setup
Fabián Ezequiel Gallina [Mon, 6 Jul 2015 23:08:01 +0000 (20:08 -0300)]
python.el: Fix local/remote shell environment setup

* lisp/progmodes/python.el (python-shell-with-environment): Fix
remote/local environment setup.

* test/automated/python-tests.el (python-shell-with-environment-1)
(python-shell-with-environment-2): New tests.

9 years ago* lisp/simple.el (set-variable): Tweak recent doc fix.
Glenn Morris [Mon, 6 Jul 2015 20:35:45 +0000 (16:35 -0400)]
* lisp/simple.el (set-variable): Tweak recent doc fix.

9 years ago* src/sysdep.c (handle_sigsegv) [CYGWIN]: Increase STACK_DANGER_ZONE
Ken Brown [Mon, 6 Jul 2015 20:00:37 +0000 (16:00 -0400)]
* src/sysdep.c (handle_sigsegv) [CYGWIN]: Increase STACK_DANGER_ZONE

9 years ago* lisp/simple.el (set-variable): Use user-error for type mismatch.
Glenn Morris [Mon, 6 Jul 2015 19:30:51 +0000 (15:30 -0400)]
* lisp/simple.el (set-variable): Use user-error for type mismatch.

9 years ago* src/emacs.c (main): Don't increase the stack size on Cygwin
Ken Brown [Mon, 6 Jul 2015 19:08:47 +0000 (15:08 -0400)]
* src/emacs.c (main): Don't increase the stack size on Cygwin

9 years ago(describe-symbol): Rewrite describe-function-or-variable
Stefan Monnier [Mon, 6 Jul 2015 17:25:26 +0000 (13:25 -0400)]
(describe-symbol): Rewrite describe-function-or-variable

* lisp/help-fns.el (describe-symbol-backends): New var.
(help-xref-stack-item): Declare.
(describe-symbol): Rename from describe-function-or-variable.
Rewrite using describe-symbol-backends instead of help-xref-interned.
* lisp/help.el (help-map): Use it.
* lisp/help-mode.el (help-symbol, help-follow-symbol): Use it.
(help-xref-interned): Make it into an obsolete alias.

9 years ago(eieio-persistent-save): Don't ignore `file' arg (bug#20972)
Stefan Monnier [Mon, 6 Jul 2015 15:55:37 +0000 (11:55 -0400)]
(eieio-persistent-save): Don't ignore `file' arg (bug#20972)

* lisp/emacs-lisp/eieio-base.el (eieio-persistent-save): Don't ignore
`file' arg.  Always use utf-8-emacs.  Use with-temp-buffer and cl-letf.

9 years ago; Auto-commit of loaddefs files.
Wolfgang Jenkner [Mon, 6 Jul 2015 13:10:27 +0000 (15:10 +0200)]
; Auto-commit of loaddefs files.

9 years agoFix parsing glitches in dired-mark-sexp (bug#13575)
Wolfgang Jenkner [Mon, 6 Jul 2015 13:10:03 +0000 (15:10 +0200)]
Fix parsing glitches in dired-mark-sexp (bug#13575)

* lisp/dired-x.el (dired-x--string-to-number): New function.
(dired-mark-sexp): Use it.  Tweak dired-re-inode-size.  Fix usage
of directory-listing-before-filename-regexp.  Consider
forward-word harmful and replace it.  Add more verbiage in
comments and doc string.

9 years agopython.el: Respect process environment for remote shells
Fabián Ezequiel Gallina [Mon, 6 Jul 2015 10:57:14 +0000 (07:57 -0300)]
python.el: Respect process environment for remote shells

* lisp/progmodes/python.el
(python-shell-calculate-process-environment): Calculate
process-environment or tramp-remote-process-environment depending
whether current file is remote.
(python-shell-calculate-exec-path): Calculate exec-path or
tramp-remote-path depending whether current file is remote.
(python-shell-with-environment): New macro.
(python-shell-prompt-detect, python-shell-calculate-command)
(python-shell-make-comint, python-check): Use it.

9 years ago; Spelling fixes
Paul Eggert [Mon, 6 Jul 2015 06:16:19 +0000 (23:16 -0700)]
; Spelling fixes

9 years agopython.el: Avoid making let-bound defvars buffer local (Bug#18244)
Fabián Ezequiel Gallina [Mon, 6 Jul 2015 05:34:44 +0000 (02:34 -0300)]
python.el: Avoid making let-bound defvars buffer local  (Bug#18244)

* lisp/progmodes/python.el (python-shell--interpreter)
(python-shell--interpreter-args): New vars.
(inferior-python-mode, python-shell-make-comint): Use them.

9 years ago; python.el: Replace `eval-when-compile` with `eval-and-compile`
Fabián Ezequiel Gallina [Mon, 6 Jul 2015 05:02:06 +0000 (02:02 -0300)]
; python.el: Replace `eval-when-compile` with `eval-and-compile`

9 years agopython.el: Fixes for IPython 3.x (Bug#20580)
Fabián Ezequiel Gallina [Mon, 6 Jul 2015 04:59:02 +0000 (01:59 -0300)]
python.el: Fixes for IPython 3.x  (Bug#20580)

* lisp/progmodes/python.el:
(python-shell-completion-native-setup): Fix IPython 3.x setup.
(python-shell-completion-native-get-completions): Fix timeout
logic.

9 years agopython.el: Fix mark-defun behavior (Bug#19665)
Fabián Ezequiel Gallina [Mon, 6 Jul 2015 04:03:46 +0000 (01:03 -0300)]
python.el: Fix mark-defun behavior  (Bug#19665)

* lisp/progmodes/python.el: (python-mark-defun): New function.

* test/automated/python-tests.el (python-mark-defun-1)
(python-mark-defun-2, python-mark-defun-3): New tests.

9 years ago* lisp/progmodes/f90.el (f90-type-def-re): Handle attribute lists
Glenn Morris [Mon, 6 Jul 2015 02:25:04 +0000 (19:25 -0700)]
* lisp/progmodes/f90.el (f90-type-def-re): Handle attribute lists

such as "extends(parent), private".  (Bug#20969)

* test/automated/f90.el (f90-test-bug20969, f90-test-bug20969b):
New tests.

9 years agoAvoid duplicate calls to current_timespec
Paul Eggert [Mon, 6 Jul 2015 02:19:13 +0000 (19:19 -0700)]
Avoid duplicate calls to current_timespec

* src/process.c (wait_reading_process_output):
Cache current_timespec results as long as we're not waiting.

9 years agoAvoid returning early reading process output due to SIGIO
Ian Kelling [Mon, 6 Jul 2015 01:14:25 +0000 (18:14 -0700)]
Avoid returning early reading process output due to SIGIO

* src/process.c (wait_reading_process_output): Extend the behavior of
not breaking due to not finding output when a timer has lowered the
timeout to include when SIGIO lowers the timeout.

9 years agoDon't return as fast reading any process output
Ian Kelling [Mon, 6 Jul 2015 00:00:26 +0000 (17:00 -0700)]
Don't return as fast reading any process output

* src/process.c (wait_reading_process_output):
The patch for Bug#17647 returns too fast sometimes when reading
from any processes. Revert part of it, and limit the timeout more
sensibly (Bug#20978).

9 years agoRefactor timeouts in wait_reading_process_output
Ian Kelling [Sun, 5 Jul 2015 22:55:19 +0000 (15:55 -0700)]
Refactor timeouts in wait_reading_process_output

* src/process.c (wait_reading_process_output):
Simplify timeouts with an enum.  Remove a redundant condition.
(Bug#20978)

9 years ago; Rename local var nsecs to adaptive_nsecs
Ian Kelling [Sun, 5 Jul 2015 22:38:29 +0000 (15:38 -0700)]
; Rename local var nsecs to adaptive_nsecs

* src/process.c (wait_reading_process_output): Rename inner nsecs to
adaptive_nsecs.  There is already an nsecs, and this function is
confusing enough (Bug#20978).

9 years ago; Rename local var to match function name
Ian Kelling [Sun, 5 Jul 2015 22:35:23 +0000 (15:35 -0700)]
; Rename local var to match function name

* src/process.c (wait_reading_process_output, status_notify):
Previously the function wait_reading_process_input was renamed to the
more logical wait_reading_process_output.  Make its local variables
consistent with that change (Bug#20978).

9 years agoRemove ADAPTIVE_READ_BUFFERING ifdef
Ian Kelling [Sun, 5 Jul 2015 22:30:27 +0000 (15:30 -0700)]
Remove ADAPTIVE_READ_BUFFERING ifdef

* src/process.c (make-process, make-pipe-process, deactivate_process)
(wait_reading_process_output, read_process_output, send_process)
(init_process_emacs): ifdef ADAPTIVE_READ_BUFFERING was originally
added in case there was an operating system in which it was not
useful.  That was 11 years ago and it hasn't happened.  Make
development easier by not considering the effect of changes on a
theoretical OS where this is disabled (Bug#20978).

9 years ago; Minor cleanup of wait_reading_process_output
Ian Kelling [Sun, 5 Jul 2015 22:23:35 +0000 (15:23 -0700)]
; Minor cleanup of wait_reading_process_output

* src/process.c (wait_reading_process_output):
Simplify logic.  Fix DOS version comments (Bug#20978).

9 years ago* lisp/simple.el (set-variable): Doc fix.
Glenn Morris [Mon, 6 Jul 2015 00:21:42 +0000 (17:21 -0700)]
* lisp/simple.el (set-variable): Doc fix.

9 years ago* lisp/progmodes/fortran.el (fortran-line-length): Doc fix.
Glenn Morris [Mon, 6 Jul 2015 00:16:01 +0000 (17:16 -0700)]
* lisp/progmodes/fortran.el (fortran-line-length): Doc fix.

9 years agoaccept-process-output fix
Ian Kelling [Sun, 5 Jul 2015 22:14:12 +0000 (15:14 -0700)]
accept-process-output fix

This is a followon to the fix for Bug#17647 (Bug#20976).
* src/process.c (status_notify): Fix too high return in some cases.

9 years ago* lisp/character-fold.el (character-fold-table):
Artur Malabarba [Sun, 5 Jul 2015 15:44:22 +0000 (16:44 +0100)]
* lisp/character-fold.el (character-fold-table):

Only fold decompositions if at least one character is non-spacing.
(Bug#20975)

9 years agoMerge from gnulib
Paul Eggert [Sun, 5 Jul 2015 15:22:26 +0000 (08:22 -0700)]
Merge from gnulib

This incorporates:
2015-07-04 file-has-acl, acl-permissions: fix HP-UX typos
2015-07-03 set-permissions.c: adjust acl_from_mode's cpp guard
2015-07-02 update-copyright: fix test failure with perl >= 5.22
2015-07-01 gnulib-common.m4: change the ARFLAGS default to 'cr'
2015-07-01 acl: fix definition of acl_from_mode on FreeBSD
* build-aux/update-copyright, doc/misc/texinfo.tex, lib/acl-internal.h:
* lib/set-permissions.c, m4/gnulib-common.m4: Copy from gnulib.

9 years ago; Auto-commit of ChangeLog files.
Glenn Morris [Sun, 5 Jul 2015 10:24:07 +0000 (06:24 -0400)]
; Auto-commit of ChangeLog files.

9 years agoRespect `prog-indentation-context' in python.el
Christoph Wedler [Fri, 19 Jun 2015 13:38:24 +0000 (13:38 +0000)]
Respect `prog-indentation-context' in python.el

* lisp/progmodes/python.el (python-indent-guess-indent-offset)
(python-indent-context, python-indent--calculate-indentation)
(python-info-current-defun)
(python-info-dedenter-opening-block-message)
(python-info-line-ends-backslash-p)
(python-info-beginning-of-backslash)
(python-info-continuation-line-p): Use `prog-widen'.
(python-indent--calculate-indentation)
(python-indent--calculate-levels)
(python-indent-calculate-indentation): Use `prog-first-column'.
(python-indent--calculate-levels): Simplify.

Ignore also initial empty lines for syntax calculation.
* lisp/progmodes/python.el (python-indent-context): Return
:no-indent for first non-empty line, not just in line 1.
* test/automated/python-tests.el (python-indent-base-case)
(python-indent-inside-paren-1, python-indent-inside-paren-2)
(python-indent-inside-paren-3, python-indent-inside-paren-4)
(python-indent-inside-paren-5, python-indent-inside-paren-6)
(python-indent-after-backslash-1)
(python-indent-after-backslash-2)
(python-indent-after-backslash-3)
(python-indent-after-backslash-4, python-indent-inside-string-1):
Expect :no-indent for first non-empty line.

9 years agoFactor isearch word description into new function
Daniel Colascione [Sun, 5 Jul 2015 00:10:55 +0000 (17:10 -0700)]
Factor isearch word description into new function

* lisp/isearch.el (isearch--describe-word-mode): New function.
(isearch-message-prefix, isearch-query-replace): Use it.

9 years agoFix mouse pointer on w32 when a menu is active
Eli Zaretskii [Sat, 4 Jul 2015 11:23:27 +0000 (14:23 +0300)]
Fix mouse pointer on w32 when a menu is active

* src/w32fns.c (w32_wnd_proc): Don't change the mouse pointer
shape while a menu is in use.  This started happening since we now
send WM_EMACS_SHOWCURSOR messages when the mouse moves.

9 years agoFix processing of alpha parameter for Windows tip frames (Bug#17344)
Martin Rudalics [Sat, 4 Jul 2015 08:42:25 +0000 (10:42 +0200)]
Fix processing of alpha parameter for Windows tip frames  (Bug#17344)

* src/w32fns.c (x_create_tip_frame): Fix processing alpha
parameter.  (Bug#17344)

9 years agoHave `compilation-set-window' use right window for getting fringes (Bug#20829)
Martin Rudalics [Sat, 4 Jul 2015 08:13:22 +0000 (10:13 +0200)]
Have `compilation-set-window' use right window for getting fringes (Bug#20829)

* lisp/progmodes/compile.el (compilation-set-window): Take
`window-fringes' from argument window.  (Bug#20829)

9 years agoUpdate eieio tests for recent eieio-core change.
Glenn Morris [Sat, 4 Jul 2015 00:25:51 +0000 (17:25 -0700)]
Update eieio tests for recent eieio-core change.

* test/automated/eieio-test-persist.el (persist-test-save-and-compare):
* test/automated/eieio-tests.el
(eieio-test-32-slot-attribute-override-2):
Replace the deleted eieio--class-v with cl--find-class.

9 years agoFix some issues with `window-divider-mode'
Martin Rudalics [Fri, 3 Jul 2015 13:15:51 +0000 (15:15 +0200)]
Fix some issues with `window-divider-mode'

* lisp/frame.el (window-divider-default-places): New option.
(window-divider-mode): Remove option.
(window-divider-mode): Make it a "regular" minor mode.
(window-divider-width-valid-p): Drop frame- prefix.
(window-divider-mode-apply): New argument ENABLE.  Drop frame-
prefix.  Handle `window-divider-default-places'.
(frame--window-divider-mode-set-and-apply): Remove.
(window-divider-default-bottom-width)
(window-divider-default-right-width): Drop :group entries.
* lisp/menu-bar.el (menu-bar-bottom-and-right-window-divider)
(menu-bar-right-window-divider, menu-bar-bottom-window-divider)
(menu-bar-no-window-divider): Set `window-divider-default-places'
and call `window-divider-mode'.
* doc/emacs/frames.texi (Window Dividers): Document
`window-divider-default-places'.

9 years agoAdd cross references in documentation
Xue Fuqiao [Fri, 3 Jul 2015 03:21:08 +0000 (11:21 +0800)]
Add cross references in documentation

* doc/emacs/display.texi (Displaying Boundaries):
* doc/emacs/search.texi (Word Search): Add cross references.

9 years ago;* src/bidi.c (bpa_stack_entry): Update commentary for Unicode 8.0.
Eli Zaretskii [Thu, 2 Jul 2015 17:40:01 +0000 (20:40 +0300)]
;* src/bidi.c (bpa_stack_entry): Update commentary for Unicode 8.0.

9 years ago-batch should not affect ‘’ -> `' display
Paul Eggert [Thu, 2 Jul 2015 16:29:51 +0000 (09:29 -0700)]
-batch should not affect ‘’ -> `' display

* lisp/startup.el (command-line): Do the ‘’ -> `' check even if
-batch (Bug#20926).

9 years ago* lisp/emacs-lisp/eieio-core.el (eieio--class-v): Remove
Stefan Monnier [Thu, 2 Jul 2015 14:59:32 +0000 (10:59 -0400)]
* lisp/emacs-lisp/eieio-core.el (eieio--class-v): Remove

* lisp/emacs-lisp/eieio-core.el, lisp/emacs-lisp/eieio.el,
  lisp/emacs-lisp/eieio-opt.el, lisp/emacs-lisp/eieio-compat.el:
Use cl--find-class instead.

9 years ago* lisp/term/xterm.el (xterm--query): Fix paren typo (bug#20951).
Stefan Monnier [Thu, 2 Jul 2015 14:49:09 +0000 (10:49 -0400)]
* lisp/term/xterm.el (xterm--query): Fix paren typo (bug#20951).

9 years agoSome further fixes in Change Window node. (Bug#20183)
Martin Rudalics [Thu, 2 Jul 2015 12:58:31 +0000 (14:58 +0200)]
Some further fixes in Change Window node.  (Bug#20183)

* doc/emacs/windows.texi (Change Window): Replace "rearranging"
by "resizing" in section title.  Add some concept indices.
Suggested by N. Jackson (Bug#20183).

9 years agoReference window dividers in Change Window section.
Martin Rudalics [Thu, 2 Jul 2015 12:39:17 +0000 (14:39 +0200)]
Reference window dividers in Change Window section.

* doc/emacs/windows.texi (Change Window): Reference window
dividers.

9 years agoDocument new `window-divider-mode'.
Martin Rudalics [Thu, 2 Jul 2015 09:19:25 +0000 (11:19 +0200)]
Document new `window-divider-mode'.

* lisp/frame.el (window-divider-mode): Fix doc-string.
* doc/emacs/frames.texi (Window Dividers): New section.

9 years agoImprove accessibility of window dividers. (Bug#20183)
Martin Rudalics [Thu, 2 Jul 2015 07:03:45 +0000 (09:03 +0200)]
Improve accessibility of window dividers.  (Bug#20183)

* lisp/faces.el (window-divider)
(window-divider-first-pixel, window-divider-last-pixel): Change
membership from `frames' to `window-divider' customization group.
* lisp/frame.el (window-divider): New customization group.
(window-divider-mode): New minor mode.
(window-divider-default-bottom-width)
(window-divider-default-right-width): New options.
(frame--window-divider-previous-mode): New variable.
(frame-window-divider-width-valid-p)
(frame--window-divider-mode-apply)
(frame--window-divider-mode-set-and-apply): New functions.
* lisp/menu-bar.el (menu-bar-options-save): Save
window-divider-mode settings.
(menu-bar-window-divider-customize)
(menu-bar-bottom-and-right-window-divider)
(menu-bar-right-window-divider, menu-bar-bottom-window-divider)
(menu-bar-no-window-divider): New functions.
(menu-bar-showhide-window-divider-menu): New variable.
(menu-bar-showhide-menu): Show/hide window divider menu.
* lisp/mouse.el (mouse-split-window-vertically)
(mouse-split-window-horizontally): Replace `error' by
`user-error'.  Bind `window-combination-resize' to nil.
(top-level): Add/reorder mouse key bindings on mode- and
vertical-line.

9 years agoDon't display ‘’ as `' under X in en_GB
Paul Eggert [Thu, 2 Jul 2015 05:24:51 +0000 (22:24 -0700)]
Don't display ‘’ as `' under X in en_GB

The curved quote setup code invokes (char-displayable-p ?‘),
but this isn’t reliable until after the X frame replaces the
terminal frame (Bug#20926).
* lisp/international/mule-cmds.el (set-locale-environment):
Move curved quote setup code from here ...
* lisp/startup.el (command-line): ... to here, after creating
the X frame.

9 years ago* lisp/emacs-lisp/seq.el (seq-difference): Fix typo in docstring
Nicolas Richard [Tue, 30 Jun 2015 07:31:03 +0000 (09:31 +0200)]
* lisp/emacs-lisp/seq.el (seq-difference): Fix typo in docstring

9 years agoAdd argument to reverse the meaning of ido-restrict-to-matches
Nicolas Richard [Tue, 30 Jun 2015 07:18:27 +0000 (09:18 +0200)]
Add argument to reverse the meaning of ido-restrict-to-matches

* lisp/ido.el (ido-restrict-to-matches): Add an optional argument
to reverse the meaning (Bug#15631).

; * etc/NEWS: Mention the change.

9 years agoBe more tolerant to fonts named "Foobar-12"
Eli Zaretskii [Wed, 1 Jul 2015 16:33:56 +0000 (19:33 +0300)]
Be more tolerant to fonts named "Foobar-12"

* src/frame.c (x_set_font): If font_spec_from_name returns nil,
don't barf; instead, request a new fontset to be generated.  This
avoids unnecessarily rejecting fonts named against XLFD rules.  See
http://lists.gnu.org/archive/html/help-emacs-windows/2015-06/msg00001.html,
for the description of the original problem.

* lisp/faces.el (set-face-attribute): Don't be fooled too easily
by a hyphen in a font's name.

9 years agoFix value of posn-at-pont in R2L lines
Eli Zaretskii [Wed, 1 Jul 2015 16:27:13 +0000 (19:27 +0300)]
Fix value of posn-at-pont in R2L lines

* src/keyboard.c (Fposn_at_x_y, Fposn_at_point): Allow X pixel
coordinate of -1, for a newline in a right-to-left line that
overflowed into the left fringe.

9 years ago(cl--copy-slot-descriptor): Copy the `props' alist as well
Stefan Monnier [Wed, 1 Jul 2015 13:31:25 +0000 (09:31 -0400)]
(cl--copy-slot-descriptor): Copy the `props' alist as well

* lisp/emacs-lisp/cl-preloaded.el (cl--copy-slot-descriptor-1):
Rename from cl--copy-slot-descriptor.
(cl--copy-slot-descriptor): New function.  Copy the alist (bug#20914).

9 years ago; Auto-commit of loaddefs files.
Glenn Morris [Wed, 1 Jul 2015 10:22:13 +0000 (06:22 -0400)]
; Auto-commit of loaddefs files.

9 years ago* lisp/term/xterm.el (xterm--query): Avoid generating garbage
Stefan Monnier [Wed, 1 Jul 2015 03:20:29 +0000 (23:20 -0400)]
* lisp/term/xterm.el (xterm--query): Avoid generating garbage

(xterm-query-timeout): New var.
(xterm--query): Use it.  Fallback on async method if we timeout before
getting the first byte of the reply (bug#12354).

9 years agoSpelling fixes
Paul Eggert [Wed, 1 Jul 2015 02:45:56 +0000 (19:45 -0700)]
Spelling fixes

9 years ago* doc/emacs/frames.texi (Frame Commands): Typo fix. (Bug#20946)
Xue Fuqiao [Tue, 30 Jun 2015 22:34:05 +0000 (06:34 +0800)]
* doc/emacs/frames.texi (Frame Commands): Typo fix. (Bug#20946)

9 years agoIn strings, prefer plain ` and ' to \` and \'
Paul Eggert [Tue, 30 Jun 2015 22:06:31 +0000 (15:06 -0700)]
In strings, prefer plain ` and ' to \` and \'

* lisp/allout.el (allout-insert-listified):
* lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode):
* lisp/ls-lisp.el (ls-lisp-UCA-like-collation)
(ls-lisp-string-lessp):
* lisp/menu-bar.el (menu-bar-open):
* lisp/obsolete/otodo-mode.el (todo-top-priorities):
* lisp/progmodes/compile.el (compile):
* lisp/progmodes/etags.el (tags-loop-scan):
* lisp/progmodes/make-mode.el (makefile-browser-insert-continuation):
* lisp/subr.el (posn-actual-col-row):
* lisp/term/pc-win.el (x-list-fonts):
* lisp/textmodes/texinfmt.el (texinfmt-version):
* lisp/textmodes/texnfo-upd.el (texinfo-master-menu):
* lisp/time.el (display-time-world-list):
* lisp/tmm.el (tmm-menubar):
* src/buffer.c (syms_of_buffer):
* src/fileio.c (syms_of_fileio):
Omit unnecessary and confusing backslash before quote.
* lisp/erc/erc.el (erc-cmd-LASTLOG):
* lisp/progmodes/flymake.el (flymake-fix-file-name):
* lisp/progmodes/vhdl-mode.el (vhdl-in-extended-identifier-p):
Fix string that was intended to escape a backslash and not a quote.

9 years ago* leim/Makefile.in, lisp/Makefile.in: Add missing EXEEXT definition.
Glenn Morris [Tue, 30 Jun 2015 20:20:39 +0000 (16:20 -0400)]
* leim/Makefile.in, lisp/Makefile.in: Add missing EXEEXT definition.

9 years ago* lisp/Makefile.in (MH_E_SRC, TRAMP_SRC, CAL_SRC):
Glenn Morris [Tue, 30 Jun 2015 19:23:07 +0000 (15:23 -0400)]
* lisp/Makefile.in (MH_E_SRC, TRAMP_SRC, CAL_SRC):

Replace hard-coded lists with wildcard + filter-out.

9 years ago* configure.ac (system-configuration-features): Add X11, NS.
Glenn Morris [Tue, 30 Jun 2015 19:01:18 +0000 (15:01 -0400)]
* configure.ac (system-configuration-features): Add X11, NS.

9 years agoImprove reproducibility of generated loaddefs file.
Glenn Morris [Tue, 30 Jun 2015 18:59:04 +0000 (14:59 -0400)]
Improve reproducibility of generated loaddefs file.

* lisp/emacs-lisp/autoload.el (autoload-generate-file-autoloads):
Make the return value the modtime of the input file (if no autoloads).
(update-directory-autoloads): In the "no autoloads" section,
use "most recent modtime" rather than "current time".

; http://lists.gnu.org/archive/html/emacs-devel/2015-06/msg00688.html

9 years ago* lisp/emacs-lisp/package.el (package--remove-hidden): Fix logic
Artur Malabarba [Tue, 30 Jun 2015 18:19:30 +0000 (19:19 +0100)]
* lisp/emacs-lisp/package.el (package--remove-hidden): Fix logic

(Bug#20930)

9 years ago; * src/doc.c: Add a 'coding' cookie.
Eli Zaretskii [Tue, 30 Jun 2015 17:13:35 +0000 (20:13 +0300)]
; * src/doc.c: Add a 'coding' cookie.

9 years ago* doc/lispref/sequences.texi: Add documentation for seq-min and seq-max.
Nicolas Petton [Tue, 30 Jun 2015 16:36:40 +0000 (18:36 +0200)]
* doc/lispref/sequences.texi: Add documentation for seq-min and seq-max.

9 years agoAdd seq-min and seq-max
Nicolas Petton [Tue, 30 Jun 2015 16:29:32 +0000 (18:29 +0200)]
Add seq-min and seq-max

Bump version number.

* lisp/emacs-lisp/seq.el (seq-min, seq-max): New functions.
* test/automated/seq-tests.el: Add tests for seq-min and seq-max.

9 years agoMake sure sleep-for always delays for as long as it's told
Eli Zaretskii [Tue, 30 Jun 2015 16:09:02 +0000 (19:09 +0300)]
Make sure sleep-for always delays for as long as it's told

* src/dispnew.c (Fsleep_for): Call wait_reading_process_output in
a loop, to ensure we always wait exactly the required amount of
time.  (Bug#15990)

9 years agoFix pointer signedness glitch
Paul Eggert [Tue, 30 Jun 2015 16:06:21 +0000 (09:06 -0700)]
Fix pointer signedness glitch

* src/font.c (font_load_for_lface): Use SSDATA, not SDATA.

9 years agoDon't block changes in mouse pointer inside 'track-mouse'
Eli Zaretskii [Tue, 30 Jun 2015 15:59:21 +0000 (18:59 +0300)]
Don't block changes in mouse pointer inside 'track-mouse'

* etc/NEWS:
* doc/lispref/frames.texi (Mouse Tracking): Document the special
effect of setting 'track-mouse' to 'dragging'.

* lisp/textmodes/artist.el (artist-mouse-draw-continously):
* lisp/ruler-mode.el (ruler-mode-mouse-drag-any-column-iteration):
* lisp/mouse-drag.el (mouse-drag-throw):
* lisp/mouse.el (mouse-drag-line): Set 'track-mouse' to 'dragging'
to avoid changes in the shape of the mouse pointer.

* src/xdisp.c (define_frame_cursor1): Don't change the mouse
pointer shape when do_mouse_tracking has the value of 'dragging',
not just any non-nil value.  (Bug#20934)
(syms_of_xdisp): DEFSYM 'dragging'.

9 years ago* lisp/isearch.el (isearch-toggle-word): Fix toggle
Artur Malabarba [Tue, 30 Jun 2015 14:33:39 +0000 (15:33 +0100)]
* lisp/isearch.el (isearch-toggle-word): Fix toggle

9 years ago* lisp/emacs-lisp/package.el (package-compute-transaction):
Artur Malabarba [Tue, 30 Jun 2015 09:47:25 +0000 (10:47 +0100)]
* lisp/emacs-lisp/package.el (package-compute-transaction):

Don't assume version sorting.

9 years ago* lisp/emacs-lisp/package.el (package--save-selected-packages):
Artur Malabarba [Tue, 30 Jun 2015 09:17:55 +0000 (10:17 +0100)]
* lisp/emacs-lisp/package.el (package--save-selected-packages):

Don't save before init time, to avoid overwriting configurations.
(Bug#20855)

9 years agoAdd cross references.
Xue Fuqiao [Tue, 30 Jun 2015 08:02:56 +0000 (16:02 +0800)]
Add cross references.

* doc/emacs/display.texi (Standard Faces, Fringes): Add cross
references.

9 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Katsumi Yamaoka [Tue, 30 Jun 2015 03:47:18 +0000 (03:47 +0000)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

9 years agocfengine.el: update for the upcoming CFEngine 3.7 release
Ted Zlatanov [Tue, 30 Jun 2015 03:07:30 +0000 (23:07 -0400)]
cfengine.el: update for the upcoming CFEngine 3.7 release

Update for the upcoming CFEngine 3.7 release: support macros and
quoted context strings; reformat JSON; indent promise attributes 2
units by default; give function parameter descriptions in the eldoc
glue.
* cfengine.el: Update version and docs and fix name.  Autoload
`json-pretty-print'.  Support new features in 3.7.
(cfengine-parameters-indent): Set default promise attribute indent to
2 more than the promise itself.
(cfengine3-macro-regex): New variable to match the new macro syntax.
(cfengine3-font-lock-keywords): Use it to highlight macros.
(cfengine3-indent-line): Use it to indent macros to column 0.
(cfengine3-class-selector-regex): Update for the new quoted strings
format.
(cfengine3-reformat-json-string): New function to reformat a JSON
string using `json-pretty-print'.
(cfengine3-format-function-docstring): Use function parameter
description if it's provided by the cf-promises syntax dump.

9 years agoCygwin emacsclient handles w32 file names
Michael R. Mauger [Tue, 30 Jun 2015 00:58:22 +0000 (20:58 -0400)]
Cygwin emacsclient handles w32 file names

9 years ago* lisp/isearch.el (isearch-exit): Don't call isearch-done twice (bug#20925).
Katsumi Yamaoka [Mon, 29 Jun 2015 23:13:45 +0000 (23:13 +0000)]
* lisp/isearch.el (isearch-exit): Don't call isearch-done twice (bug#20925).

9 years ago* doc/lispref/text.texi (Sticky Properties): Improve wording.
Eli Zaretskii [Mon, 29 Jun 2015 17:36:53 +0000 (20:36 +0300)]
* doc/lispref/text.texi (Sticky Properties): Improve wording.

(Bug#20924)

9 years agoAllow font names that end in "-NN", where NN is a number
Eli Zaretskii [Mon, 29 Jun 2015 16:10:20 +0000 (19:10 +0300)]
Allow font names that end in "-NN", where NN is a number

* src/font.c (font_load_for_lface): If the font-spec didn't match
any available fonts, try again without interpreting trailing "-NN"
as the font size.  For the description of the original problem, see
http://lists.gnu.org/archive/html/help-emacs-windows/2015-06/msg00001.html

9 years ago.gdbinit followup to changes in !USE_LSB_TAG
Eli Zaretskii [Mon, 29 Jun 2015 15:57:25 +0000 (18:57 +0300)]
.gdbinit followup to changes in !USE_LSB_TAG

* src/.gdbinit (xgetsym): Don't left-shift $ptr even under
!USE_LSB_TAG, as Emacs no longer does.

9 years ago* lisp/calc-store.el (calc-insert-permanent-variable): Heed case.
Wolfgang Jenkner [Mon, 29 Jun 2015 12:26:29 +0000 (14:26 +0200)]
* lisp/calc-store.el (calc-insert-permanent-variable): Heed case.

Otherwise `s p' of f and F will stomp on each other's value.  (Bug#20916)

9 years ago* lisp/emacs-lisp/tabulated-list.el (tabulated-list-print):
Artur Malabarba [Mon, 29 Jun 2015 09:07:24 +0000 (10:07 +0100)]
* lisp/emacs-lisp/tabulated-list.el (tabulated-list-print):

Don't block remember-pos if buffer isn't displayed.  (Bug#20921)

9 years ago* package.el (describe-package): Use symbol-at-point as additional guess
Nicolas Richard [Mon, 29 Jun 2015 07:08:47 +0000 (09:08 +0200)]
* package.el (describe-package): Use symbol-at-point as additional guess

9 years ago* package.el (describe-package): Convert the guess to a string
Nicolas Richard [Mon, 29 Jun 2015 07:07:04 +0000 (09:07 +0200)]
* package.el (describe-package): Convert the guess to a string

9 years agoapropos-library quoting fix
Paul Eggert [Sun, 28 Jun 2015 20:24:20 +0000 (13:24 -0700)]
apropos-library quoting fix

* lisp/apropos.el (apropos-library): Quote library consistently
with the rest of the quoting used by apropos.

9 years agoClarify interpreter-mode-alist doc
Paul Eggert [Sun, 28 Jun 2015 20:23:04 +0000 (13:23 -0700)]
Clarify interpreter-mode-alist doc

* lisp/files.el (interpreter-mode-alist):
Reword to avoid confusing quoting that wasn't working anyway.

9 years agoSync with Tramp 2.2.12
Michael Albinus [Sun, 28 Jun 2015 18:51:54 +0000 (20:51 +0200)]
Sync with Tramp 2.2.12

* doc/misc/trampver.texi:
* lisp/net/trampver.el: Update release number.

* test/automated/tramp-tests.el (tramp-test13-make-directory):
Fix cleanup.

9 years ago; * src/w32proc.c (w32_executable_type): Fix a typo in a comment.
Eli Zaretskii [Sun, 28 Jun 2015 15:29:46 +0000 (18:29 +0300)]
; * src/w32proc.c (w32_executable_type): Fix a typo in a comment.

9 years ago; Auto-commit of ChangeLog files.
Glenn Morris [Sun, 28 Jun 2015 10:24:02 +0000 (06:24 -0400)]
; Auto-commit of ChangeLog files.

9 years ago* lisp/isearch.el (isearch-mode): Don't char-fold regexps
Artur Malabarba [Sun, 28 Jun 2015 08:20:47 +0000 (09:20 +0100)]
* lisp/isearch.el (isearch-mode): Don't char-fold regexps

(bug#20913)

9 years agoBind grep-highlight-matches around the rgrep call
Dmitry Gutov [Sun, 28 Jun 2015 01:38:11 +0000 (04:38 +0300)]
Bind grep-highlight-matches around the rgrep call

* lisp/progmodes/grep.el (zrgrep): Bind grep-highlight-matches
around the rgrep call (bug#20728).

9 years agoPut "--color" before the other options in grep-command
Dmitry Gutov [Sun, 28 Jun 2015 01:29:03 +0000 (04:29 +0300)]
Put "--color" before the other options in grep-command

* lisp/progmodes/grep.el (grep-compute-defaults): Put "--color"
before the other options in grep-command (bug#20912).

9 years agoAdd --color Grep option to the command dynamically
Dmitry Gutov [Fri, 26 Jun 2015 17:21:50 +0000 (20:21 +0300)]
Add --color Grep option to the command dynamically

* lisp/progmodes/grep.el (grep-template, grep-find-template):
Update the description for <C>.  (Bug#20728)
(grep-compute-defaults): Don't add the --color option to
grep-options.  Only add it to grep-command.
(grep-expand-keywords): Expand the env value opts into <C>.
(grep-expand-template): Replace cf in the env with the opts list,
that can include -i and --color.

* lisp/progmodes/xref.el (xref-collect-matches): Do not remove
"--color=always" from the template, because we don't have to.

9 years agocl-extra fixes for most-negative-fixnum
Paul Eggert [Sat, 27 Jun 2015 19:16:51 +0000 (12:16 -0700)]
cl-extra fixes for most-negative-fixnum

* lisp/emacs-lisp/cl-extra.el (cl-gcd, cl-lcm, cl-random):
Don't mishandle an argument equal to most-negative-fixnum,
whose absolute value equals itself.
(cl-gcd, cl-lcm): Use dolist rather than doing it by hand.

9 years agoInitialize cl--gensym-counter to 0
Paul Eggert [Sat, 27 Jun 2015 17:57:02 +0000 (10:57 -0700)]
Initialize cl--gensym-counter to 0

Previously it was initialized to a random value, which made it
harder to reproduce earlier Emacs runs.  The need for a random
value went away when Emacs introduced and used the #: syntax for
uninterned symbols (Bug#20862).
* doc/misc/cl.texi (Creating Symbols, Common Lisp Compatibility):
Document that cl--gensym-counter now starts with 0.
* lisp/emacs-lisp/cl-lib.el (cl--gensym-counter): Remove.
(cl--random-time): Move to near only remaining use.
* lisp/emacs-lisp/cl-macs.el (cl--gensym-counter): Initialize to 0.

9 years agoImprove docstring for macroexp-let2
Paul Eggert [Sat, 27 Jun 2015 15:34:44 +0000 (08:34 -0700)]
Improve docstring for macroexp-let2

* lisp/emacs-lisp/macroexp.el (macroexp-let2):
Improve as per suggestion by RMS in:
http://lists.gnu.org/archive/html/emacs-devel/2015-06/msg00621.html
Also, rename args to match new doc string.

9 years agoFix VC test suite on MS-Windows
Eli Zaretskii [Sat, 27 Jun 2015 11:27:23 +0000 (14:27 +0300)]
Fix VC test suite on MS-Windows

* lisp/vc/vc-svn.el (vc-svn-create-repo): Make sure the file: URL
always starts with 3 slashes after the colon.

* test/automated/vc-tests.el (vc-test--create-repo-function): Use
'w32-application-type' to invoke CVS on MS-Windows with properly
formatted CVSROOT directory name.

9 years agoAdd a new function w32-application-type
Eli Zaretskii [Sat, 27 Jun 2015 10:48:26 +0000 (13:48 +0300)]
Add a new function w32-application-type

* src/w32proc.c (Fw32_application_type): New function.
; * etc/NEWS: Mention w32-application-type.

9 years agoAvoid error in TLS connections due to incorrect format
Eli Zaretskii [Sat, 27 Jun 2015 08:00:38 +0000 (11:00 +0300)]
Avoid error in TLS connections due to incorrect format

* src/gnutls.c (Fgnutls_boot): Use the %x conversion specifier in
the call to 'error', instead of the unsupported %u.  Reported by
lo2net <fangtao0901@gmail.com>.  (Bug#20908)