[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/drupal-mode 2517b39f42 154/308: Added a simple `drupal-tai
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/drupal-mode 2517b39f42 154/308: Added a simple `drupal-tail-drupal-debug-txt` function. |
Date: |
Tue, 25 Jan 2022 10:59:41 -0500 (EST) |
branch: elpa/drupal-mode
commit 2517b39f422425bbdfddbc56beb1d2075376d9fd
Author: Arne Jørgensen <arne@arnested.dk>
Commit: Arne Jørgensen <arne@arnested.dk>
Added a simple `drupal-tail-drupal-debug-txt` function.
Fixes #20.
---
drupal-mode.el | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/drupal-mode.el b/drupal-mode.el
index 7a7f114ba9..c08a2108ce 100644
--- a/drupal-mode.el
+++ b/drupal-mode.el
@@ -403,6 +403,24 @@ should save your files with unix style end of line."
(format-spec drupal-search-url `((?v . ,(drupal-major-version
drupal-version))
(?s . ,symbol)))))))))
+(defun drupal-tail-drupal-debug-txt ()
+ "Tail drupal_debug.txt.
+If a drupal_debug.txt exists in the sites temporary directory
+visit it and enable `auto-revert-tail-mode' in the visiting
+buffer."
+ (interactive)
+ (when drupal-drush-program
+ (let* ((tmp (ignore-errors
+ (replace-regexp-in-string
+ "[\n\r]" ""
+ (with-output-to-string
+ (with-current-buffer standard-output
+ (call-process drupal-drush-program nil (list t nil) nil
"core-status" "temp" "--pipe" "--format=list" "--strict=0"))))))
+ (dd (concat tmp "/drupal_debug.txt")))
+ (when (file-readable-p dd)
+ (find-file-other-window dd)
+ (auto-revert-tail-mode 1)))))
+
(defvar drupal-form-id-history nil
- [nongnu] elpa/drupal-mode 2f8ce00821 074/308: A functions args is shown in tooltip after 5 sec of idle time., (continued)
- [nongnu] elpa/drupal-mode 2f8ce00821 074/308: A functions args is shown in tooltip after 5 sec of idle time., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 7682fe81f5 079/308: Fixed argument tip when no window-system., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode cb918eb5f1 076/308: Defined defvars earlier in file to avoid using free variables., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 194db27ee9 091/308: Added skeleton position at end of skeleton., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 929af1cefc 097/308: Autoload `drupal-search-url' as safe-local-variable., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 9ea0f27c0e 098/308: Made `drupal-module-name' insert module name when called interactively., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 6c76c15e7c 100/308: Added auto-insert skeleton for .install files., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode fe8717b47c 106/308: Added `css-indent-offset'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode bd83268c5d 131/308: Add custom checker for checking CSS/JS files with phpcs., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 889fc24427 145/308: Use setq., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 2517b39f42 154/308: Added a simple `drupal-tail-drupal-debug-txt` function.,
ELPA Syncer <=
- [nongnu] elpa/drupal-mode 7d29d72a62 155/308: Added function to wrap string in t()., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode a08207b0c9 161/308: Merge branch 'release/0.3.1', ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 8f5a7568b0 159/308: Fixed `drupal-search-documentation` for PHP keywords., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 72ceba6089 174/308: Merge pull request #39 from xendk/develop, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 46ad71de46 170/308: Used `default-directory` as fallback if `buffer-file-name` us not set., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode f1985b5ca5 181/308: Merge branch 'release/0.4.0', ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 230e579786 185/308: Removed flymake-phpcs from `drush-make-mode' files., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 03b7e28b8d 192/308: Fixed bad indentation., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 1a73416e78 190/308: Fixed flymake when real file is in a symlinked dir., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode da97264d7e 195/308: Merge branch 'release/0.4.1', ELPA Syncer, 2022/01/25