nixpkgs/pkgs/applications/editors/emacs-modes/jdee/jde-wiz-update-implements-clause.patch
Ludovic Courtès e4d8c334b4 JDEE: Add wizard usability patch.
svn path=/nixpkgs/trunk/; revision=16395
2009-07-16 14:05:14 +00:00

15 lines
544 B
Diff

This patch allows `C-c C-v e' (`jde-wiz-extend-abstract-class') to do the
right thing, even when invoked, say, on an empty file.
--- jde/lisp/jde-wiz.el (revision 90)
+++ jde/lisp/jde-wiz.el (working copy)
@@ -99,7 +99,7 @@ extends clause is updated"
(save-excursion
(let* ((class-re "class[ \t]+\\([a-zA-z]+[a-zA-Z0-9._]*\\).*[ \n]*")
(open-brace-pos
- (scan-lists (point) -1 1))
+ (ignore-errors (scan-lists (point) -1 1)))
(class-name-end-pos
(when open-brace-pos
(goto-char open-brace-pos)