1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-24 06:20:43 -08:00

Merge from origin/emacs-26

42c8768 Fix .gdbinit following lisp.h changes
720322a ; Spelling fixes
617c556 * lisp/simple.el (shell-command): Doc fixes.
1faade8 Fix marker adjustment for undo (Bug#29118)
This commit is contained in:
Glenn Morris 2017-11-20 13:08:34 -05:00
commit 93a4953463
6 changed files with 28 additions and 28 deletions

View file

@ -6941,7 +6941,7 @@
* test/lisp/vc/ediff-ptch-tests.el (ediff-ptch-test-bug26084): * test/lisp/vc/ediff-ptch-tests.el (ediff-ptch-test-bug26084):
Add comments to explain the test logic. Add comments to explain the test logic.
Pass '--binary' option to 'patch' program in windows environments. Pass '--binary' option to 'patch' program in windows environments.
Check explicitely that a backup is created before compare file contents. Check explicitly that a backup is created before compare file contents.
* test/lisp/dired-tests.el (dired-test-bug25609): * test/lisp/dired-tests.el (dired-test-bug25609):
Declare variable 'dired-dwim-target' right before the test. Declare variable 'dired-dwim-target' right before the test.
@ -13221,7 +13221,7 @@
Remove Emacs 23 compat code from Tramp Remove Emacs 23 compat code from Tramp
* doc/misc/tramp.texi (Remote processes): Don't mention * doc/misc/tramp.texi (Remote processes): Don't mention
Emacs 24 explicitely. Emacs 24 explicitly.
(Frequently Asked Questions): Remove Emacs 23 from (Frequently Asked Questions): Remove Emacs 23 from
compatibility list. compatibility list.

View file

@ -597,7 +597,7 @@ the Perl source to be checked as its standard input."
"Perl backend for Flymake. Launches "Perl backend for Flymake. Launches
`perl-flymake-command' (which see) and passes to its standard `perl-flymake-command' (which see) and passes to its standard
input the contents of the current buffer. The output of this input the contents of the current buffer. The output of this
command is analysed for error and warning messages." command is analyzed for error and warning messages."
(unless (executable-find (car perl-flymake-command)) (unless (executable-find (car perl-flymake-command))
(error "Cannot find a suitable checker")) (error "Cannot find a suitable checker"))

View file

@ -2268,7 +2268,7 @@ the Ruby source to be checked as its standard input."
"Ruby backend for Flymake. Launches "Ruby backend for Flymake. Launches
`ruby-flymake-command' (which see) and passes to its standard `ruby-flymake-command' (which see) and passes to its standard
input the contents of the current buffer. The output of this input the contents of the current buffer. The output of this
command is analysed for error and warning messages." command is analyzed for error and warning messages."
(unless (executable-find (car ruby-flymake-command)) (unless (executable-find (car ruby-flymake-command))
(error "Cannot find a suitable checker")) (error "Cannot find a suitable checker"))

View file

@ -2570,10 +2570,10 @@ Return what remains of the list."
(setq did-apply t))) (setq did-apply t)))
;; Element (STRING . POS) means STRING was deleted. ;; Element (STRING . POS) means STRING was deleted.
(`(,(and string (pred stringp)) . ,(and pos (pred integerp))) (`(,(and string (pred stringp)) . ,(and pos (pred integerp)))
(when (let ((apos (abs pos))) (let ((valid-marker-adjustments nil)
(or (< apos (point-min)) (> apos (point-max)))) (apos (abs pos)))
(error "Changes to be undone are outside visible portion of buffer")) (when (or (< apos (point-min)) (> apos (point-max)))
(let (valid-marker-adjustments) (error "Changes to be undone are outside visible portion of buffer"))
;; Check that marker adjustments which were recorded ;; Check that marker adjustments which were recorded
;; with the (STRING . POS) record are still valid, ie ;; with the (STRING . POS) record are still valid, ie
;; the markers haven't moved. We check their validity ;; the markers haven't moved. We check their validity
@ -2584,7 +2584,7 @@ Return what remains of the list."
(let* ((marker-adj (pop list)) (let* ((marker-adj (pop list))
(m (car marker-adj))) (m (car marker-adj)))
(and (eq (marker-buffer m) (current-buffer)) (and (eq (marker-buffer m) (current-buffer))
(= pos m) (= apos m)
(push marker-adj valid-marker-adjustments)))) (push marker-adj valid-marker-adjustments))))
;; Insert string and adjust point ;; Insert string and adjust point
(if (< pos 0) (if (< pos 0)
@ -3398,10 +3398,10 @@ The optional second argument OUTPUT-BUFFER, if non-nil,
says to put the output in some other buffer. says to put the output in some other buffer.
If OUTPUT-BUFFER is a buffer or buffer name, erase that buffer If OUTPUT-BUFFER is a buffer or buffer name, erase that buffer
and insert the output there; a non-nil value of and insert the output there; a non-nil value of
`shell-command-dont-erase-buffer' prevent to erase the buffer. `shell-command-dont-erase-buffer' prevents the buffer from being
If OUTPUT-BUFFER is not a buffer and not nil, insert the output erased. If OUTPUT-BUFFER is not a buffer and not nil, insert the
in current buffer after point leaving mark after it. output in current buffer after point leaving mark after it. This
This cannot be done asynchronously. cannot be done asynchronously.
If the command terminates without error, but generates output, If the command terminates without error, but generates output,
and you did not specify \"insert it in the current buffer\", and you did not specify \"insert it in the current buffer\",
@ -3409,7 +3409,7 @@ the output can be displayed in the echo area or in its buffer.
If the output is short enough to display in the echo area If the output is short enough to display in the echo area
\(determined by the variable `max-mini-window-height' if \(determined by the variable `max-mini-window-height' if
`resize-mini-windows' is non-nil), it is shown there. `resize-mini-windows' is non-nil), it is shown there.
Otherwise,the buffer containing the output is displayed. Otherwise, the buffer containing the output is displayed.
If there is output and an error, and you did not specify \"insert it If there is output and an error, and you did not specify \"insert it
in the current buffer\", a message about the error goes at the end in the current buffer\", a message about the error goes at the end

View file

@ -78,7 +78,7 @@ end
# Access the name of a symbol # Access the name of a symbol
define xsymname define xsymname
xgetsym $arg0 xgetsym $arg0
set $symname = $ptr->name set $symname = $ptr->u.s.name
end end
# Set up something to print out s-expressions. # Set up something to print out s-expressions.
@ -376,7 +376,7 @@ define pwinx
xgetptr $w->buffer xgetptr $w->buffer
set $tem = (struct buffer *) $ptr set $tem = (struct buffer *) $ptr
xgetptr $tem->name_ xgetptr $tem->name_
printf "%s", ((struct Lisp_String *) $ptr)->data printf "%s", ((struct Lisp_String *) $ptr)->u.s.data
printf "\n" printf "\n"
xgetptr $w->start xgetptr $w->start
set $tem = (struct Lisp_Marker *) $ptr set $tem = (struct Lisp_Marker *) $ptr
@ -504,7 +504,7 @@ define pgx
xgettype ($g.object) xgettype ($g.object)
if ($type == Lisp_String) if ($type == Lisp_String)
xgetptr $g.object xgetptr $g.object
printf " str=0x%x[%d]", ((struct Lisp_String *)$ptr)->data, $g.charpos printf " str=0x%x[%d]", ((struct Lisp_String *)$ptr)->u.s.data, $g.charpos
else else
printf " pos=%d", $g.charpos printf " pos=%d", $g.charpos
end end
@ -896,7 +896,7 @@ define xbuffer
xgetptr $ xgetptr $
print (struct buffer *) $ptr print (struct buffer *) $ptr
xgetptr $->name_ xgetptr $->name_
output ((struct Lisp_String *) $ptr)->data output ((struct Lisp_String *) $ptr)->u.s.data
echo \n echo \n
end end
document xbuffer document xbuffer
@ -935,7 +935,7 @@ end
define xcar define xcar
xgetptr $ xgetptr $
xgettype $ xgettype $
print/x ($type == Lisp_Cons ? ((struct Lisp_Cons *) $ptr)->car : 0) print/x ($type == Lisp_Cons ? ((struct Lisp_Cons *) $ptr)->u.s.car : 0)
end end
document xcar document xcar
Assume that $ is an Emacs Lisp pair and print its car. Assume that $ is an Emacs Lisp pair and print its car.
@ -944,7 +944,7 @@ end
define xcdr define xcdr
xgetptr $ xgetptr $
xgettype $ xgettype $
print/x ($type == Lisp_Cons ? ((struct Lisp_Cons *) $ptr)->u.cdr : 0) print/x ($type == Lisp_Cons ? ((struct Lisp_Cons *) $ptr)->u.s.u.cdr : 0)
end end
document xcdr document xcdr
Assume that $ is an Emacs Lisp pair and print its cdr. Assume that $ is an Emacs Lisp pair and print its cdr.
@ -957,9 +957,9 @@ define xlist
set $nil = $ptr set $nil = $ptr
set $i = 0 set $i = 0
while $cons != $nil && $i < 10 while $cons != $nil && $i < 10
p/x $cons->car p/x $cons->u.s.car
xpr xpr
xgetptr $cons->u.cdr xgetptr $cons->u.s.u.cdr
set $cons = (struct Lisp_Cons *) $ptr set $cons = (struct Lisp_Cons *) $ptr
set $i = $i + 1 set $i = $i + 1
printf "---\n" printf "---\n"
@ -1072,13 +1072,13 @@ Print $ as a lisp object of any type.
end end
define xprintstr define xprintstr
set $data = (char *) $arg0->data set $data = (char *) $arg0->u.s.data
set $strsize = ($arg0->size_byte < 0) ? ($arg0->size & ~ARRAY_MARK_FLAG) : $arg0->size_byte set $strsize = ($arg0->u.s.size_byte < 0) ? ($arg0->u.s.size & ~ARRAY_MARK_FLAG) : $arg0->u.s.size_byte
# GDB doesn't like zero repetition counts # GDB doesn't like zero repetition counts
if $strsize == 0 if $strsize == 0
output "" output ""
else else
output ($arg0->size > 1000) ? 0 : ($data[0])@($strsize) output ($arg0->u.s.size > 1000) ? 0 : ($data[0])@($strsize)
end end
end end
@ -1255,7 +1255,7 @@ commands
xsymname globals.f_Vinitial_window_system xsymname globals.f_Vinitial_window_system
xgetptr $symname xgetptr $symname
set $tem = (struct Lisp_String *) $ptr set $tem = (struct Lisp_String *) $ptr
set $tem = (char *) $tem->data set $tem = (char *) $tem->u.s.data
# If we are running in synchronous mode, we want a chance to look # If we are running in synchronous mode, we want a chance to look
# around before Emacs exits. Perhaps we should put the break # around before Emacs exits. Perhaps we should put the break
# somewhere else instead... # somewhere else instead...

View file

@ -3070,7 +3070,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
(should (file-selinux-context tmp-name3)) (should (file-selinux-context tmp-name3))
;; We cannot expect that copying over file system ;; We cannot expect that copying over file system
;; boundaries keeps SELinux context. So we copy it ;; boundaries keeps SELinux context. So we copy it
;; explicitely. ;; explicitly.
(should (should
(set-file-selinux-context (set-file-selinux-context
tmp-name3 (file-selinux-context tmp-name1))) tmp-name3 (file-selinux-context tmp-name1)))
@ -3104,7 +3104,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
(should (file-selinux-context tmp-name1)) (should (file-selinux-context tmp-name1))
;; We cannot expect that copying over file system ;; We cannot expect that copying over file system
;; boundaries keeps SELinux context. So we copy it ;; boundaries keeps SELinux context. So we copy it
;; explicitely. ;; explicitly.
(should (should
(set-file-selinux-context (set-file-selinux-context
tmp-name1 (file-selinux-context tmp-name3))) tmp-name1 (file-selinux-context tmp-name3)))