aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorPaul Eggert2016-06-19 00:47:00 +0200
committerPaul Eggert2016-06-19 00:47:00 +0200
commit68cb71c0928eb8b10487a125192f43923e8bfe7f (patch)
tree053133358af1bd991d60ed6c29590ad84b29fed0 /lisp
parent87c9d8fcec183c8f4933e218c1895b6a0722b1e1 (diff)
parent9ae514a9b7ed368ea97ddefa806079b6423833cb (diff)
downloademacs-68cb71c0928eb8b10487a125192f43923e8bfe7f.tar.gz
emacs-68cb71c0928eb8b10487a125192f43923e8bfe7f.zip
Merge from origin/emacs-25
9ae514a * etc/AUTHORS: Update the AUTHORS file 3ca428e add entries to authors.el 66d556b Fix eldoc-related freezes in python mode d59bcbc Handle mouse leaving initial window in `mouse-set-region' (Bu... 27fe1e4 org.el: Fix bindings of < and > for calendar scrolling a813487 Fix undo boundary in recursive edit (Bug#23632) 1f85b7c Doc fixes re alist-get. (Bug#23548) ba3f206 * lisp/progmodes/python.el (inferior-python-mode): Avoid tabs... 56fa055 * src/syntax.c (syms_of_syntax) <comment-end-can-be-escaped>:... 4c1370a * lisp/help-fns.el (describe-function-1): Fix handling of fil... a3f7ae8 * lisp/emacs-lisp/cl-macs.el (cl-loop): Doc fix re "by". 601b9b2 * doc/misc/cl.texi (Mapping over Sequences): Fix cl-notevery.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/emacs-lisp/cl-macs.el4
-rw-r--r--lisp/help-fns.el3
-rw-r--r--lisp/mouse.el7
-rw-r--r--lisp/org/org.el4
-rw-r--r--lisp/progmodes/python.el40
-rw-r--r--lisp/simple.el4
-rw-r--r--lisp/subr.el10
7 files changed, 57 insertions, 15 deletions
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el
index 121738df576..d2c90c2b809 100644
--- a/lisp/emacs-lisp/cl-macs.el
+++ b/lisp/emacs-lisp/cl-macs.el
@@ -851,9 +851,9 @@ This is compatible with Common Lisp, but note that `defun' and
851 "The Common Lisp `loop' macro. 851 "The Common Lisp `loop' macro.
852Valid clauses include: 852Valid clauses include:
853 For clauses: 853 For clauses:
854 for VAR from/upfrom/downfrom EXPR1 to/upto/downto/above/below EXPR2 by EXPR3 854 for VAR from/upfrom/downfrom EXPR1 to/upto/downto/above/below EXPR2 [by EXPR3]
855 for VAR = EXPR1 then EXPR2 855 for VAR = EXPR1 then EXPR2
856 for VAR in/on/in-ref LIST by FUNC 856 for VAR in/on/in-ref LIST [by FUNC]
857 for VAR across/across-ref ARRAY 857 for VAR across/across-ref ARRAY
858 for VAR being: 858 for VAR being:
859 the elements of/of-ref SEQUENCE [using (index VAR2)] 859 the elements of/of-ref SEQUENCE [using (index VAR2)]
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index e92019f9345..97c8df2298a 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -583,7 +583,8 @@ FILE is the file where FUNCTION was probably defined."
583 (sig-key (if (subrp def) 583 (sig-key (if (subrp def)
584 (indirect-function real-def) 584 (indirect-function real-def)
585 real-def)) 585 real-def))
586 (file-name (find-lisp-object-file-name function def)) 586 (file-name (find-lisp-object-file-name function (if aliased 'defun
587 def)))
587 (pt1 (with-current-buffer (help-buffer) (point))) 588 (pt1 (with-current-buffer (help-buffer) (point)))
588 (beg (if (and (or (byte-code-function-p def) 589 (beg (if (and (or (byte-code-function-p def)
589 (keymapp def) 590 (keymapp def)
diff --git a/lisp/mouse.el b/lisp/mouse.el
index 0be17b48cac..8d727536e05 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -575,7 +575,12 @@ command alters the kill ring or not."
575 (mouse-minibuffer-check click) 575 (mouse-minibuffer-check click)
576 (select-window (posn-window (event-start click))) 576 (select-window (posn-window (event-start click)))
577 (let ((beg (posn-point (event-start click))) 577 (let ((beg (posn-point (event-start click)))
578 (end (posn-point (event-end click))) 578 (end
579 (if (eq (posn-window (event-end click)) (selected-window))
580 (posn-point (event-end click))
581 ;; If the mouse ends up in any other window or on the menu
582 ;; bar, use `window-point' of selected window (Bug#23707).
583 (window-point)))
579 (click-count (event-click-count click))) 584 (click-count (event-click-count click)))
580 (let ((drag-start (terminal-parameter nil 'mouse-drag-start))) 585 (let ((drag-start (terminal-parameter nil 'mouse-drag-start)))
581 (when drag-start 586 (when drag-start
diff --git a/lisp/org/org.el b/lisp/org/org.el
index 1d060f871fe..30ef5e83bdd 100644
--- a/lisp/org/org.el
+++ b/lisp/org/org.el
@@ -16297,10 +16297,10 @@ So these are more for recording a certain time/date."
16297 (message ""))) 16297 (message "")))
16298 (org-defkey map ">" 16298 (org-defkey map ">"
16299 (lambda () (interactive) 16299 (lambda () (interactive)
16300 (org-eval-in-calendar '(scroll-calendar-left 1)))) 16300 (org-eval-in-calendar '(calendar-scroll-left 1))))
16301 (org-defkey map "<" 16301 (org-defkey map "<"
16302 (lambda () (interactive) 16302 (lambda () (interactive)
16303 (org-eval-in-calendar '(scroll-calendar-right 1)))) 16303 (org-eval-in-calendar '(calendar-scroll-right 1))))
16304 (org-defkey map "\C-v" 16304 (org-defkey map "\C-v"
16305 (lambda () (interactive) 16305 (lambda () (interactive)
16306 (org-eval-in-calendar 16306 (org-eval-in-calendar
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index d4089a3ea92..ad69f8779e0 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -2700,6 +2700,7 @@ variable.
2700\(Type \\[describe-mode] in the process buffer for a list of commands.)" 2700\(Type \\[describe-mode] in the process buffer for a list of commands.)"
2701 (when python-shell--parent-buffer 2701 (when python-shell--parent-buffer
2702 (python-util-clone-local-variables python-shell--parent-buffer)) 2702 (python-util-clone-local-variables python-shell--parent-buffer))
2703 (set (make-local-variable 'indent-tabs-mode) nil)
2703 ;; Users can interactively override default values for 2704 ;; Users can interactively override default values for
2704 ;; `python-shell-interpreter' and `python-shell-interpreter-args' 2705 ;; `python-shell-interpreter' and `python-shell-interpreter-args'
2705 ;; when calling `run-python'. This ensures values let-bound in 2706 ;; when calling `run-python'. This ensures values let-bound in
@@ -4313,12 +4314,47 @@ returns will be used. If not FORCE-PROCESS is passed what
4313 (unless (zerop (length docstring)) 4314 (unless (zerop (length docstring))
4314 docstring))))) 4315 docstring)))))
4315 4316
4317(defvar-local python-eldoc-get-doc t
4318 "Non-nil means eldoc should fetch the documentation
4319 automatically. Set to nil by `python-eldoc-function' if
4320 `python-eldoc-function-timeout-permanent' is non-nil and
4321 `python-eldoc-function' times out.")
4322
4323(defcustom python-eldoc-function-timeout 1
4324 "Timeout for `python-eldoc-function' in seconds."
4325 :group 'python
4326 :type 'integer
4327 :version "25.1")
4328
4329(defcustom python-eldoc-function-timeout-permanent t
4330 "Non-nil means that when `python-eldoc-function' times out
4331`python-eldoc-get-doc' will be set to nil"
4332 :group 'python
4333 :type 'boolean
4334 :version "25.1")
4335
4316(defun python-eldoc-function () 4336(defun python-eldoc-function ()
4317 "`eldoc-documentation-function' for Python. 4337 "`eldoc-documentation-function' for Python.
4318For this to work as best as possible you should call 4338For this to work as best as possible you should call
4319`python-shell-send-buffer' from time to time so context in 4339`python-shell-send-buffer' from time to time so context in
4320inferior Python process is updated properly." 4340inferior Python process is updated properly.
4321 (python-eldoc--get-doc-at-point)) 4341
4342If `python-eldoc-function-timeout' seconds elapse before this
4343function returns then if
4344`python-eldoc-function-timeout-permanent' is non-nil
4345`python-eldoc-get-doc' will be set to nil and eldoc will no
4346longer return the documentation at the point automatically.
4347
4348Set `python-eldoc-get-doc' to t to reenable eldoc documentation
4349fetching"
4350 (when python-eldoc-get-doc
4351 (with-timeout (python-eldoc-function-timeout
4352 (if python-eldoc-function-timeout-permanent
4353 (progn
4354 (message "Eldoc echo-area display muted in this buffer, see `python-eldoc-function'")
4355 (setq python-eldoc-get-doc nil))
4356 (message "`python-eldoc-function' timed out, see `python-eldoc-function-timeout'")))
4357 (python-eldoc--get-doc-at-point))))
4322 4358
4323(defun python-eldoc-at-point (symbol) 4359(defun python-eldoc-at-point (symbol)
4324 "Get help on SYMBOL using `help'. 4360 "Get help on SYMBOL using `help'.
diff --git a/lisp/simple.el b/lisp/simple.el
index 6c309293bd4..10b4f392d50 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -2919,9 +2919,7 @@ REASON describes the reason that the boundary is being added; see
2919 2919
2920This list is maintained by `undo-auto--undoable-change' and 2920This list is maintained by `undo-auto--undoable-change' and
2921`undo-auto--boundaries' and can be affected by changes to their 2921`undo-auto--boundaries' and can be affected by changes to their
2922default values. 2922default values.")
2923
2924See also `undo-auto--buffer-undoably-changed'.")
2925 2923
2926(defun undo-auto--add-boundary () 2924(defun undo-auto--add-boundary ()
2927 "Add an `undo-boundary' in appropriate buffers." 2925 "Add an `undo-boundary' in appropriate buffers."
diff --git a/lisp/subr.el b/lisp/subr.el
index 358bfa5e1c0..48ff5013cee 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -600,10 +600,12 @@ Elements of ALIST that are not conses are ignored."
600 alist) 600 alist)
601 601
602(defun alist-get (key alist &optional default remove) 602(defun alist-get (key alist &optional default remove)
603 "Get the value associated to KEY in ALIST. 603 "Return the value associated with KEY in ALIST, using `assq'.
604DEFAULT is the value to return if KEY is not found in ALIST. 604If KEY is not found in ALIST, return DEFAULT.
605REMOVE, if non-nil, means that when setting this element, we should 605
606remove the entry if the new value is `eql' to DEFAULT." 606This is a generalized variable suitable for use with `setf'.
607When using it to set a value, optional argument REMOVE non-nil
608means to remove KEY from ALIST if the new value is `eql' to DEFAULT."
607 (ignore remove) ;;Silence byte-compiler. 609 (ignore remove) ;;Silence byte-compiler.
608 (let ((x (assq key alist))) 610 (let ((x (assq key alist)))
609 (if x (cdr x) default))) 611 (if x (cdr x) default)))