Index: devel/Makefile =================================================================== --- devel/Makefile (revision 555095) +++ devel/Makefile (working copy) @@ -6776,6 +6776,7 @@ SUBDIR += tortoisehg SUBDIR += tpasm SUBDIR += tradcpp + SUBDIR += transient SUBDIR += treepy.el SUBDIR += trellis SUBDIR += trio Index: devel/transient/Makefile =================================================================== --- devel/transient/Makefile (nonexistent) +++ devel/transient/Makefile (working copy) @@ -0,0 +1,42 @@ +# $FreeBSD$ + +PORTNAME= transient +DISTVERSIONPREFIX= v +DISTVERSION= 0.2.0.20201103 +CATEGORIES= devel elisp +PKGNAMESUFFIX= ${EMACS_PKGNAMESUFFIX} + +MAINTAINER= yasu@utahime.org +COMMENT= Emacs key and popup interface for complex keybindings + +LICENSE= GPLv3+ +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= emacs gmake makeinfo +USE_GITHUB= yes +GH_ACCOUNT= magit +GH_TAGNAME= e2fee19 + +NO_ARCH= yes + +ALL_TARGET= lisp info + +INFO= transient + +OPTIONS_DEFINE= DOCS + +PORTDOCS= CHANGELOG README.md + +do-install: + @${MKDIR} ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR} + ${INSTALL_DATA} ${WRKSRC}/lisp/*.el* \ + ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR} + ${INSTALL_DATA} ${WRKSRC}/docs/*.info \ + ${STAGEDIR}${PREFIX}/${INFO_PATH} + +do-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/docs/CHANGELOG ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} + +.include Index: devel/transient/distinfo =================================================================== --- devel/transient/distinfo (nonexistent) +++ devel/transient/distinfo (working copy) @@ -0,0 +1,3 @@ +TIMESTAMP = 1605394747 +SHA256 (magit-transient-v0.2.0.20201103-e2fee19_GH0.tar.gz) = 10637c8f15c38ebbe021e1ae10c085894744367cd5c2d40ad05d55daedf5913d +SIZE (magit-transient-v0.2.0.20201103-e2fee19_GH0.tar.gz) = 97519 Index: devel/transient/pkg-descr =================================================================== --- devel/transient/pkg-descr (nonexistent) +++ devel/transient/pkg-descr (working copy) @@ -0,0 +1,21 @@ +Taking inspiration from prefix keys and prefix arguments, Transient +implements a similar abstraction involving a prefix command, infix +arguments and suffix commands. We could call this abstraction a +"transient command", but because it always involves at least two +commands (a prefix and a suffix) we prefer to call it just a +"transient". + +When the user calls a transient prefix command, then a transient +(temporary) keymap is activated, which binds the transient’s infix +and suffix commands, and functions that control the transient state +are added to `pre-command-hook` and `post-command-hook`. The available +suffix and infix commands and their state are shown in a popup buffer +until the transient is exited by invoking a suffix command. + +Calling an infix command causes its value to be changed, possibly by +reading a new value in the minibuffer. + +Calling a suffix command usually causes the transient to be exited but +suffix commands can also be configured to not exit the transient. + +WWW: https://github.com/magit/transient Index: devel/transient/pkg-plist =================================================================== --- devel/transient/pkg-plist (nonexistent) +++ devel/transient/pkg-plist (working copy) @@ -0,0 +1,3 @@ +%%EMACS_VERSION_SITE_LISPDIR%%/transient-autoloads.el +%%EMACS_VERSION_SITE_LISPDIR%%/transient.el +%%EMACS_VERSION_SITE_LISPDIR%%/transient.elc