From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- app-emacs/teco/Manifest | 8 +++ app-emacs/teco/files/50teco-gentoo.el | 4 ++ app-emacs/teco/files/teco-7-emacs-24.patch | 47 +++++++++++++ .../teco/files/teco-7-minibuffer-prompt.patch | 76 ++++++++++++++++++++++ app-emacs/teco/metadata.xml | 8 +++ app-emacs/teco/teco-7-r1.ebuild | 23 +++++++ 6 files changed, 166 insertions(+) create mode 100644 app-emacs/teco/Manifest create mode 100644 app-emacs/teco/files/50teco-gentoo.el create mode 100644 app-emacs/teco/files/teco-7-emacs-24.patch create mode 100644 app-emacs/teco/files/teco-7-minibuffer-prompt.patch create mode 100644 app-emacs/teco/metadata.xml create mode 100644 app-emacs/teco/teco-7-r1.ebuild (limited to 'app-emacs/teco') diff --git a/app-emacs/teco/Manifest b/app-emacs/teco/Manifest new file mode 100644 index 000000000000..d09e4b1ff53e --- /dev/null +++ b/app-emacs/teco/Manifest @@ -0,0 +1,8 @@ +AUX 50teco-gentoo.el 257 SHA256 0f5462dbf8632c898192ab09a9874a4adabbc2a2a96861a19e4dda3e61708dad SHA512 ab17c9541474290b9ea85d6788b54e5615b4ca93cb8194986950d285f744f614f8e598e6d5bf6441069f8274c7f012f9266178a104789488f88934ce1e2b0759 WHIRLPOOL 5118206e0917a10ac0b5c4b665c3579a6dc641df2f654b323b7fa7eb25a18c5b29eb3a91f809a0e8377e5becc36f0be520c4f56e5312160ba0730db4963e0f61 +AUX teco-7-emacs-24.patch 1350 SHA256 c0b71d81d8fae37f9fdc2fb23345369371694789d608b97a763f43e4c4582a90 SHA512 71afdf37ab38e76181e1a7ce90a73ad31a625039d784b9334f79a8642a45c7922022f74231e8cf70cb6bcad023012412262d6ef840ac611a182e3eb48ee0f4e5 WHIRLPOOL 3518a537f215e20a6dbfab2658c6d80841934836620138e213d3623f6d77b0163281abb5684444e7569bbc9bebcd11be9cbbf648a3210eee4fdb017668c88a8a +AUX teco-7-minibuffer-prompt.patch 2574 SHA256 e26d54b1100d63aa2ccfc6c86925b0826b2c93612dfb1b37d6108a920fd030e2 SHA512 df67994df08353757cf7be3d8ebf0c0d6c048d8e195360d9f7afaa29ca44cd3ccbe95885d9c790a29c1965c3d291136e195fa076bf9a0a42304c46267ebb1446 WHIRLPOOL 84110ba3ffa4f3c1e4f1b38017bdde8d2cc34a27cc5b2c82e24175de482d594d1adb364b06e8611aaeb9e15d7262b1eae472b4ccbe2ae1c70626d63c788d1b40 +DIST teco-7.el.bz2 16372 SHA256 28c04c00f36bc04ffd31291fa2718538a549a5d86dc372a427fba60b40801570 SHA512 7fb050d2d12aadeccc18d852b4191493be301c90ac5426ee4f985a89eba62f9b57d263a2156d5252e88d06bbe68508aca2bebeca65402ff9e8f00937f5189feb WHIRLPOOL 97aea17fe808c44a42cf24485a5f738103e46ee6fc3da86fadde40134f93894639068092a5298d2266a2ca184a11c890f64ef98d282fcfc5a163e88c8bd4c19b +EBUILD teco-7-r1.ebuild 700 SHA256 309305c64477446c9814dfa8b94e4b5f70535cbd6e9f9b1d36b37f810def24b3 SHA512 0e0f5484690d0acffe4fd8e70934921edaeb7e3b05f66b5da43020d1f450a80f8283b6532ed781197f6443a72f9f01ea44b517e9ff507bdfd24e8fb2ac3241ff WHIRLPOOL 44b5246ece36866a2a0001e6f30b9b7f0e398c51b80956e98c4d50602d0c943696c821fef6f1c90ff3fdaf0fedbfd1c76b9eb68ecc207115893ad401f1f4edd7 +MISC ChangeLog 2400 SHA256 6b11a98bf3584f2ab8f7636e14f9528266b1729c1939163865f5aa2b02ddfe12 SHA512 26c4716cd3b2566fe62c1707845b8bedfe1bb2bc58f11c5ab088c2e0e4f9bbb457619b03660d88c1f4eeb460a2dedc80e49662d1c462c7b258abeb514a8d3614 WHIRLPOOL dbc9ae0c7abf6c7cb6d053570d26b7a7139573d130735a9750529f73d786e7f9a7999ea7adcb36b654e52a26d3e2eac96158e0d73b32bc7516a70fc761ba1cd2 +MISC ChangeLog-2015 672 SHA256 3320fd7897eec164f569b15c4651ad628adbf8f6579304a29c38dbe578d8489b SHA512 23ca90e565422468267d60fc732bf57e2990daf4cab23943c7fcf8da0cdcf6acaf3e0aa671d55024161a4df05b4afa954d0f9695b4105fe0fbaabde0a004179b WHIRLPOOL 1cd619a48fb3b52f6e49417ed6ae13e67deff03ee113256e63a10957634ffcf72a4194512c8155417ac1d3a6d29e18338909f57274009dc2f2a545b947fbcd2e +MISC metadata.xml 259 SHA256 4d59c14917cb31648858cb06bc3c7f224cf1c3906dc3166f8f0d8b8e02970928 SHA512 9a5c456aae7919a4cdbb10b67a27c232daf2ec6db4202e04ba6d5873242fc982a659410443dd6fb4498d42af00b495acc51a6a2cbe12aeab91b585dfac7233a3 WHIRLPOOL 08c68f505a8cc685c52f3a54a07582b64ff7c0b4682c8f9333286fbb5caf4a8d406933c7937fe8c9611f456b5a549ee100657a1c9dc766c8965772f277bf31fb diff --git a/app-emacs/teco/files/50teco-gentoo.el b/app-emacs/teco/files/50teco-gentoo.el new file mode 100644 index 000000000000..6992ef1e5735 --- /dev/null +++ b/app-emacs/teco/files/50teco-gentoo.el @@ -0,0 +1,4 @@ +(add-to-list 'load-path "@SITELISP@") +(autoload 'teco:command "teco" "Read and execute a Teco command string." t) +(autoload 'teco "teco" "Read and execute a Teco command string." t) +(autoload 'teco:copy-to-q-reg "teco" "Copy region into Teco q-reg REG." t) diff --git a/app-emacs/teco/files/teco-7-emacs-24.patch b/app-emacs/teco/files/teco-7-emacs-24.patch new file mode 100644 index 000000000000..0b3251919ddb --- /dev/null +++ b/app-emacs/teco/files/teco-7-emacs-24.patch @@ -0,0 +1,47 @@ +--- teco.el ++++ teco.el +@@ -312,7 +312,7 @@ + "Return string describing the version of Teco. When called interactively, + displays the version." + (interactive) +- (if (interactive-p) ++ (if (called-interactively-p 'interactive) + (message "Teco version %s" (teco-version)) + teco-version)) + +@@ -2254,7 +2254,7 @@ + + (defun teco:command-self-insert () + (interactive) +- (teco:command-insert-character last-command-char)) ++ (teco:command-insert-character last-command-event)) + + (defun teco:command-quit () + (interactive) +@@ -2267,7 +2267,7 @@ + + (defun teco:command-return () + (interactive) +- (setq last-command-char ?\n) ++ (setq last-command-event ?\n) + (teco:command-self-insert)) + + (defun teco:command-escape () +@@ -2275,7 +2275,7 @@ + ;; Two ESCs in a row terminate the command string + (if (eq last-command 'teco:command-escape) + (throw 'teco:command-quit (minibuffer-contents-no-properties))) +- (teco:command-insert-character last-command-char)) ++ (teco:command-insert-character last-command-event)) + + (defun teco:command-ctrl-u () + (interactive) +@@ -2334,7 +2334,7 @@ + ;; q-register + (progn + ;; insert the * into the buffer +- (teco:command-insert-character last-command-char) ++ (teco:command-insert-character last-command-event) + ;; read the next character + (let ((c (read-char)) + c1) diff --git a/app-emacs/teco/files/teco-7-minibuffer-prompt.patch b/app-emacs/teco/files/teco-7-minibuffer-prompt.patch new file mode 100644 index 000000000000..f46fadc98a39 --- /dev/null +++ b/app-emacs/teco/files/teco-7-minibuffer-prompt.patch @@ -0,0 +1,76 @@ +--- teco.el ++++ teco.el +@@ -2213,9 +2213,11 @@ + (define-key teco:command-keymap "/" 'teco:command-slash) + (define-key teco:command-keymap "*" 'teco:command-star) + +-(defvar teco:command-escapes nil +- "Records where ESCs are, since they are represented in the command buffer +-by $.") ++(defvar teco:command-display-table ++ (let ((table (make-display-table))) ++ (aset table ?\e [?$]) ++ table) ++ "Display table used while reading teco commands.") + + (defun teco:copy-to-q-reg (char start end) + "Copy region into Teco q-reg REG. +@@ -2244,15 +2246,11 @@ + + (defun teco:read-command () + "Read a teco command string from the user." +- (let* ((teco:command-escapes nil) +- (command (catch 'teco:command-quit +- (read-from-minibuffer teco:prompt nil +- teco:command-keymap)))) +- (if command +- (while teco:command-escapes +- (aset command (car teco:command-escapes) ?\e) +- (setq teco:command-escapes (cdr teco:command-escapes)))) +- command)) ++ (minibuffer-with-setup-hook ++ (lambda () ++ (setq buffer-display-table teco:command-display-table)) ++ (catch 'teco:command-quit ++ (read-from-minibuffer teco:prompt nil teco:command-keymap)))) + + (defun teco:command-self-insert () + (interactive) +@@ -2276,16 +2274,13 @@ + (interactive) + ;; Two ESCs in a row terminate the command string + (if (eq last-command 'teco:command-escape) +- (throw 'teco:command-quit (buffer-string))) ++ (throw 'teco:command-quit (minibuffer-contents-no-properties))) + (teco:command-insert-character last-command-char)) + + (defun teco:command-ctrl-u () + (interactive) + ;; delete the characters + (kill-line 0) +- ;; forget that they were ESCs +- (while (and teco:command-escapes (<= (point) (car teco:command-escapes))) +- (setq teco:command-escapes (cdr teco:command-escapes))) + ;; decide whether to shrink the window + (while (let ((a (insert ?\n)) + (b (pos-visible-in-window-p)) +@@ -2297,9 +2292,6 @@ + (interactive) + ;; delete the character + (backward-delete-char 1) +- ;; forget that it was an ESC +- (if (and teco:command-escapes (= (1- (point)) (car teco:command-escapes))) +- (setq teco:command-escapes (cdr teco:command-escapes))) + ;; decide whether to shrink the window + (insert ?\n) + (if (prog1 (pos-visible-in-window-p) +@@ -2362,9 +2354,6 @@ + + ;; Insert a single command character + (defun teco:command-insert-character (c) +- (if (eq c ?\e) +- (setq teco:command-escapes (cons (1- (point)) teco:command-escapes) +- c ?$)) + (insert c) + (if (not (pos-visible-in-window-p)) + (enlarge-window 1))) diff --git a/app-emacs/teco/metadata.xml b/app-emacs/teco/metadata.xml new file mode 100644 index 000000000000..c438baf3b326 --- /dev/null +++ b/app-emacs/teco/metadata.xml @@ -0,0 +1,8 @@ + + + + + gnu-emacs@gentoo.org + Gentoo GNU Emacs project + + diff --git a/app-emacs/teco/teco-7-r1.ebuild b/app-emacs/teco/teco-7-r1.ebuild new file mode 100644 index 000000000000..abbf3fcbed06 --- /dev/null +++ b/app-emacs/teco/teco-7-r1.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit readme.gentoo elisp + +DESCRIPTION="TECO interpreter for GNU Emacs" +HOMEPAGE="http://www.emacswiki.org/emacs/TECO" +# taken from: http://www.emacswiki.org/emacs/teco.el +SRC_URI="mirror://gentoo/${P}.el.bz2" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +ELISP_PATCHES="${P}-minibuffer-prompt.patch + ${P}-emacs-24.patch" +SITEFILE="50${PN}-gentoo.el" +DOC_CONTENTS="To be able to invoke Teco directly, define a keybinding + for teco:command in your ~/.emacs file, e.g.: + \\n\\t(global-set-key \"\\C-z\" 'teco:command) + \\nSee ${SITELISP}/${PN}/teco.el for documentation." -- cgit v1.2.3