1 2007-12-13 Sean O'Rourke <seano@cs.ucla.edu>
3 * sepia.el (sepia-complete-symbol): add shortcut completion.
4 improve XEmacs compatibility.
5 * sepia-w3m.el (sepia-w3m-create-imenu): new function, disabled by
7 * lib/Sepia.pm (repl_*): don't look at return values; use "last
10 2007-11-29 Sean O'Rourke <seano@cs.ucla.edu>
12 * t/02completion.t: new completion tests.
13 * lib/Sepia.pm (completions): rewrote to simplify.
15 2007-11-28 Sean O'Rourke <seano@cs.ucla.edu>
17 * lib/Sepia.pm (printer): Don't sort arrays when printing.
19 * lib/sepia/Debug.pm (warn,die): use Carp for 5.10 compatibility.
20 * Makefile.PL (test_for): $|=1 if prompting.
22 2007-11-27 Sean O'Rourke <seano@cs.ucla.edu>
24 * sepia.el (sepia-perldoc-this): test for w3m when called.
27 * t/01basic.t (Sepia): fix tests w/o Module::Info.
29 2007-11-26 Sean O'Rourke <seano@cs.ucla.edu>
32 * lib/sepia/Debug.pm (add_repl_commands): use define_shortcut.
34 (add_debug_repl_commands): new function.
37 * lib/Sepia.pm (define_shortcut): new function.
38 (define_shortcut): new function.
39 (repl_help): auto-format help text; add arg.
40 (repl_reload): decrement $REPL_LEVEL.
41 (completions): fix abbrev completion.
42 (repl): read ~/.sepiarc; use define_shortcuts.
43 (repl_format): show current if no argument.
44 (module_info): optional dependency.
46 2007-11-08 Sean O'Rourke <seano@cs.ucla.edu>
49 * lib/Sepia/Xref.pm: POD fixup.
50 * sepia.el (sepia-ensure-process): fix stupid attachtty mistake.
52 2007-11-05 Sean O'Rourke <seano@cs.ucla.edu>
54 * lib/sepia/Debug.pm (repl_break): allow "0" as a break condition.
56 2007-10-31 Sean O'Rourke <seano@cs.ucla.edu>
58 * lib/Sepia.pm (repl_size): ",size" command to list variable sizes,
61 2007-10-16 Sean O'Rourke <seano@cs.ucla.edu>
65 * lib/Sepia.pm (repl_pwd): add ",pwd" shortcut.
66 (repl_who): use current package when only regex given.
68 * sepia.el (sepia-repl,sepia-ensure-process): add remote
69 connection with attachtty.
70 (sepia-shared-map): bind \C-c\C-e to eval-expression.
71 (sepia-symbol-info): be more selective about "core version".
73 2007-09-25 Sean O'Rourke <sorourke@cs.ucsd.edu>
75 * lib/Sepia.pm (printer): remove "=>" -- it's annoying.
77 2007-09-21 Sean O'Rourke <sorourke@cs.ucsd.edu>
79 * sepia.el (sepia-load-file): disable debugger.
80 (sepia-symbol-info): be pickier about module core versions.
82 2007-09-20 Sean O'Rourke <sorourke@cs.ucsd.edu>
84 * lib/Sepia.pm (repl_who): use current package if only one arg
85 given, and it's not an existing package.
87 2007-09-18 Sean O'Rourke <sorourke@cs.ucsd.edu>
89 * sepia.el (sepia-watch-for-eval): fix hang with recursive sepia-eval.
91 2007-07-25 Sean O'Rourke <sorourke@cs.ucsd.edu>
93 * sepia.el (sepia-interactive-arg): use xref-completions rather
94 than xref-apropos for working completion.
96 2007-07-25 Ye Wenbin <wenbinye@gmail.com>
98 * sepia.el (sepia-defun-around-point): change the command to a
99 function, because as a command it does nothing.
100 (define-modinfo-function, sepia-maybe-echo): the interactive-p
101 is not true when call as function.
102 (define-modinfo-function, sepia-init): some modinfo-function
103 should eval in a list-context.
104 (sepia-mode): use cperl-mode-abbrev-table as current local-abbrev-table
106 2007-07-24 Ye Wenbin <wenbinye@gmail.com>
108 * sepia.el (sepia-set-found): Use (OFFSET . LIST) to represent
110 (sepia-next, sepia-previous): more generic move commands
111 (sepia-refiner): remove the test, because sometimes use the
112 same declaration, but found in difference place.
114 * sepia-tree.el (sepia-tree-button-cb): widget => pw and
115 xref-location return a list of posible locations.
116 (sepia-tree-tidy-buffer, sepia-tree-use-image): Let user
117 to choose whether use image or not. Set it to a buffer-local
118 variable, so that it didn't interference global values.
120 * sepia.el (sepia-extract-def): seem an argument is excessive
122 * sepia-tree.el (sepia-build-tree-buffer): In my emacs, it
123 doesn't work. The :dynargs didn't become the tree-widget
124 :expander. The tree-widget-convert-widget only receive the
125 'tree-widget, not the total list.
126 sepia-install-keys not defined.
128 * lib/Sepia/Xref.pm (file_modules): seem it is a typo error to use
129 Module::Include rather than Module::Info.
130 Module::Info::packages_inside return an array, the operator
131 || will force in a scalar context.
133 * sepia.el (sepia-lisp-to-perl): use "'" to quote string is not
134 enough, because the string may also contain "'" inside.
135 use (format "%S" string) instead.
136 (define-sepia-query): `sepia-set-found' accept a symbol as
137 argument, not (quote symbol).
139 2007-06-09 Sean O'Rourke <sorourke@cs.ucsd.edu>
142 * sepia.el (sepia-shared-map, etc.): fix keymap initialization.
144 2007-06-06 Sean O'Rourke <sorourke@cs.ucsd.edu>
146 * lib/Sepia/Debug.pm: eval in lexical env when in debugger.
147 * t/50expect.t: REPL tests if you have Test::Expect.
148 * lib/Sepia/Debug.pm: use correct level when none given.
149 * lib/Sepia.pm: No longer bring in exporter (why did we?).
150 * sepia.el (sepia-init): always reinitialize sepia-mode-map.
151 * Makefile.PL: require 5.006 for warnings to quiet stupid "make
154 2007-06-05 Sean O'Rourke <sorourke@cs.ucsd.edu>
156 * Sepia.html: generate single-page manual instead of split.
158 * sepia.el: docstring cleanup.
159 * lib/sepia/Debug.pm: misc usability improvements
161 2007-06-04 Sean O'Rourke <sorourke@cs.ucsd.edu>
164 * test.pl: disable Module::Info tests to avoid Module::Info bug.
166 2007-06-02 Sean O'Rourke <sorourke@cs.ucsd.edu>
169 * Major: replaced comint- with gud-based REPL, use real debugger.
170 * lib/Sepia/Debug.pm: "perl -d" support.
171 * lib/Sepia.pm (repl_shell): new command.
172 * sepia.el (sepia-eval-defun): detect errors, jump to first.
173 (sepia-comint-setup): don't set comint-use-prompt-regexp
174 (sepia-eval-defun,sepia-beginning-of-defun,sepia-end-of-defun): fix
176 2007-06-01 Sean O'Rourke <sorourke@cs.ucsd.edu>
178 * sepia.el (sepia-perldoc-this): don't mess up window
179 configuration when the page isn't found.
180 (sepia-location): use sepia-interactive-arg.
181 (sepia-perl-[np]e-region): fix.
184 (print_dumper): switch format based on size.
186 2007-05-30 Sean O'Rourke <sorourke@cs.ucsd.edu>
187 * sepia.texi: shiny new manual.
188 * lib/Sepia.pm (completions): add special 'VARIABLE' type.
189 (methods): add second $qualified arg.
190 (repl_reload): new function.
191 (sig_warn,repl): override __WARN__ (and __DIE__) cautiously.
192 (repl): nicer warning format.
194 * sepia.el (sepia-eval-raw): stopwarn -> STOPWARN.
195 (sepia-load-file): Fix pop-up error buffer.
196 (sepia-lisp-to-perl): fix quoting of strings.
198 (sepia-mode): make a real major mode.
199 (sepia-scratchpad-mode): ditto.
201 2007-05-29 Sean O'Rourke <sorourke@cs.ucsd.edu>
203 * lib/sepia/Xref.pm (pp_method_named): warn -> dprint.
204 * sepia.el (sepia-simple-method-before-point): new function.
205 (sepia-complete-symbol): use it to complete methods.
207 (sepia-perldoc-function,sepia-view-pod-function,
208 sepia-module-list-function): new variables.
209 (sepia-perldoc-this,sepia-view-pod): new functions.
210 * lib/Sepia.pm (repl): trim leading spaces.
211 (tolisp): escape metacharacters.
212 (repl): don't override "die" if someone has installed a
213 $SIG{__DIE__} handler
215 2007-05-28 Sean O'Rourke <sorourke@cs.ucsd.edu>
218 * sepia.el (sepia-core-version): new function.
219 (sepia-indent-or-complete): fix abbrev expansion.
220 (sepia-symbol-info): report core version in eldoc.
221 (sepia-ident-before-point): new function.
222 (sepia-complete-symbol): use it instead of *-at-point.
223 (sepia-complete-symbol): complete arrays and hashes when '$'
225 * lib/Sepia.pm (printer): Use @::__; distinguish "last as scalar"
226 $__ from printed representation.
227 ($PRINT_PRETTY): columnate lists if this is on.
229 (repl_methods): add regex argument.
231 (completions): Add in package names.
233 2007-05-27 Sean O'Rourke <sorourke@cs.ucsd.edu>
235 * lib/Sepia.pm (repl_methods): fixed.
237 2007-05-26 Sean O'Rourke <sorourke@cs.ucsd.edu>
240 * sepia.el (sepia-doc-scan-buffer): Better doc regex for
242 (sepia-indent-or-complete): try to expand abbrevs before
243 completion (try with snippet.el).
244 (sepia-indent-expand-abbrev): control the above feature.
245 (sepia-complete-symbol): scroll completion buffer; suggested by
247 * lib/Sepia.pm (html_package_list,html_module_list): new
249 (completions): '$'-completion only generates scalars.
250 * sepia-w3m.el: remove spurious sepia-module-list, improve
252 (sepia-module-list,sepia-package-list): better output.
253 (sepia-package-list,sepia-module-list): move Perl code to
254 Sepia.pm, generate list in inferior perl instead of shelling
257 2007-05-23 Sean O'Rourke <sorourke@cs.ucsd.edu>
259 * lib/Sepia.pm (_apropos_re): handle empty completions.
260 (columnate): pretty-print ",who" output.
261 * sepia.el (sepia-complete-symbol): bury stale completions buffer;
262 suggested by Hilko Bengen.
264 2007-05-17 Sean O'Rourke <sorourke@cs.ucsd.edu>
266 * lib/Sepia.pm (_completions1): Fix infinite recursion.
267 (repl): typo; clarify ambiguous vs. unrecognized shortcuts.
269 2007-05-15 Sean O'Rourke <sorourke@cs.ucsd.edu>
271 * sepia.el (sepia-dwim): don't try to jump to location when
272 looking up module docs.
273 * lib/Sepia.pm: use $::__ instead of $Sepia::__
274 (repl_quit): new command.
277 2007-05-12 Sean O'Rourke <sorourke@cs.ucsd.edu>
280 * Makefile.PL: add license.
282 2007-05-09 Sean O'Rourke <sorourke@cs.ucsd.edu>
285 * sepia.el (sepia-load-file): set inhibit-read-only when
287 * lib/Sepia.pm (repl_methods): walk ISA hierarchy looking for
288 functions (XXX: this is much too coarse).
289 (repl_help): use %REPL_DOC to hold command documentation for
291 (repl): display error on canceled continued statement.
293 2007-05-07 Sean O'Rourke <sorourke@cs.ucsd.edu>
295 * lib/Sepia.pm (repl_strict): add 'strict mode' (thanks to
296 Lexical::Persistence) for those who swing that way (I don't),
297 inspired by Devel::REPL.
298 (repl_wantarray): Fix logic.
300 2007-04-25 Sean O'Rourke <sorourke@cs.ucsd.edu>
303 * README: add license.
304 * Makefile.PL: remove dependency on Sub::Uplevel, make PadWalker
306 * lib/Sepia.pm (who): add optional regex filter.
307 (debug_inspect): fix non-scalar printing.
308 * sepia.el (sepia-dwim): fix staleness; change to find
309 documentation for modules.
310 (sepia-find-module-file): new function to try sepia- and xref-
311 module file-finding functions.
312 (sepia-next): use it.
313 (sepia-filter-by-module,sepia-filter-by-all): remove.
314 (sepia-keymap): use `sepia-dwim' for M-.
316 2007-04-15 Sean O'Rourke <sorourke@cs.ucsd.edu>
318 * lib/Sepia.pm (who): add optional regex argument.
320 2007-03-30 Sean O'Rourke <sorourke@cs.ucsd.edu>
322 * sepia-w3m.el (sepia-module-list, sepia-package-list): added
323 detailed index of installed modules.
326 2007-03-16 Sean O'Rourke <sorourke@cs.ucsd.edu>
328 * sepia.el (sepia-set-found): filter spurious nils (XXX: this
330 (sepia-symbol-info): avoid eldoc errors in ecase.
332 2007-03-15 Sean O'Rourke <sorourke@cs.ucsd.edu>
334 * sepia.el (sepia-complete-symbol): fallback completion of
336 * set COPY_EXTENDED_ATTRIBUTES_DISABLE=true to avoid creating ._*
339 2007-03-15 Sean O'Rourke <sorourke@cs.ucsd.edu>
342 * sepia-ido.el: clean up bitrot.
343 * lib/Sepia.pm (apropos): don't create new stashes during
345 * sepia.el (sepia-show-locations): bind inhibit-read-only; filter
347 * Makefile.PL: require PadWalker 1.0 (RT #25463)
349 2007-03-13 Sean O'Rourke <sorourke@cs.ucsd.edu>
352 * README (TODO): user-defined REPL abbrevs.
353 * lib/Sepia.pm (print_*): optional printing via YAML and
354 Data::Dump (from Shell::Perl).
355 (repl_wantarray): change eval context (same).
356 (repl_format): set formatter (same).
358 2007-03-09 Sean O'Rourke <sorourke@cs.ucsd.edu>
361 * sepia.el (sepia-keymap): add *-apropos, find-tag bindings.
362 * README: add organized function index.
363 * sepia.el (sepia-beginning-of-defun, sepia-end-of-defun):
364 fix argument to be prefix instead of point.
365 * sepia.el: documentation.
366 * sepia-ido.el: documentation.
367 * README: cleanup; note limitation of sepia-bodf and -eodf.
369 2007-02-25 Sean O'Rourke <sorourke@cs.ucsd.edu>
371 * Makefile.PL: add Scalar::Util as prereq.
372 * sepia.el (sepia-perl5lib): new variable holding extra PERL5LIB
374 * sepia.el (sepia-init): use it.
375 * sepia.el (sepia-comint-setup): don't clobber keymap.
376 * sepia.el (sepia-indent-or-complete): complete first time if at
378 * Sepia.pm (completions): enhanced completion -- e.g. "wtf"
379 matches "want_to_feed".
380 * Sepia.pm (printer): special-case PDL to use its stringification
381 (XXX: should test for overloaded "").
382 * Sepia.pm (who,repl_who): new functions.
384 2006-09-29 Sean O'Rourke <sorourke@cs.ucsd.edu>
386 * Sepia.pm (Dump): wrap with eval to prevent unexpected exits.
387 * Sepia.pm (repl_chdir): expand '~' and '$HOME'
389 2006-07-01 Sean O'Rourke <sorourke@cs.ucsd.edu>
391 * Sepia.pm (tolisp): undef -> nil
392 * sepia.el (sepia-eval-raw): guess package.
393 * sepia.el (sepia-init): don't pop-to-buffer with prefix argument.
394 * sepia.el (sepia-beginning-of-defun,sepia-end-of-defun): avoid
396 * sepia.el (sepia-buffer-package): look backward from point
397 instead of forward from point-min.
399 2006-05-24 Sean O'Rourke <sorourke@cs.ucsd.edu>
401 * Makefile.PL: added missing dependencies on PadWalker,
403 * Sepia.pm: improved ",command"
404 * sepia-w3m.el (sepia-w3m-perldoc-this): simplify.
405 * sepia.el (perl-*): rename to sepia-*.
406 * sepia.el: reorg and cleanup.
409 2006-05-19 Sean O'Rourke <sorourke@cs.ucsd.edu>
411 * sepia.el: fixed eldoc support. This only works with CVS Emacs,
412 relying on `eldoc-documentation-function'. Also fixed pod
415 2006-05-18 Sean O'Rourke <sorourke@cs.ucsd.edu>
417 * sepia.el, Sepia.pm: improved bulk-transfer protocol.
418 * Sepia.pm: override die with simple inspector/debugger.
419 * Sepia.pm: $__ and @__ now contain results of the last
421 * sepia.el, Sepia.pm: primitive support for evaluating elisp sent
422 from Perl. Turn on comint-use-prompt-regexp because the fields
423 stuff is flaky with this.
424 * sepia.el, Sepia.pm: ",cd" shortcut coordinates directory with
428 2006-04-14 Sean O'Rourke <sorourke@cs.ucsd.edu>
430 * generic-repl.el: replaced by comint.
431 * all: removed EPL dependency.
434 2005-07-12 Sean O'Rourke <sorourke@cs.ucsd.edu>
436 * sepia-w3m.el: fix function name so it's found.
437 * Xref.pm, Sepia.pm: cleanup and numerous bugfixes.
438 * Buffer.pm: new, but not ready for prime-time
439 * sepia.el: delete-thing-at-point removed; misc bugfixes.
440 * test.pl: disabled a bunch of location stuff.
443 2004-09-10 Sean O'Rourke <sorourke@cs.ucsd.edu>
445 * test.pl: some real tests.
446 * Sepia.pm, Xref.pm: Separate simple symbol-table searching from
447 Xref, making the former more reliable.
448 * Xref.pm: More reliable detection of (class) method calls.
449 * sepia.el: results are not displayed for expressions ending in
452 2004-04-12 Sean O'Rourke <seano@cs.ucsd.edu>
454 * sepia.el (sepia-doc-scan-buffer): Make regular expressions a
456 (sepia-ident-at-point): handle upper-case function and variable
457 names for completion (a bit hacky...).
458 (sepia-install-keys): fix keymap installation.
460 2004-04-11 Sean O'Rourke <seano@cs.ucsd.edu>
462 * Xref.pm (guess_module_file): do like Module::Info and trust
463 %INC more than our Xref info. But don't be _too_ smart about
464 this -- we were picking up lots of bogus exports.
465 (pp_method_named): add support for constant-named methods (cribbed
468 2004-04-10 Sean O'Rourke <seano@cs.ucsd.edu>
470 * Xref.pm: update $VERSION to track Sepia release.
472 * sepia.el (sepia-indent-or-complete): only complete on the
475 2004-04-09 Sean O'Rourke <seano@cs.ucsd.edu>
477 * sepia.el (sepia-refiner): tweak refining function a bit more.
478 I'm still not entirely happy with this, but it's getting better.
479 Time and experimentation are required.
481 * sepia-tree.el (sepia-calle[er]-tree): New file. Use
482 caller/callee information to generate tree-view using David
483 Ponce's wonderful tree-widget.
485 * Xref.pm (_apropos_re): Add that Emacs-style multipart-word
486 completion, so e.g. D:v_d -> Devel::Xref::var_defs. It's groovy,
488 (%firstline): gone. Just getting a line within the sub is good
489 enough -- we can fix it on the Emacs side of the fence later.
491 2004-04-08 Sean O'Rourke <seano@cs.ucsd.edu>
493 * sepia-w3m.el (sepia-w3m-perldoc-this): work for functions as
494 well as modules, and try to go to correct position in manpage.
496 * sepia.el (sepia-eval-buffer): use 'BEGIN{ die }' to do Xrefs
497 for scripts without loading them.
499 * Xref.pm: Localize a bunch of things instead of stomping on
500 package lexicals. This makes the module better handle repeated
501 use, for which it wasn't designed.
503 * Xref.pm (mod_subs): Rename package_subs for consistency.
504 (mod_decls): New function to generate decls for evaluation.
506 * sepia.el: misc bug-fixes, and better support for redefining
507 functions with sepia-eval-defun, especially preserving files and
509 (sepia-eval): remove newlines to make line-numbers make more
511 (sepia-interactive-arg): delay reading completions to speed up
513 (sepia-refiner): search both forward and backward, to adjust for
514 e.g. adding comments. Still not so good, but better.
516 2004-04-06 Sean O'Rourke <seano@cs.ucsd.edu>
518 * sepia-w3m.el: moved w3m-perldoc support here.
520 * README: added description, removed disclaimer
522 * sepia.el (sepia-symbol-info, sepia-doc-update): POD scanning
523 and cperl hackage for eldoc support.
525 2004-04-05 Sean O'Rourke <seano@cs.ucsd.edu>
527 * Xref.pm (redefined,forget): make them take a single sub at a
528 time, and pay attention to packages.
529 (_apropos): use package info to narrow choices.
531 * sepia.el (sepia-eval-defun,sepia-eval-buffer): new functions.
533 * test.pl: satisfy the cpants Fascists.
535 * Xref.pm (use_type): try to be smarter about when something's
536 being assigned to, vs. merely used as a reference.
538 * sepia.el (sepia-repl-header): keep up with generic-repl by
539 doing header line, working dir.
540 (sepia-complete-symbol): stupid bug with modules.
541 (sepia-install-keys): new function.
542 (sepia-var-assigns): assignments are more useful than defs.
543 (sepia-init): start REPL by default.
545 * generic-repl.el (repl-cd,repl-set-header): "new" function from
546 Slime to track working dir, update header line.
548 2004-04-04 Sean O'Rourke <seano@cs.ucsd.edu>
550 * Sepia.jpg: don't ask -- just look.
552 * sepia.el (sepia-ident-at-point): fixed bug with sigils.
553 (sepia-complete-symbol): fixed bug with undefined function
555 Always use Data::Dumper.
557 * any-repl.el: new file implementing REPL, basically stolen from
560 * pscope.el: renamed to sepia.el to go with name change.
562 2004-04-03 Sean O'Rourke <seano@cs.ucsd.edu>
564 * pscope.el (pscope-set-found): remove locations with no
565 file in package "main", which were causing errors before.
566 (pscope-dwim): new function. New functions
567 pscope-complete-symbol and pscope-indent-or-complete for
568 symbol completion. Not well-tested, but they seem to work.
569 The most annoying thing is that since the Xref db isn't
570 automatically updated, it won't always know as much as you
572 (pscope-load-file): new function.
574 * Xref.pm: update export lists to reflect new functions.
576 2004-04-02 Sean O'Rourke <seano@cs.ucsd.edu>
578 * Xref.pm: minor cleanup.
580 * pscope.el: pass module, file, line to Perl side (where it's
581 ignored for now); fix line number refinement to be a
582 little less over-eager; fix pscope-callees to go to sub
583 definitions instead of call sites.
585 * README: added TODO section.