diff options
author | taca <taca@pkgsrc.org> | 2002-10-06 15:25:21 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2002-10-06 15:25:21 +0000 |
commit | 07e3e24dc08045c7b9d9bb37d5dcedab965d260b (patch) | |
tree | 67fd99261d2ad1148667a13894bdc78cca340509 /devel/ruby-rd-mode | |
parent | 7da429319c06c37174e99008905f1b970bf66817 (diff) | |
download | pkgsrc-07e3e24dc08045c7b9d9bb37d5dcedab965d260b.tar.gz |
Some improvement to ruby-rd-mode:
- Support indentation support for EnumList.
- Make rd-intelligent-newline work if previous line isn't ItemList and
MethodList.
Bump to ruby-rd-mode-0.6.11nb1.
Diffstat (limited to 'devel/ruby-rd-mode')
-rw-r--r-- | devel/ruby-rd-mode/Makefile | 4 | ||||
-rw-r--r-- | devel/ruby-rd-mode/distinfo | 3 | ||||
-rw-r--r-- | devel/ruby-rd-mode/patches/patch-aa | 51 |
3 files changed, 55 insertions, 3 deletions
diff --git a/devel/ruby-rd-mode/Makefile b/devel/ruby-rd-mode/Makefile index bc203b80334..d618cc9cadc 100644 --- a/devel/ruby-rd-mode/Makefile +++ b/devel/ruby-rd-mode/Makefile @@ -1,8 +1,9 @@ -# $NetBSD: Makefile,v 1.3 2001/07/21 23:03:24 taca Exp $ +# $NetBSD: Makefile,v 1.4 2002/10/06 15:25:21 taca Exp $ # DISTNAME= rdtool-${RUBY_RD_VERSION} PKGNAME= ${RUBY_PKGNAMEPREFIX}rd-mode-${RUBY_RD_VERSION} +PKGREVISION= 1 CATEGORIES= devel MASTER_SITES= http://www2.pos.to/~tosh/ruby/rdtool/archive/ @@ -23,7 +24,6 @@ SITE_LISP= share/emacs/site-lisp EXTRACT_ELEMENTS= ${DISTNAME}/utils/rd-mode.el DIST_SUBDIR= ruby WRKSRC= ${WRKDIR}/${DISTNAME}/utils -NO_PATCH= # defined NO_CONFIGURE= # defined PLIST_SUBST+= SITE_LISP=${SITE_LISP} diff --git a/devel/ruby-rd-mode/distinfo b/devel/ruby-rd-mode/distinfo index 4205b10a711..5febcd08bcb 100644 --- a/devel/ruby-rd-mode/distinfo +++ b/devel/ruby-rd-mode/distinfo @@ -1,4 +1,5 @@ -$NetBSD: distinfo,v 1.2 2002/02/04 15:35:40 taca Exp $ +$NetBSD: distinfo,v 1.3 2002/10/06 15:25:21 taca Exp $ SHA1 (ruby/rdtool-0.6.11.tar.gz) = 064b3402ef2e92c4a23e4bca50a2c888b85dd79c Size (ruby/rdtool-0.6.11.tar.gz) = 50097 bytes +SHA1 (patch-aa) = 1098c799b547b01eed4b3b2d54a4a42d41e11de2 diff --git a/devel/ruby-rd-mode/patches/patch-aa b/devel/ruby-rd-mode/patches/patch-aa new file mode 100644 index 00000000000..18f7ee38edf --- /dev/null +++ b/devel/ruby-rd-mode/patches/patch-aa @@ -0,0 +1,51 @@ +$NetBSD: patch-aa,v 1.1 2002/10/06 15:25:23 taca Exp $ + +--- rd-mode.el.orig Sat Feb 2 02:58:16 2002 ++++ rd-mode.el +@@ -321,7 +321,7 @@ + "" + (save-excursion + (beginning-of-line) +- (looking-at "--- +\\| *\\(\\* +\\)?") ++ (looking-at "--- +\\| *\\(\\* +\\|([0-9]+) +\\)?") + (length (buffer-substring (match-beginning 0)(match-end 0))))) + + (defun rd-cite-region (beg end) +@@ -379,15 +379,32 @@ + (rd-insert-reftourl url) + (rd-insert-ref (concat label "|URL:" url)))) + ++(defun rd-search-last-listitem () ++ (beginning-of-line) ++ (if (looking-at "[ \t]*\\(\\*\\|([0-9])\\|:\\|---\\)[ \t]*") ++ (match-string 0) ++ (and (and (eq ++ (rd-current-indentation) ++ (progn (forward-line -1) (rd-current-indentation)) ++ ) ++ (not (eq (point) (point-min)) ) ++ ) ++ (rd-search-last-listitem) ++ ) ++ ) ++ ) ++ + (defun rd-intelligent-newline () + (interactive) +- (beginning-of-line) +- (let ((item +- (and (looking-at "[ \t]*\\(\\*\\|([0-9])\\|:\\|---\\)[ \t]*") +- (match-string 0)))) ++ (let (item) ++ (setq item ++ (save-excursion (rd-search-last-listitem) ) ++ ) + (end-of-line) + (newline) +- (if item (insert-string item)))) ++ (if item (insert-string item) ) ++ ) ++ ) + + (provide 'rd-mode) + ;;; rd-mode.el ends here |