emacs-bug-tracker
[Top][All Lists]
Advanced

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

bug#38741: closed ([PATCH] Fix emacs-ledger-mode failing to autoload)


From: GNU bug Tracking System
Subject: bug#38741: closed ([PATCH] Fix emacs-ledger-mode failing to autoload)
Date: Thu, 09 Jan 2020 17:33:02 +0000

Your message dated Thu, 09 Jan 2020 18:32:14 +0100
with message-id <87blrczgbl.fsf@yamatai>
and subject line Re: [bug#38741] [PATCH] Fix emacs-ledger-mode failing to 
autoload
has caused the debbugs.gnu.org bug report #38741,
regarding [PATCH] Fix emacs-ledger-mode failing to autoload
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden.)


-- 
38741: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=38741
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: [PATCH] Fix emacs-ledger-mode failing to autoload Date: Wed, 25 Dec 2019 10:11:41 -0600 User-agent: Cyrus-JMAP/3.1.7-694-gd5bab98-fmstable-20191218v1
* gnu/packages/finance.scm (emacs-ledger-mode): Fix emacs-ledger-mode failing 
to autoload
---
 gnu/packages/finance.scm | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index ce3033c054..ced85c44c2 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -288,6 +288,12 @@ in ability, and easy to use.")
          #:tests? #f ; there are none
          #:phases
          (modify-phases %standard-phases
+         (add-after 'unpack 'patch-site-dir
+           (lambda _
+             (substitute* "CMakeLists.txt"
+               (("DESTINATION share/emacs/site-lisp/ledger-mode")
+                "DESTINATION share/emacs/site-lisp"))
+             #t))
            (add-before 'build 'patch-path
              (lambda* (#:key inputs #:allow-other-keys)
                (let ((ledger (assoc-ref inputs "ledger")))
@@ -303,17 +309,12 @@ in ability, and easy to use.")
                  (invoke "makeinfo" "-o" target
                          "../source/doc/ledger-mode.texi"))
                #t))
-           (add-after 'install 'relocate-elisp
+           (add-after 'install 'generate-autoload
              (lambda* (#:key outputs #:allow-other-keys)
                (let* ((site-dir (string-append (assoc-ref outputs "out")
-                                               "/share/emacs/site-lisp"))
-                      (guix-dir (string-append site-dir "/guix.d"))
-                      (orig-dir (string-append site-dir "/ledger-mode"))
-                      (dest-dir (string-append guix-dir "/ledger-mode")))
-                 (mkdir-p guix-dir)
-                 (rename-file orig-dir dest-dir)
-                 (emacs-generate-autoloads ,name dest-dir)
-                 #t))))))
+                                               "/share/emacs/site-lisp")))
+                 (emacs-generate-autoloads ,name site-dir))
+               #t)))))
       (inputs
        `(("ledger" ,ledger)))
       (native-inputs
-- 
2.24.1




--- End Message ---
--- Begin Message --- Subject: Re: [bug#38741] [PATCH] Fix emacs-ledger-mode failing to autoload Date: Thu, 09 Jan 2020 18:32:14 +0100 User-agent: mu4e 1.2.0; emacs 26.3
Thanks. I made a few cosmetic changes and pushed the patch as
2c50e52ab8228634ce1626dc174970f4a4321d61.

Attachment: signature.asc
Description: PGP signature


--- End Message ---

reply via email to

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