unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* diff-apply-hunk broken
@ 2004-03-25 17:32 Sam Steingold
  2004-03-25 17:48 ` Stefan Monnier
  2004-03-25 21:53 ` Juri Linkov
  0 siblings, 2 replies; 22+ messages in thread
From: Sam Steingold @ 2004-03-25 17:32 UTC (permalink / raw)
  Cc: monnier

GNU Emacs 21.3.50.1 (i386-msvc-nt5.0.2195)
 of 2004-03-19 on WINSTEINGOLDLAP
--with-msvc (12.00)

Stefan, it appears that your recent patch broke `diff-apply-hunk':

in a modified CVS file, I do C-x v = (vc-diff) and in the resulting
*vc-diff* buffer I do C-c C-a (diff-apply-hunk) to reverse the section
of the diff:

Debugger entered--Lisp error: (buffer-read-only #<buffer io.d.~1.204.~>)
  delete-region(223236 223574)
  (save-current-buffer (set-buffer buf) (goto-char (car pos)) (delete-region (car pos) (cdr pos)) (insert (car new)))
  (with-current-buffer buf (goto-char (car pos)) (delete-region (car pos) (cdr pos)) (insert (car new)))
  (cond ((null line-offset) (error "Can't find the text to patch")) ((and switched ...) (message "(Nothing done)")) (t (with-current-buffer buf ... ... ...) (set-window-point ... ...) (diff-hunk-status-msg line-offset ... nil) (when diff-advance-after-apply-hunk ...)))
  (let* ((--rest--45507 ...) (buf ...) (line-offset ...) (pos ...) (old ...) (new ...) (switched ...)) (if --rest--45507 (signal ... ...)) (cond (... ...) (... ...) (t ... ... ... ...)))
  (progn (let* (... ... ... ... ... ... ...) (if --rest--45507 ...) (cond ... ... ...)))
  (destructuring-bind (buf line-offset pos old new &optional switched) (diff-find-source-location (not reverse) reverse) (cond (... ...) (... ...) (t ... ... ... ...)))
  diff-apply-hunk(nil)
* call-interactively(diff-apply-hunk)


-- 
Sam Steingold (http://www.podval.org/~sds) running w2k
<http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/>
<http://www.mideasttruth.com/> <http://www.honestreporting.com>
Incorrect time syncronization.

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2004-04-08  4:23 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-25 17:32 diff-apply-hunk broken Sam Steingold
2004-03-25 17:48 ` Stefan Monnier
2004-03-28 22:46   ` Stefan Monnier
2004-03-29  8:10     ` Andre Spiegel
2004-03-29 14:19       ` Stefan Monnier
2004-03-30 14:56         ` Andre Spiegel
2004-03-30 23:28           ` Stefan Monnier
2004-03-31 23:08             ` Miles Bader
2004-04-01  6:12               ` Eli Zaretskii
2004-04-01 20:36                 ` Miles Bader
2004-04-01 23:41                 ` Paul Eggert
2004-04-02  7:32                   ` Eli Zaretskii
2004-04-02 23:56                     ` Paul Eggert
2004-04-03  0:45                       ` Stefan Monnier
2004-04-03  1:43                         ` Paul Eggert
2004-04-03  1:48                           ` Stefan Monnier
2004-04-03  6:47                             ` Paul Eggert
2004-04-08  4:23                               ` Juri Linkov
2004-03-25 21:53 ` Juri Linkov
2004-03-25 22:38   ` Sam Steingold
2004-03-27  5:53     ` Richard Stallman
2004-03-26  0:26   ` Kim F. Storm

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).