emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/drupal-mode 08d1a815ba 208/308: Simplified.


From: ELPA Syncer
Subject: [nongnu] elpa/drupal-mode 08d1a815ba 208/308: Simplified.
Date: Tue, 25 Jan 2022 10:59:48 -0500 (EST)

branch: elpa/drupal-mode
commit 08d1a815ba50d2f586aa6aaae5c35a3f2a92d831
Author: Arne Jørgensen <arne@arnested.dk>
Commit: Arne Jørgensen <arne@arnested.dk>

    Simplified.
    
    No need to call `cd-absolute`. It's probably better to supply the
    DRUPAL_ROOT as a parameter to drush.
---
 drupal-mode.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drupal-mode.el b/drupal-mode.el
index 40cdbee5fa..6f9a94fbaa 100644
--- a/drupal-mode.el
+++ b/drupal-mode.el
@@ -360,9 +360,8 @@ of the project)."
            drupal-drush-program)
       (let ((root drupal-rootdir))
         (with-temp-buffer
-          (cd-absolute root)
           (message "Clearing all caches...")
-          (call-process drupal-drush-program nil nil nil "cache-clear" "all")
+          (call-process drupal-drush-program nil nil nil (concat "--root=" 
(expand-file-name root)) "cache-clear" "all")
           (message "Clearing all caches...done")))
     (message "Can't clear caches. No DRUPAL_ROOT and/or no drush command.")))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]