Skip to content

Commit

Permalink
fixup! metion go-mode as being the origin of 3 functions
Browse files Browse the repository at this point in the history
  • Loading branch information
kermorgant committed Jul 24, 2018
1 parent 7ea159c commit c98b640
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions phpactor.el
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
;; See https://phpactor.github.io/phpactor/configuration.html
;;

;; Definitions adapted from go-mode.el(https://github.com/dominikh/go-mode.el) are :
;;
;; go--apply-rcs-patch go--goto-line go--delete-whole-line

;;; Code:
(require 'json)
(require 'php-project)
Expand Down Expand Up @@ -266,13 +270,11 @@
(goto-char (1+ offset)))

;; this function comes from go-mode
;; https://github.com/dominikh/go-mode.el
(defun phpactor--goto-line (line)
(goto-char (point-min))
(forward-line (1- line)))

;; this function comes from go-mode
;; https://github.com/dominikh/go-mode.el
(defun phpactor--delete-whole-line (&optional arg)
"Delete the current line without putting it in the `kill-ring'.
Derived from function `kill-whole-line'. ARG is defined as for that
Expand Down Expand Up @@ -300,7 +302,6 @@ function."
(progn (forward-visible-line arg) (point))))))

;; this function comes from go-mode
;; https://github.com/dominikh/go-mode.el
(defun phpactor--apply-rcs-patch (patch-buffer)
"Apply an RCS-formatted diff from PATCH-BUFFER to the current buffer."
(let ((target-buffer (current-buffer))
Expand Down

0 comments on commit c98b640

Please sign in to comment.