@@ -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
@@ -336,7 +334,8 @@ function arguments.")
336334 (require-final-newline . t )
337335 (c-offsets-alist . ((arglist-close . 0 )
338336 (arglist-cont-nonempty . c-lineup-math)
339- (arglist-intro . + )))
337+ (arglist-intro . + )
338+ (statement-cont . + )))
340339 (c-doc-comment-style . (php-mode . javadoc))
341340 (c-label-minimum-indentation . 1 )
342341 (c-special-indent-hook . c-gnu-impose-minimum)
@@ -699,35 +698,6 @@ instead."
699698 ((fboundp 'php-extras-eldoc-documentation-function )
700699 (php-extras-eldoc-documentation-function))))))
701700
702- (defun drupal-mode-beginning-of-line (&optional n )
703- " Move point to beginning of property value or to beginning of line.
704- The prefix argument N is passed directly to `beginning-of-line' .
705-
706- This command is identical to `beginning-of-line' if not in a mode
707- derived from `conf-mode' .
708-
709- If point is on a (non-continued) property line, move point to the
710- beginning of the property value or the beginning of line,
711- whichever is closer. If point is already at beginning of line,
712- move point to beginning of property value. Therefore, repeated
713- calls will toggle point between beginning of property value and
714- beginning of line.
715-
716- Heavily based on `message-beginning-of-line' from Gnus."
717- (interactive " p" )
718- (let ((zrs 'zmacs-region-stays ))
719- (when (and (featurep 'xemacs ) (interactive-p ) (boundp zrs))
720- (set zrs t )))
721- (if (derived-mode-p 'conf-mode )
722- (let* ((here (point ))
723- (bol (progn (beginning-of-line n) (point )))
724- (eol (point-at-eol ))
725- (eoh (re-search-forward " = *" eol t )))
726- (goto-char
727- (if (and eoh (or (< eoh here) (= bol here)))
728- eoh bol)))
729- (beginning-of-line n)))
730-
731701
732702
733703(defvar drupal-local-variables (make-hash-table :test 'equal )
@@ -898,8 +868,7 @@ If major version number is 4 - return both major and minor."
898868(defun drupal-mode-bootstrap ()
899869 " Activate Drupal minor mode if major mode is supported.
900870The command will activate `drupal-mode' if the current major mode
901- is a mode supported by `drupal-mode' (currently only
902- `php-mode' ).
871+ is a mode supported by `drupal-mode' .
903872
904873The function is suitable for adding to the supported major modes
905874mode-hook."
0 commit comments