ports/102384: New port: misc/rst.el (ReStructuredText Support for Emacs)
Denis Shaposhnikov
dsh at vlink.ru
Tue Aug 22 11:30:29 UTC 2006
>Number: 102384
>Category: ports
>Synopsis: New port: misc/rst.el (ReStructuredText Support for Emacs)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Aug 22 11:30:14 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Denis Shaposhnikov
>Release: FreeBSD 7.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD neva.vlink.ru 7.0-CURRENT FreeBSD 7.0-CURRENT #12: Tue Jun 27 16:19:50 MSD 2006 dsh at neva.vlink.ru:/var/FreeBSD/obj/var/FreeBSD/src/sys/MYNERIC i386
>Description:
Please close ports/100980 before commiting this port.
Support code for editing reStructuredText with Emacs.
Basically, this package contains:
- Functions to automatically adjust and cycle the section underline
decorations;
- A mode that displays the table of contents and allows you to jump anywhere
from it;
- Functions to insert and automatically update a TOC in your source
document;
- A mode which supports font-lock highlighting of reStructuredText
structures;
- Some other convenience functions.
This package is the result of merging:
- restructuredtext.el
- rst-mode.el
- rst-html.el
Those files are now OBSOLETE and have been replaced by this single
package file (2005-10-30).
WWW: http://docutils.sourceforge.net/docs/user/emacs.html
>How-To-Repeat:
>Fix:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# rst.el
# rst.el/files
# rst.el/files/patch-rst.el
# rst.el/distinfo
# rst.el/pkg-descr
# rst.el/pkg-message
# rst.el/Makefile
#
echo c - rst.el
mkdir -p rst.el > /dev/null 2>&1
echo c - rst.el/files
mkdir -p rst.el/files > /dev/null 2>&1
echo x - rst.el/files/patch-rst.el
sed 's/^X//' >rst.el/files/patch-rst.el << 'END-of-rst.el/files/patch-rst.el'
X--- rst.el.orig Sun Aug 20 18:19:59 2006
X+++ rst.el Sun Aug 20 17:41:37 2006
X@@ -930,7 +930,9 @@
X (toggle-style
X (and current-prefix-arg (not reverse-direction))))
X
X- (if (and transient-mark-mode mark-active)
X+ (if (or
X+ (and (fboundp 'region-active-p) (region-active-p) (region-exists-p))
X+ (and (boundp 'transient-mark-mode) transient-mark-mode mark-active))
X ;; Adjust decorations within region.
X (rst-promote-region current-prefix-arg)
X ;; Adjust decoration around point.
X@@ -1988,7 +1990,11 @@
X (error "Cannot mark zero sections"))
X (cond ((and allow-extend
X (or (and (eq last-command this-command) (mark t))
X- (and transient-mark-mode mark-active)))
X+ (or
X+ (and (fboundp 'region-active-p)
X+ (region-active-p) (region-exists-p))
X+ (and (boundp 'transient-mark-mode)
X+ transient-mark-mode mark-active))))
X (set-mark
X (save-excursion
X (goto-char (mark))
END-of-rst.el/files/patch-rst.el
echo x - rst.el/distinfo
sed 's/^X//' >rst.el/distinfo << 'END-of-rst.el/distinfo'
XMD5 (rst.el?rev=4655) = 825b249a63351fd76450427a30a0c5ab
XSHA256 (rst.el?rev=4655) = eef04f0b37b6b26c6ab028184e94784cee5e28f8e83ac01f1f03d3d01b2442cf
XSIZE (rst.el?rev=4655) = 112401
END-of-rst.el/distinfo
echo x - rst.el/pkg-descr
sed 's/^X//' >rst.el/pkg-descr << 'END-of-rst.el/pkg-descr'
XSupport code for editing reStructuredText with Emacs.
X
XBasically, this package contains:
X
X- Functions to automatically adjust and cycle the section underline
X decorations;
X- A mode that displays the table of contents and allows you to jump anywhere
X from it;
X- Functions to insert and automatically update a TOC in your source
X document;
X- A mode which supports font-lock highlighting of reStructuredText
X structures;
X- Some other convenience functions.
X
XThis package is the result of merging:
X
X- restructuredtext.el
X- rst-mode.el
X- rst-html.el
X
XThose files are now OBSOLETE and have been replaced by this single
Xpackage file (2005-10-30).
X
XWWW: http://docutils.sourceforge.net/docs/user/emacs.html
END-of-rst.el/pkg-descr
echo x - rst.el/pkg-message
sed 's/^X//' >rst.el/pkg-message << 'END-of-rst.el/pkg-message'
X
XTo use rst.el, add the following line to your ~/.emacs or init.el:
X
X (require 'rst)
X (add-hook 'text-mode-hook 'rst-text-mode-bindings)
X
END-of-rst.el/pkg-message
echo x - rst.el/Makefile
sed 's/^X//' >rst.el/Makefile << 'END-of-rst.el/Makefile'
X# New ports collection makefile for: rst.el
X# Date created: Sun Aug 20 18:39:03 MSD 2006
X# Whom: Denis Shaposhnikov <dsh at vlink.ru>
X#
X# $FreeBSD$
X#
X
XPORTNAME= rst.el
XPORTVERSION= 4655
XCATEGORIES= misc elisp
XMASTER_SITES= http://svn.berlios.de/viewcvs/*checkout*/docutils/trunk/docutils/tools/editors/emacs/
XPKGNAMESUFFIX= -${EMACS_NAME}
XDISTNAME= rst.el\?rev=${PORTVERSION}
XEXTRACT_SUFX= # empty
X
XMAINTAINER= dsh at vlink.ru
XCOMMENT= ReStructuredText Support for Emacs
X
XUSE_EMACS= yes
XEMACS_PORT_NAME?= xemacs21-mule
X
XNO_WRKSUBDIR= yes
XEXTRACT_CMD= ${CP}
XEXTRACT_BEFORE_ARGS= # empty
XEXTRACT_AFTER_ARGS= ${WRKSRC}/rst.el
X
XPLIST_FILES= ${EMACS_SITE_LISPDIR}/rst.el \
X ${EMACS_SITE_LISPDIR}/rst.elc
X
XELISPDIR= ${TARGETDIR}/${EMACS_SITE_LISPDIR}
X
Xdo-build:
X cd ${WRKSRC}; ${EMACS_CMD} -batch -q -f batch-byte-compile ${PORTNAME}
X
Xdo-install:
X ${MKDIR} ${ELISPDIR}
X ${INSTALL_DATA} ${WRKSRC}/${PORTNAME} ${WRKSRC}/${PORTNAME}c ${ELISPDIR}
X
Xpost-install:
X @${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-rst.el/Makefile
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list