aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2017-09-25 11:16:05 -0700
committerPaul Eggert2017-09-25 11:16:05 -0700
commit1bb8ac0c02d91c64ae14e37680fc90ff899da2b4 (patch)
treef8a36a8338b59b5ffeaca8b3049c10e385ddf611
parent00a86a558ed3cde443b41c0e24934f61dea99236 (diff)
parent48d39c39e822a792f7c20254c3d9f94aa298be31 (diff)
downloademacs-1bb8ac0c02d91c64ae14e37680fc90ff899da2b4.tar.gz
emacs-1bb8ac0c02d91c64ae14e37680fc90ff899da2b4.zip
Merge from origin/emacs-26
48d39c39e8 Search for Syntax section when viewing MDN 9d101376b4 Allow smerge-keep-current to work for empty hunks 13aba24add Call vc-setup-buffer in vc-git-log-{in,out}going 1d599df5e0 Fix last change to textmodes/page-ext.el a726e09a9a * test/src/lcms-tests.el (lcms-cri-cam02-ucs): Skip if lcm...
-rw-r--r--lisp/textmodes/css-mode.el2
-rw-r--r--lisp/textmodes/page-ext.el2
-rw-r--r--lisp/vc/smerge-mode.el2
-rw-r--r--lisp/vc/vc-git.el2
-rw-r--r--test/lisp/vc/smerge-mode-tests.el34
-rw-r--r--test/src/lcms-tests.el1
6 files changed, 41 insertions, 2 deletions
diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el
index dde9e6a8d91..ce9bbf47e77 100644
--- a/lisp/textmodes/css-mode.el
+++ b/lisp/textmodes/css-mode.el
@@ -1578,7 +1578,7 @@ to look up will be substituted there."
1578 (goto-char (point-min)) 1578 (goto-char (point-min))
1579 (let ((window (get-buffer-window (current-buffer) 'visible))) 1579 (let ((window (get-buffer-window (current-buffer) 'visible)))
1580 (when window 1580 (when window
1581 (when (re-search-forward "^Summary" nil 'move) 1581 (when (re-search-forward "^\\(Summary\\|Syntax\\)" nil 'move)
1582 (beginning-of-line) 1582 (beginning-of-line)
1583 (set-window-start window (point)))))) 1583 (set-window-start window (point))))))
1584 1584
diff --git a/lisp/textmodes/page-ext.el b/lisp/textmodes/page-ext.el
index d744bd2cf01..94b68decfb7 100644
--- a/lisp/textmodes/page-ext.el
+++ b/lisp/textmodes/page-ext.el
@@ -583,6 +583,7 @@ directory for only the accessible portion of the buffer."
583 (with-output-to-temp-buffer pages-directory-buffer 583 (with-output-to-temp-buffer pages-directory-buffer
584 (with-current-buffer standard-output 584 (with-current-buffer standard-output
585 (pages-directory-mode) 585 (pages-directory-mode)
586 (setq buffer-read-only nil)
586 (insert 587 (insert
587 "==== Pages Directory: use `C-c C-c' to go to page under cursor. ====" ?\n) 588 "==== Pages Directory: use `C-c C-c' to go to page under cursor. ====" ?\n)
588 (setq pages-buffer pages-target-buffer) 589 (setq pages-buffer pages-target-buffer)
@@ -631,6 +632,7 @@ directory for only the accessible portion of the buffer."
631 ))))) 632 )))))
632 633
633 (set-buffer standard-output) 634 (set-buffer standard-output)
635 (setq buffer-read-only t)
634 ;; Put positions in increasing order to go with buffer. 636 ;; Put positions in increasing order to go with buffer.
635 (setq pages-pos-list (nreverse pages-pos-list)) 637 (setq pages-pos-list (nreverse pages-pos-list))
636 (if (called-interactively-p 'interactive) 638 (if (called-interactively-p 'interactive)
diff --git a/lisp/vc/smerge-mode.el b/lisp/vc/smerge-mode.el
index 112a9bc5247..91be89b5dc1 100644
--- a/lisp/vc/smerge-mode.el
+++ b/lisp/vc/smerge-mode.el
@@ -725,7 +725,7 @@ this keeps \"UUU\"."
725 (let ((i 3)) 725 (let ((i 3))
726 (while (or (not (match-end i)) 726 (while (or (not (match-end i))
727 (< (point) (match-beginning i)) 727 (< (point) (match-beginning i))
728 (>= (point) (match-end i))) 728 (> (point) (match-end i)))
729 (cl-decf i)) 729 (cl-decf i))
730 i)) 730 i))
731 731
diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el
index 095f184ddf1..9d7a4d49b8b 100644
--- a/lisp/vc/vc-git.el
+++ b/lisp/vc/vc-git.el
@@ -1035,6 +1035,7 @@ If LIMIT is non-nil, show no more than this many entries."
1035 1035
1036(defun vc-git-log-outgoing (buffer remote-location) 1036(defun vc-git-log-outgoing (buffer remote-location)
1037 (interactive) 1037 (interactive)
1038 (vc-setup-buffer buffer)
1038 (vc-git-command 1039 (vc-git-command
1039 buffer 'async nil 1040 buffer 'async nil
1040 "log" 1041 "log"
@@ -1048,6 +1049,7 @@ If LIMIT is non-nil, show no more than this many entries."
1048 1049
1049(defun vc-git-log-incoming (buffer remote-location) 1050(defun vc-git-log-incoming (buffer remote-location)
1050 (interactive) 1051 (interactive)
1052 (vc-setup-buffer buffer)
1051 (vc-git-command nil 0 nil "fetch") 1053 (vc-git-command nil 0 nil "fetch")
1052 (vc-git-command 1054 (vc-git-command
1053 buffer 'async nil 1055 buffer 'async nil
diff --git a/test/lisp/vc/smerge-mode-tests.el b/test/lisp/vc/smerge-mode-tests.el
new file mode 100644
index 00000000000..204a4b93ab5
--- /dev/null
+++ b/test/lisp/vc/smerge-mode-tests.el
@@ -0,0 +1,34 @@
1;; Copyright (C) 2017 Free Software Foundation, Inc
2
3;; Maintainer: emacs-devel@gnu.org
4
5;; This file is part of GNU Emacs.
6
7;; GNU Emacs is free software: you can redistribute it and/or modify
8;; it under the terms of the GNU General Public License as published by
9;; the Free Software Foundation, either version 3 of the License, or
10;; (at your option) any later version.
11
12;; GNU Emacs is distributed in the hope that it will be useful,
13;; but WITHOUT ANY WARRANTY; without even the implied warranty of
14;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15;; GNU General Public License for more details.
16
17;; You should have received a copy of the GNU General Public License
18;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
19
20;;; Code:
21
22(require 'smerge-mode)
23
24(ert-deftest smerge-mode-test-empty-hunk ()
25 "Regression test for bug #25555"
26 (with-temp-buffer
27 (insert "<<<<<<< one\n")
28 (save-excursion
29 (insert "=======\nLLL\n>>>>>>> end\n"))
30 (smerge-mode)
31 (smerge-keep-current)
32 (should (equal (buffer-substring (point-min) (point-max)) ""))))
33
34(provide 'smerge-mode-tests)
diff --git a/test/src/lcms-tests.el b/test/src/lcms-tests.el
index 962902eb100..3d0942c8d15 100644
--- a/test/src/lcms-tests.el
+++ b/test/src/lcms-tests.el
@@ -51,6 +51,7 @@ B is considered the exact value."
51 51
52(ert-deftest lcms-cri-cam02-ucs () 52(ert-deftest lcms-cri-cam02-ucs ()
53 "Test use of `lcms-cam02-ucs'." 53 "Test use of `lcms-cam02-ucs'."
54 (skip-unless (featurep 'lcms2))
54 (should-error (lcms-cam02-ucs '(0 0 0) '(0 0 0) "error")) 55 (should-error (lcms-cam02-ucs '(0 0 0) '(0 0 0) "error"))
55 (should-error (lcms-cam02-ucs '(0 0 0) 'error)) 56 (should-error (lcms-cam02-ucs '(0 0 0) 'error))
56 (should-not 57 (should-not