aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorJohn Wiegley2016-01-11 22:48:07 -0800
committerJohn Wiegley2016-01-11 22:48:07 -0800
commit9278e970c5319672a05c7bce6358af0e2794205b (patch)
treeb3a738be931667a47ecd86e36ad6a8359dcac037 /lisp
parenteb0643c74d391ac33168ba64351a2f318c850966 (diff)
parent6ee327d8a10047c1717358cc179ed8d1fb3389eb (diff)
downloademacs-9278e970c5319672a05c7bce6358af0e2794205b.tar.gz
emacs-9278e970c5319672a05c7bce6358af0e2794205b.zip
Merge from origin/emacs-25
6ee327d Add handle_user_signal_hook 47580e0 Avoid writing to purespace 0588be7 Remove unused variable 89e7483 * configure.ac: Find libxml2 headers in Xcode SDK dir on Darwin. 3b95e9c Use posix_openpt instead of openpty on Darwin 86312ff Document support for ':documentation' in Lisp mode c930e75b Document new features of TeX mode 7c83d84 Clarify docs of hscroll in RTL text 4c8f8db Fix rendering of HTML pages that use character composition a8d37ca Avoid some compiler warnings in w32.c ce106f3de Undo ill-advised change be0bba4 Unbreak completion in python-mode buffers
Diffstat (limited to 'lisp')
-rw-r--r--lisp/emacs-lisp/lisp-mode.el9
-rw-r--r--lisp/international/mule-cmds.el2
-rw-r--r--lisp/progmodes/python.el4
-rw-r--r--lisp/progmodes/xref.el2
4 files changed, 13 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el
index 3448b72c3f1..e99f8a55ab1 100644
--- a/lisp/emacs-lisp/lisp-mode.el
+++ b/lisp/emacs-lisp/lisp-mode.el
@@ -488,6 +488,9 @@ This will generate compile-time constants from BINDINGS."
488 "Default expressions to highlight in Lisp modes.") 488 "Default expressions to highlight in Lisp modes.")
489 489
490(defun lisp-string-in-doc-position-p (listbeg startpos) 490(defun lisp-string-in-doc-position-p (listbeg startpos)
491 "Return true if a doc string may occur at STARTPOS inside a list.
492LISTBEG is the position of the start of the innermost list
493containing STARTPOS."
491 (let* ((firstsym (and listbeg 494 (let* ((firstsym (and listbeg
492 (save-excursion 495 (save-excursion
493 (goto-char listbeg) 496 (goto-char listbeg)
@@ -518,6 +521,9 @@ This will generate compile-time constants from BINDINGS."
518 (= (point) startpos)))))) 521 (= (point) startpos))))))
519 522
520(defun lisp-string-after-doc-keyword-p (listbeg startpos) 523(defun lisp-string-after-doc-keyword-p (listbeg startpos)
524 "Return true if `:documentation' symbol ends at STARTPOS inside a list.
525LISTBEG is the position of the start of the innermost list
526containing STARTPOS."
521 (and listbeg ; We are inside a Lisp form. 527 (and listbeg ; We are inside a Lisp form.
522 (save-excursion 528 (save-excursion
523 (goto-char startpos) 529 (goto-char startpos)
@@ -526,6 +532,9 @@ This will generate compile-time constants from BINDINGS."
526 (looking-at ":documentation\\_>")))))) 532 (looking-at ":documentation\\_>"))))))
527 533
528(defun lisp-font-lock-syntactic-face-function (state) 534(defun lisp-font-lock-syntactic-face-function (state)
535 "Return syntactic face function for the position represented by STATE.
536STATE is a `parse-partial-sexp' state, and the returned function is the
537Lisp font lock syntactic face function."
529 (if (nth 3 state) 538 (if (nth 3 state)
530 ;; This might be a (doc)string or a |...| symbol. 539 ;; This might be a (doc)string or a |...| symbol.
531 (let ((startpos (nth 8 state))) 540 (let ((startpos (nth 8 state)))
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index 0904ff93e23..690ea6f7533 100644
--- a/lisp/international/mule-cmds.el
+++ b/lisp/international/mule-cmds.el
@@ -35,8 +35,6 @@
35(defvar dos-codepage) 35(defvar dos-codepage)
36(autoload 'widget-value "wid-edit") 36(autoload 'widget-value "wid-edit")
37 37
38(defvar mac-system-coding-system)
39
40;;; MULE related key bindings and menus. 38;;; MULE related key bindings and menus.
41 39
42(defvar mule-keymap 40(defvar mule-keymap
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 04542cdff3d..c9235129f98 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -3569,7 +3569,9 @@ using that one instead of current buffer's process."
3569 (forward-char (length (match-string-no-properties 0))) 3569 (forward-char (length (match-string-no-properties 0)))
3570 (point)))) 3570 (point))))
3571 (end (point)) 3571 (end (point))
3572 (prompt-boundaries (python-util-comint-last-prompt)) 3572 (prompt-boundaries
3573 (with-current-buffer (process-buffer process)
3574 (python-util-comint-last-prompt)))
3573 (prompt 3575 (prompt
3574 (with-current-buffer (process-buffer process) 3576 (with-current-buffer (process-buffer process)
3575 (when prompt-boundaries 3577 (when prompt-boundaries
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el
index abb9cc6361d..00f348929ef 100644
--- a/lisp/progmodes/xref.el
+++ b/lisp/progmodes/xref.el
@@ -886,7 +886,7 @@ IGNORES is a list of glob patterns."
886 hits))) 886 hits)))
887 (unwind-protect 887 (unwind-protect
888 (cl-mapcan (lambda (hit) (xref--collect-matches hit regexp)) 888 (cl-mapcan (lambda (hit) (xref--collect-matches hit regexp))
889 hits) 889 (nreverse hits))
890 ;; TODO: Same as above. 890 ;; TODO: Same as above.
891 (mapc #'kill-buffer 891 (mapc #'kill-buffer
892 (cl-set-difference (buffer-list) orig-buffers))))) 892 (cl-set-difference (buffer-list) orig-buffers)))))