From: Arun Isaac <arunisaac@systemreboot.net>
To: Feng Shu <tumashu@163.com>
Cc: 26454@debbugs.gnu.org
Subject: bug#26454: [PATCH 2/2] gnu: add emacs-exwm
Date: Sun, 16 Apr 2017 02:43:48 +0530 [thread overview]
Message-ID: <370aaae8.AEAAJGDHDFgAAAAAAAAAAAO0QTIAAAACwQwAAAAAAAW9WABY8o0b@mailjet.com> (raw)
In-Reply-To: <87bmrxua4o.fsf@163.com>
Thanks for the updated patches! Could you please add a copyright header
for you at the top of the emacs.scm source file?
> + ;; The following functions or variables is need by emacs-xelb,
> + ;; which is not included in 'emacs-minimal'.
Make this comment as follows.
The following functions and variables needed by emacs-xelb are not
included in emacs-minimal:
> + ;; x-display-screens x-keysym-table x-alt-keysym x-meta-keysym
> + ;; x-hyper-keysym x-super-keysym libxml-parse-xml-region
> + ;; x-display-pixel-width x-display-pixel-height
> + (arguments
> + `(#:emacs ,emacs
> + #:phases
> + ;; Generate .el files from the XML description of the XCB bindings.
> + ;; This will be adjusted when xelb developer comment in issue page:
> + ;; https://github.com/ch11ng/xelb/issues/16
> + (modify-phases %standard-phases
> + (add-after 'unpack 'regenerate-el-files
> + (lambda _
> + (let ((xcb-proto-xml-path (string-append (assoc-ref %build-inputs
> + "xcb-proto")
> + "/share/xcb"))
> + (emacs-path (string-append (assoc-ref %build-inputs
> + "emacs")
> + "/bin/emacs")))
> + (substitute* "Makefile"
> + (("PROTO_PATH := ../xcb-proto/src")
> + (string-append "PROTO_PATH := " xcb-proto-xml-path))
> + (("EMACS_BIN := emacs -Q")
> + (string-append "EMACS_BIN := " emacs-path " -Q")))
You should be able to do this just using #:make-flags. See
https://www.gnu.org/software/make/manual/html_node/Overriding.html
> + (inputs `(("xcb-proto" ,xcb-proto)))
xcb-proto is only required during build time, right? Therefore, it is a
native input.
> + (propagated-inputs
> + `(("emacs-xelb" ,emacs-xelb)
> + ("xhost" ,xhost)
> + ("dbus" ,dbus)))
Instead of making xhost and dbus propagated inputs, we should just
reference the required executables with their absolute paths. That way,
xhost and dbus would become normal inputs.
> + ;; The following functions or variables is need by emacs-exwm,
> + ;; which is not included in 'emacs-minimal'.
Same as mentioned earlier.
> + ;; scroll-bar-mode, fringe-mode
> + ;; x-display-pixel-width x-display-pixel-height
> + (modify-phases %standard-phases
> + (add-after 'build 'install-xsession
> + (lambda* (#:key outputs #:allow-other-keys)
> + (let* ((emacs-path (string-append (assoc-ref %build-inputs
> + "emacs")
> + "/bin/emacs"))
> + (sh-path (string-append (assoc-ref %build-inputs
> + "bash")
> + "/bin/sh"))
> + (xhost-path (string-append (assoc-ref %build-inputs
> + "xhost")
> + "/bin/xhost"))
> + (dbus-launch-path (string-append (assoc-ref %build-inputs
> + "dbus")
> + "/bin/dbus-launch"))
Use the keyword argument `inputs' here, instead of directly using `%build-inputs'.
> + (output (assoc-ref outputs "out"))
> + (xsessions-dir (string-append output "/share/xsessions"))
> + (desktop-file (string-append xsessions-dir "/exwm-demo.desktop"))
> + (bin-dir (string-append output "/bin"))
> + (exwm-demo-file (string-append bin-dir "/exwm-demo-session")))
> + ;; Add a .desktop file to xsessions.
> + (mkdir-p xsessions-dir)
> + (mkdir-p bin-dir)
> + (with-output-to-file desktop-file
> + (lambda _
> + (format #t
> + "[Desktop Entry]~@
> + Name=Exwm-Demo~@
> + Comment=Demo of Emacs X Window Manager ~@
> + Exec=~a/bin/exwm-demo-session~@
> + TryExec=~@*~a/bin/exwm-demo-session~@
> + Icon=~@
> + Type=Application~%"
> + output)))
Let's not call this a "Demo". Better to just use name, synopsis, etc. as
done for the xmonad package.
> + ;; Add a shell wrap file to bin directory.
> + ;; Fixup: Set DISPLAY variable for the reason:
> + ;; https://github.com/ch11ng/exwm/issues/213
> + (with-output-to-file exwm-demo-file
> + (lambda _
> + (format #t
> + "#!~a ~@
> + export DISPLAY=:0 ~@
> + ~a +SI:localuser:$USER ~@
> + exec ~a --exit-with-session ~a -q --eval \"(progn (require 'exwm)(require 'exwm-config)(exwm-config-default))\" ~%"
> + sh-path xhost-path dbus-launch-path emacs-path)))
> + (chmod exwm-demo-file #o555)
> + #t))))))
Similarly, remove any mention of the word "demo".
next prev parent reply other threads:[~2017-04-15 21:15 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-11 22:58 bug#26453: [PATCH 1/2] gnu: add emacs-xelb Feng Shu
2017-04-11 22:58 ` bug#26454: [PATCH 2/2] gnu: add emacs-exwm Feng Shu
2017-04-12 9:35 ` Arun Isaac
2017-04-12 18:13 ` Alex Kost
2017-04-12 20:05 ` Arun Isaac
2017-04-13 1:14 ` tumashu
2017-04-13 5:21 ` Arun Isaac
2017-04-14 11:54 ` Feng Shu
2017-04-14 13:27 ` Arun Isaac
2017-04-14 15:13 ` Feng Shu
2017-04-14 17:24 ` Arun Isaac
2017-04-15 2:37 ` tumashu
2017-04-15 12:29 ` Feng Shu
2017-04-15 21:13 ` Arun Isaac [this message]
[not found] ` <e0ed6d82.AEAAJGDHDFkAAAAAAAAAAAO1LyIAAAACwQwAAAAAAAW9WABY8o0b@mailjet.com>
2017-04-15 23:41 ` Feng Shu
2017-04-16 7:09 ` Arun Isaac
2017-04-16 8:04 ` Feng Shu, Arun Isaac
2017-04-16 20:53 ` Arun Isaac
2017-04-16 21:22 ` tumashu
2017-04-17 2:14 ` tumashu
2017-04-17 13:47 ` Arun Isaac
2017-04-18 8:20 ` Ludovic Courtès
2017-04-18 13:38 ` Arun Isaac
2017-04-18 20:39 ` Arun Isaac
2017-04-23 9:54 ` tumashu
2017-04-28 18:57 ` Arun Isaac
2017-04-14 21:47 ` Ludovic Courtès
2017-04-16 9:32 ` Ludovic Courtès
2017-04-16 11:06 ` Arun Isaac
2017-04-16 21:09 ` tumashu
2017-04-13 5:25 ` Arun Isaac
2017-04-13 21:04 ` Ludovic Courtès
2017-04-14 5:40 ` Arun Isaac
2017-04-16 9:03 ` Alex Kost
2017-04-16 9:29 ` Arun Isaac
2017-04-17 13:27 ` bug#26454: [PATCH 1/2] gnu: Add emacs-xelb Arun Isaac
2017-04-12 9:34 ` bug#26453: [PATCH 1/2] gnu: add emacs-xelb Arun Isaac
2017-04-12 10:12 ` Arun Isaac
[not found] ` <cu7zifmezqp.fsf@systemreboot.net>
2017-04-13 5:26 ` Arun Isaac
[not found] <20170417132743.5683-1-arunisaac@systemreboot.net>
2017-04-17 13:27 ` bug#26454: [PATCH 2/2] gnu: Add emacs-exwm Arun Isaac
[not found] ` <c675c264.AEMAJSAD6iUAAAAAAAAAAAO1LyIAAAACwQwAAAAAAAW9WABY9MMd@mailjet.com>
2017-04-17 14:41 ` Feng Shu
2017-04-17 17:23 ` Arun Isaac
2017-04-17 21:51 ` Feng Shu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=370aaae8.AEAAJGDHDFgAAAAAAAAAAAO0QTIAAAACwQwAAAAAAAW9WABY8o0b@mailjet.com \
--to=arunisaac@systemreboot.net \
--cc=26454@debbugs.gnu.org \
--cc=tumashu@163.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).