[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/drupal-mode e4d21708db 010/308: Untabify and indent.
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/drupal-mode e4d21708db 010/308: Untabify and indent. |
Date: |
Tue, 25 Jan 2022 10:59:02 -0500 (EST) |
branch: elpa/drupal-mode
commit e4d21708dbf39f98df87e65f6f61769d254a50ad
Author: Arne Jørgensen <arne@arnested.dk>
Commit: Arne Jørgensen <arne@arnested.dk>
Untabify and indent.
---
drupal-mode.el | 68 +++++++++++++++++++++++++++++-----------------------------
1 file changed, 34 insertions(+), 34 deletions(-)
diff --git a/drupal-mode.el b/drupal-mode.el
index 8655cd8a37..3f518f0440 100644
--- a/drupal-mode.el
+++ b/drupal-mode.el
@@ -49,10 +49,10 @@
"Should we offer to change line endings if needed?.
According to http://drupal.org/coding-standards#indenting."
:type `(choice
- :tag " we offer to change line endings if needed?"
- (const :tag "Always" t)
- (const :tag "Never" nil)
- (const :tag "Ask" ask))
+ :tag " we offer to change line endings if needed?"
+ (const :tag "Always" t)
+ (const :tag "Never" nil)
+ (const :tag "Ask" ask))
:link '(url-link "http://drupal.org/coding-standards#indenting")
:group 'drupal)
(make-variable-buffer-local 'drupal-convert-line-ending)
@@ -62,9 +62,9 @@ According to http://drupal.org/coding-standards#indenting."
"Should we delete trailing white space?.
According to http://drupal.org/coding-standards#indenting."
:type `(choice
- :tag " we offer to delete trailing whitespace."
- (const :tag "Always" t)
- (const :tag "Never" nil))
+ :tag " we offer to delete trailing whitespace."
+ (const :tag "Always" t)
+ (const :tag "Never" nil))
:link '(url-link "http://drupal.org/coding-standards#indenting")
:group 'drupal)
@@ -74,8 +74,8 @@ According to http://drupal.org/coding-standards#indenting."
%v is the Drupal major version.
%s is the search term."
:type '(choice (const :tag "Drupal.org"
"http://api.drupal.org/api/search/%v/%s")
- (const :tag "DrupalContrib.org"
"http://api.drupalcontrib.org/api/search/%v/%s")
- (string :tag "Other"
"http://example.com/search?q=%s&version=%v"))
+ (const :tag "DrupalContrib.org"
"http://api.drupalcontrib.org/api/search/%v/%s")
+ (string :tag "Other"
"http://example.com/search?q=%s&version=%v"))
:group 'drupal)
(defvar drupal-version nil "Drupal version as auto detected.")
@@ -113,10 +113,10 @@ According to
http://drupal.org/coding-standards#indenting."
(indent-tabs-mode . nil)
(require-final-newline . t)
(c-offsets-alist . ((arglist-close . 0)
- (arglist-cont-nonempty . c-lineup-math)
- (arglist-intro . +)
- (case-label . +)
- (comment-intro . 0)))
+ (arglist-cont-nonempty . c-lineup-math)
+ (arglist-intro . +)
+ (case-label . +)
+ (comment-intro . 0)))
(c-doc-comment-style . (php-mode . javadoc))
(c-label-minimum-indentation . 1)
(c-special-indent-hook . c-gnu-impose-minimum)
@@ -164,20 +164,20 @@ According to
http://drupal.org/coding-standards#indenting."
According to http://drupal.org/coding-standards#indenting you
should save your files with unix style end of line."
(when (and drupal-mode
- drupal-convert-line-ending
- (/= (coding-system-eol-type buffer-file-coding-system) 0))
+ drupal-convert-line-ending
+ (/= (coding-system-eol-type buffer-file-coding-system) 0))
(if (or (eq drupal-convert-line-ending t)
- (y-or-n-p "Convert to unix style line endings?"))
- (progn
- (message "Coding system conversion")
- (set-buffer-file-coding-system 'unix))
+ (y-or-n-p "Convert to unix style line endings?"))
+ (progn
+ (message "Coding system conversion")
+ (set-buffer-file-coding-system 'unix))
(progn
- (setq drupal-convert-line-ending nil)))))
+ (setq drupal-convert-line-ending nil)))))
(defun drupal-delete-trailing-whitespace ()
"Delete trailing whitespace if in drupal mode."
(when (and drupal-mode
- drupal-delete-trailing-whitespace)
+ drupal-delete-trailing-whitespace)
(delete-trailing-whitespace)))
(defun drupal-search-documentation ()
@@ -185,7 +185,7 @@ should save your files with unix style end of line."
(interactive)
(browse-url
(format-spec drupal-search-url `((?v . ,(drupal-major-version
drupal-version))
- (?s . ,(symbol-at-point))))))
+ (?s . ,(symbol-at-point))))))
@@ -197,17 +197,17 @@ should save your files with unix style end of line."
drupal-version
(dolist (file '("modules/system/system.module" "includes/bootstrap.inc"
"core/includes/bootstrap.inc"))
(let ((dir (locate-dominating-file buffer-file-name file)))
- (when dir
- (with-current-buffer (find-file-noselect (concat dir file) t)
- (save-excursion
- (goto-char (point-min))
- (when (re-search-forward "\\(define('VERSION',\\|const VERSION
=\\) +'\\(.+\\)'" nil t)
- (dir-locals-set-class-variables 'drupal-class `((nil .
((drupal-version . ,(match-string-no-properties 2))))))
- (dir-locals-set-directory-class dir 'drupal-class)))
- (setq drupal-version (match-string-no-properties 2))
- )
- (hack-local-variables))))
- drupal-version))
+ (when dir
+ (with-current-buffer (find-file-noselect (concat dir file) t)
+ (save-excursion
+ (goto-char (point-min))
+ (when (re-search-forward "\\(define('VERSION',\\|const VERSION
=\\) +'\\(.+\\)'" nil t)
+ (dir-locals-set-class-variables 'drupal-class `((nil .
((drupal-version . ,(match-string-no-properties 2))))))
+ (dir-locals-set-directory-class dir 'drupal-class)))
+ (setq drupal-version (match-string-no-properties 2))
+ )
+ (hack-local-variables))))
+ drupal-version))
(defun drupal-major-version (&optional version)
"Return major version number of version string.
@@ -216,7 +216,7 @@ If major version number is 4 - return both major and minor."
(setq version (drupal-detect-drupal-version)))
(let ((version-list (split-string version "\\.")))
(if (= (string-to-number (car version-list)) 4)
- (format "%s.%s" (car version-list) (cadr version-list))
+ (format "%s.%s" (car version-list) (cadr version-list))
(car version-list))))
;;;###autoload
- [nongnu] elpa/drupal-mode cd3e68f6b3 113/308: Better support for hook_form_FORM_ID_alter() et al., (continued)
- [nongnu] elpa/drupal-mode cd3e68f6b3 113/308: Better support for hook_form_FORM_ID_alter() et al., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode a22be38d3c 114/308: Read FORM_ID from minibuffer in `drupal-insert-hook'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 71f3ba70fe 116/308: Added .inc files as `php-mode` as well., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 2245c415ee 123/308: Added check for `drupal-drush-program` is set., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 213ebf5e65 124/308: Fixed eshell site-alias expansion for aliases beginning with @. Suggestion by Tassilo Horn:, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode f4a4985134 132/308: Check if our checker can be used before enforcing it., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 2ad9decdb7 136/308: Merge branch 'develop' into pr/35, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode ec024f1e2a 148/308: `drupal/phpcs-dont-show-trailing-whitespace` common to flycheck and flymake., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode da62dbfc22 149/308: Added missing EOL., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode f77dd902b4 009/308: Add :link to defcustom. Part of #9., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode e4d21708db 010/308: Untabify and indent.,
ELPA Syncer <=
- [nongnu] elpa/drupal-mode 24bae05adf 036/308: Merge branch 'master' of github.com:arnested/drupal-mode, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 02eacb79f2 078/308: Added `drupal/etags-get-function-args' for finding arguments using Etags., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 0b770695f8 072/308: Fixed `drupal-get-function-args' to fail gracefully., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 551cc3c803 093/308: Eliminated `drupal-drush-mode'. It had no purpose., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode c81cdfd343 096/308: Made `drupal-search-url' et el safe for `string-or-null-p'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 05e0a86bed 099/308: Added keyboard shortcut for `drupal-module-name'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode ae4dd40f05 122/308: Added pcomplete for drush., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 57897dbed5 125/308: Fixed locating drush version number., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 0b9e5d25b4 129/308: Added basic support for flycheck., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 4f54f8bcb8 134/308: Fixed documentation., ELPA Syncer, 2022/01/25