1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00

New port, devel/transient: Emacs key and popup interface

PR:		251146
Submitted by:	Yasuhiro Kimura <yasu@utahime.org> (maintainer)
This commit is contained in:
Joseph Mingrone 2021-01-13 22:23:10 +00:00
parent 713aeef646
commit bc97caae02
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=561515
5 changed files with 70 additions and 0 deletions

View File

@ -6855,6 +6855,7 @@
SUBDIR += tpasm
SUBDIR += tradcpp
SUBDIR += transwarp
SUBDIR += transient
SUBDIR += treepy.el
SUBDIR += trellis
SUBDIR += trio

42
devel/transient/Makefile Normal file
View File

@ -0,0 +1,42 @@
# $FreeBSD$
PORTNAME= transient
DISTVERSIONPREFIX= v
DISTVERSION= 0.2.0-75
DISTVERSIONSUFFIX= -g7811dcf
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
ALL_TARGET= lisp info
NO_ARCH= yes
INFO= transient
PORTDOCS= CHANGELOG README.md
OPTIONS_DEFINE= DOCS
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 <bsd.port.mk>

3
devel/transient/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1610572736
SHA256 (magit-transient-v0.2.0-75-g7811dcf_GH0.tar.gz) = 31a9974c062619762d9458cd92716e2ea9ca0fdc41e1d0c8aa19dad775f4fe5a
SIZE (magit-transient-v0.2.0-75-g7811dcf_GH0.tar.gz) = 98530

21
devel/transient/pkg-descr Normal file
View File

@ -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

View File

@ -0,0 +1,3 @@
%%EMACS_VERSION_SITE_LISPDIR%%/transient-autoloads.el
%%EMACS_VERSION_SITE_LISPDIR%%/transient.el
%%EMACS_VERSION_SITE_LISPDIR%%/transient.elc