• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/emacs-93/emacs/lisp/

Lines Matching +defs:save +defs:point

173   (define-key ediff-mode-map "ga" 'ediff-jump-to-difference-at-point)
174 (define-key ediff-mode-map "gb" 'ediff-jump-to-difference-at-point)
246 (define-key ediff-mode-map "wa" 'ediff-save-buffer)
247 (define-key ediff-mode-map "wb" 'ediff-save-buffer)
248 (define-key ediff-mode-map "wd" 'ediff-save-buffer)
254 (define-key ediff-mode-map "wc" 'ediff-save-buffer)
255 (define-key ediff-mode-map "gc" 'ediff-jump-to-difference-at-point)
290 (error "Directory %s given as place to save the merge doesn't exist"
353 ;; Note: at some point, we tried to put ancestor buffer here
371 (save-excursion
374 (goto-char (point-min))
414 (ediff-save-protected-variables) ; save variables to be restored on exit
425 '(point-min) '(point-max) ediff-buffer-A)
427 '(point-min) '(point-max) ediff-buffer-B)
429 '(point-min) '(point-max) ediff-buffer-C)))
527 ;; position point in buf A
528 (save-excursion
531 ;; position point in buf B
532 (save-excursion
536 (save-excursion
592 (goto-char (point-min))
595 ;; This executes in control buffer and sets auto-save, visited file name, etc,
605 ;; save before leaving ctl buffer
611 (setq buffer-offer-save t) ; ask before killing buffer
613 (auto-save-mode 1))
623 to these buffers are not saved at this point---the user can do this later,
633 (let ((point-A (ediff-with-current-buffer ediff-buffer-A (point)))
634 ;;(point-B (ediff-with-current-buffer ediff-buffer-B (point)))
721 (ediff-jump-to-difference (ediff-diff-at-point 'A point-A))
797 ediff-jump-to-difference-at-point))
1083 (save-excursion
1084 (save-window-excursion
1626 (if (> end (point-max))
1627 (setq end (point-max)))
1631 ;; at this point, windows are positioned at the beginning of the
1633 (save-excursion
1635 (let ((amount (+ 2 (count-lines (point) end))))
1641 (prev-point 0))
1644 (point)))
1647 (< prev-point (point)))
1648 (setq prev-point (point))
1690 (count-lines (max beg (point-min)) (min end (point-max))) 0))
1843 (defun ediff-jump-to-difference-at-point (arg)
1844 "Go to difference closest to the point in buffer A, B, or C.
1846 command. For instance, if the command was `ga' then the point value in buffer
1848 With a prefix argument, synchronize all files around the current point position
1854 (pt (ediff-with-current-buffer buffer (point)))
1855 (diff-no (ediff-diff-at-point buf-type nil (if arg 'after)))
1858 (ediff-with-current-buffer buffer (point-max))
1874 (if past-last-diff (goto-char (point-max)))
1880 (if past-last-diff (goto-char (point-max)))
1888 (if past-last-diff (goto-char (point-max)))
1899 ;; find region most related to the current point position (or POS, if given)
1903 ;; find the diff after the point. If `before', find the diff before the
1904 ;; point. If the point is inside a diff, return that diff.
1905 (defun ediff-diff-at-point (buf-type &optional pos which-diff)
1916 (setq pos (or pos (point)))
2011 ;; If optional DO-NOT-SAVE is non-nil, do not save the old value of the
2041 (if (or batch-invocation (ediff-test-save-region n to-buf-type))
2057 (ediff-save-diff-region n to-buf-type reg-to-delete))))
2091 ;; is the region to save. It is redundant here, but is passed anyway, for
2093 (defun ediff-save-diff-region (n buf-type reg)
2114 (defun ediff-test-save-region (n buf-type)
2331 (save-restriction
2335 (goto-char (point-min))
2338 (save-restriction
2345 (save-restriction
2372 (save-restriction
2376 (goto-char (point-min))
2379 (save-restriction
2383 (goto-char (point-min))
2387 (save-restriction
2391 (goto-char (point-min))
2688 (defun ediff-maybe-save-and-delete-merge (&optional save-and-continue)
2690 This can also be used to save merge buffer in the middle of an Ediff session.
2692 If the optional SAVE-AND-CONTINUE argument is non-nil, save merge buffer and
2703 (if save-and-continue t ediff-autostore-merges)))
2708 ediff-buffer-C merge-store-file 'show-file save-and-continue))
2714 ediff-buffer-C merge-store-file nil save-and-continue))
2722 ;; write merge buffer. If the optional argument save-and-continue is non-nil,
2726 show-file save-and-continue)
2729 (format "Another buffer is visiting file %s. Too dangerous to save the merge buffer"
2743 ;;(write-region (point-min) (point-max) file)
2746 (save-buffer))
2753 (not save-and-continue)
2832 (save-excursion
2871 (1+ (count-lines (point-min) (point)))))
2873 (1+ (count-lines (point-min) (point)))))
2875 (princ (format "\Buffer A's point is on line %d\n" A-line))
2876 (princ (format "Buffer B's point is on line %d\n" B-line))
2880 (1+ (count-lines (point-min) (point)))))
2881 (princ (format "Buffer C's point is on line %d\n" C-line)))))
3030 (last (ediff-with-current-buffer buff (point-max)))
3168 ;; Also, save buffer from START to END in the file.
3169 ;; START defaults to (point-min), END to (point-max)
3201 (write-region (if start start (point-min))
3202 (if end end (point-max))
3211 ;; end of PROPOSED-NAME is guaranteed to point to a newly created empty file.
3259 ;; If buffer is not obsolete and is modified, offer to save
3265 (save-buffer)
3268 (message "Couldn't save %s" buffer-file-name)))
3285 ;; save and delete the buffer; else bark
3301 (save-buffer)
3313 (defun ediff-save-buffer (arg)
3339 (save-buffer)))
3369 (goto-char (point-min))
3455 (save-excursion
3470 (goto-char (point-min)))
3577 (setq begA (point))
3581 (setq endA (point)))
3592 (setq begB (point))
3596 (setq endB (point)))
3691 (save-excursion
3694 (>= (point) end))))))
3812 (ediff-make-bullet-proof-overlay (point-max) (point-max) buffer))
3928 (save-excursion
3929 (goto-char (point-max))
4082 (save-excursion
4083 (save-restriction
4085 (goto-char (point-min))
4091 (setq end (point))
4103 ;; ediff-save-variables returns an association list: ((var . val) ...)
4104 (defsubst ediff-save-variables (vars)
4124 (defun ediff-save-protected-variables ()
4127 (ediff-save-variables ediff-protected-variables)))
4130 (ediff-save-variables ediff-protected-variables)))
4134 (ediff-save-variables ediff-protected-variables))))
4138 (ediff-save-variables ediff-protected-variables)))))
4158 ;; save BUFFER in FILE. used in hooks.
4159 (defun ediff-save-buffer-in-file (buffer file)
4180 (defsubst ediff-save-time ()
4196 (progn (remove-hook pre-hook 'ediff-save-time)
4200 (add-hook pre-hook 'ediff-save-time t 'local)