[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Nested `with-eval-after-load'?
From: |
Alexander Shukaev |
Subject: |
Nested `with-eval-after-load'? |
Date: |
Mon, 10 Aug 2015 22:13:24 +0200 |
Hello,
is nested `with-eval-after-load' considered a bad practice? I'm
curious because of the following
(with-eval-after-load 'x
(with-eval-after-load 'y
(message "Hello, World!")))
(require 'x)
(require 'y)
;; prints "Hello, World!"
(unload-feature 'x)
(require 'x)
;; prints "Hello, World!"
;; prints "Hello, World!"
Is this true that "Hello, World!" would be printed 2 times after
reloading (i.e. the same after-load routine would be added twice for
the `y' package)?
Regards,
Alexander
- Nested `with-eval-after-load'?,
Alexander Shukaev <=