Skip to content

Commit 6f40ad0

Browse files
committed
Remove drupal-mode-beginning-of-line
1 parent ca569ea commit 6f40ad0

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

drupal-mode.el

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,6 @@ See `drupal-mode-map'.")
252252
;; mode map on C-c C-v C-`mnemonic-key'.
253253
(dolist (elem drupal-mode-map-alist)
254254
(define-key map `[(control c) (control v) (control ,(car elem))] (cdr elem)))
255-
256-
(define-key map [(control a)] #'drupal-mode-beginning-of-line)
257255
map)
258256
"Keymap for `drupal-mode'")
259257

@@ -700,35 +698,6 @@ instead."
700698
((fboundp 'php-extras-eldoc-documentation-function)
701699
(php-extras-eldoc-documentation-function))))))
702700

703-
(defun drupal-mode-beginning-of-line (&optional n)
704-
"Move point to beginning of property value or to beginning of line.
705-
The prefix argument N is passed directly to `beginning-of-line'.
706-
707-
This command is identical to `beginning-of-line' if not in a mode
708-
derived from `conf-mode'.
709-
710-
If point is on a (non-continued) property line, move point to the
711-
beginning of the property value or the beginning of line,
712-
whichever is closer. If point is already at beginning of line,
713-
move point to beginning of property value. Therefore, repeated
714-
calls will toggle point between beginning of property value and
715-
beginning of line.
716-
717-
Heavily based on `message-beginning-of-line' from Gnus."
718-
(interactive "p")
719-
(let ((zrs 'zmacs-region-stays))
720-
(when (and (featurep 'xemacs) (interactive-p) (boundp zrs))
721-
(set zrs t)))
722-
(if (derived-mode-p 'conf-mode)
723-
(let* ((here (point))
724-
(bol (progn (beginning-of-line n) (point)))
725-
(eol (point-at-eol))
726-
(eoh (re-search-forward "= *" eol t)))
727-
(goto-char
728-
(if (and eoh (or (< eoh here) (= bol here)))
729-
eoh bol)))
730-
(beginning-of-line n)))
731-
732701

733702

734703
(defvar drupal-local-variables (make-hash-table :test 'equal)

0 commit comments

Comments
 (0)