1 2008-01-10 Sean O'Rourke <seano@cs.ucla.edu>
3 * lib/Sepia.pm (columnate): true -> defined
5 * sepia-cpan.el: new file, experimental CPAN interface.
6 * lib/Sepia/CPAN.pm: new file.
8 2008-01-05 Sean O'Rourke <seano@cs.ucla.edu>
10 * README: remove redundant/obsolete documentation
12 2008-01-02 Sean O'Rourke <seano@cs.ucla.edu>
14 * lib/Sepia.pm (flow): get closer to margin.
16 2007-12-22 Sean O'Rourke <seano@cs.ucla.edu>
18 * t/50expect.t: mysterious change to placate expect.
19 * sepia.el (sepia-shared-map): adjust bindings.
20 (sepia-complete-symbol): Fix shortcut completion.
21 * sepia-snippet.el (sepia-snippet-abbrev): make snippet optional,
24 2007-12-20 Sean O'Rourke <seano@cs.ucla.edu>
26 * lib/Sepia.pm (who): don't apply regex to sigil.
27 (completions): fix multi-arg version (used by Emacs).
28 (html_module_list,html_package_list): return string if asked.
30 2007-12-17 Sean O'Rourke <seano@cs.ucla.edu>
32 * sepia.el (sepia-shared-map): bind cperl-perldoc.
34 2007-12-16 Sean O'Rourke <seano@cs.ucla.edu>
36 * Makefile.PL (test_for): use MakeMaker's prompt().
38 2007-12-13 Sean O'Rourke <seano@cs.ucla.edu>
40 * sepia.el (sepia-complete-symbol): add shortcut completion.
41 improve XEmacs compatibility.
42 * sepia-w3m.el (sepia-w3m-create-imenu): new function, disabled by
44 * lib/Sepia.pm (repl_*): don't look at return values; use "last
47 2007-11-29 Sean O'Rourke <seano@cs.ucla.edu>
49 * t/02completion.t: new completion tests.
50 * lib/Sepia.pm (completions): rewrote to simplify.
52 2007-11-28 Sean O'Rourke <seano@cs.ucla.edu>
54 * lib/Sepia.pm (printer): Don't sort arrays when printing.
56 * lib/sepia/Debug.pm (warn,die): use Carp for 5.10 compatibility.
57 * Makefile.PL (test_for): $|=1 if prompting.
59 2007-11-27 Sean O'Rourke <seano@cs.ucla.edu>
61 * sepia.el (sepia-perldoc-this): test for w3m when called.
64 * t/01basic.t (Sepia): fix tests w/o Module::Info.
66 2007-11-26 Sean O'Rourke <seano@cs.ucla.edu>
69 * lib/sepia/Debug.pm (add_repl_commands): use define_shortcut.
71 (add_debug_repl_commands): new function.
74 * lib/Sepia.pm (define_shortcut): new function.
75 (define_shortcut): new function.
76 (repl_help): auto-format help text; add arg.
77 (repl_reload): decrement $REPL_LEVEL.
78 (completions): fix abbrev completion.
79 (repl): read ~/.sepiarc; use define_shortcuts.
80 (repl_format): show current if no argument.
81 (module_info): optional dependency.
83 2007-11-08 Sean O'Rourke <seano@cs.ucla.edu>
86 * lib/Sepia/Xref.pm: POD fixup.
87 * sepia.el (sepia-ensure-process): fix stupid attachtty mistake.
89 2007-11-05 Sean O'Rourke <seano@cs.ucla.edu>
91 * lib/sepia/Debug.pm (repl_break): allow "0" as a break condition.
93 2007-10-31 Sean O'Rourke <seano@cs.ucla.edu>
95 * lib/Sepia.pm (repl_size): ",size" command to list variable sizes,
98 2007-10-16 Sean O'Rourke <seano@cs.ucla.edu>
102 * lib/Sepia.pm (repl_pwd): add ",pwd" shortcut.
103 (repl_who): use current package when only regex given.
105 * sepia.el (sepia-repl,sepia-ensure-process): add remote
106 connection with attachtty.
107 (sepia-shared-map): bind \C-c\C-e to eval-expression.
108 (sepia-symbol-info): be more selective about "core version".
110 2007-09-25 Sean O'Rourke <sorourke@cs.ucsd.edu>
112 * lib/Sepia.pm (printer): remove "=>" -- it's annoying.
114 2007-09-21 Sean O'Rourke <sorourke@cs.ucsd.edu>
116 * sepia.el (sepia-load-file): disable debugger.
117 (sepia-symbol-info): be pickier about module core versions.
119 2007-09-20 Sean O'Rourke <sorourke@cs.ucsd.edu>
121 * lib/Sepia.pm (repl_who): use current package if only one arg
122 given, and it's not an existing package.
124 2007-09-18 Sean O'Rourke <sorourke@cs.ucsd.edu>
126 * sepia.el (sepia-watch-for-eval): fix hang with recursive sepia-eval.
128 2007-07-25 Sean O'Rourke <sorourke@cs.ucsd.edu>
130 * sepia.el (sepia-interactive-arg): use xref-completions rather
131 than xref-apropos for working completion.
133 2007-07-25 Ye Wenbin <wenbinye@gmail.com>
135 * sepia.el (sepia-defun-around-point): change the command to a
136 function, because as a command it does nothing.
137 (define-modinfo-function, sepia-maybe-echo): the interactive-p
138 is not true when call as function.
139 (define-modinfo-function, sepia-init): some modinfo-function
140 should eval in a list-context.
141 (sepia-mode): use cperl-mode-abbrev-table as current local-abbrev-table
143 2007-07-24 Ye Wenbin <wenbinye@gmail.com>
145 * sepia.el (sepia-set-found): Use (OFFSET . LIST) to represent
147 (sepia-next, sepia-previous): more generic move commands
148 (sepia-refiner): remove the test, because sometimes use the
149 same declaration, but found in difference place.
151 * sepia-tree.el (sepia-tree-button-cb): widget => pw and
152 xref-location return a list of posible locations.
153 (sepia-tree-tidy-buffer, sepia-tree-use-image): Let user
154 to choose whether use image or not. Set it to a buffer-local
155 variable, so that it didn't interference global values.
157 * sepia.el (sepia-extract-def): seem an argument is excessive
159 * sepia-tree.el (sepia-build-tree-buffer): In my emacs, it
160 doesn't work. The :dynargs didn't become the tree-widget
161 :expander. The tree-widget-convert-widget only receive the
162 'tree-widget, not the total list.
163 sepia-install-keys not defined.
165 * lib/Sepia/Xref.pm (file_modules): seem it is a typo error to use
166 Module::Include rather than Module::Info.
167 Module::Info::packages_inside return an array, the operator
168 || will force in a scalar context.
170 * sepia.el (sepia-lisp-to-perl): use "'" to quote string is not
171 enough, because the string may also contain "'" inside.
172 use (format "%S" string) instead.
173 (define-sepia-query): `sepia-set-found' accept a symbol as
174 argument, not (quote symbol).
176 2007-06-09 Sean O'Rourke <sorourke@cs.ucsd.edu>
179 * sepia.el (sepia-shared-map, etc.): fix keymap initialization.
181 2007-06-06 Sean O'Rourke <sorourke@cs.ucsd.edu>
183 * lib/Sepia/Debug.pm: eval in lexical env when in debugger.
184 * t/50expect.t: REPL tests if you have Test::Expect.
185 * lib/Sepia/Debug.pm: use correct level when none given.
186 * lib/Sepia.pm: No longer bring in exporter (why did we?).
187 * sepia.el (sepia-init): always reinitialize sepia-mode-map.
188 * Makefile.PL: require 5.006 for warnings to quiet stupid "make
191 2007-06-05 Sean O'Rourke <sorourke@cs.ucsd.edu>
193 * Sepia.html: generate single-page manual instead of split.
195 * sepia.el: docstring cleanup.
196 * lib/sepia/Debug.pm: misc usability improvements
198 2007-06-04 Sean O'Rourke <sorourke@cs.ucsd.edu>
201 * test.pl: disable Module::Info tests to avoid Module::Info bug.
203 2007-06-02 Sean O'Rourke <sorourke@cs.ucsd.edu>
206 * Major: replaced comint- with gud-based REPL, use real debugger.
207 * lib/Sepia/Debug.pm: "perl -d" support.
208 * lib/Sepia.pm (repl_shell): new command.
209 * sepia.el (sepia-eval-defun): detect errors, jump to first.
210 (sepia-comint-setup): don't set comint-use-prompt-regexp
211 (sepia-eval-defun,sepia-beginning-of-defun,sepia-end-of-defun): fix
213 2007-06-01 Sean O'Rourke <sorourke@cs.ucsd.edu>
215 * sepia.el (sepia-perldoc-this): don't mess up window
216 configuration when the page isn't found.
217 (sepia-location): use sepia-interactive-arg.
218 (sepia-perl-[np]e-region): fix.
221 (print_dumper): switch format based on size.
223 2007-05-30 Sean O'Rourke <sorourke@cs.ucsd.edu>
224 * sepia.texi: shiny new manual.
225 * lib/Sepia.pm (completions): add special 'VARIABLE' type.
226 (methods): add second $qualified arg.
227 (repl_reload): new function.
228 (sig_warn,repl): override __WARN__ (and __DIE__) cautiously.
229 (repl): nicer warning format.
231 * sepia.el (sepia-eval-raw): stopwarn -> STOPWARN.
232 (sepia-load-file): Fix pop-up error buffer.
233 (sepia-lisp-to-perl): fix quoting of strings.
235 (sepia-mode): make a real major mode.
236 (sepia-scratchpad-mode): ditto.
238 2007-05-29 Sean O'Rourke <sorourke@cs.ucsd.edu>
240 * lib/sepia/Xref.pm (pp_method_named): warn -> dprint.
241 * sepia.el (sepia-simple-method-before-point): new function.
242 (sepia-complete-symbol): use it to complete methods.
244 (sepia-perldoc-function,sepia-view-pod-function,
245 sepia-module-list-function): new variables.
246 (sepia-perldoc-this,sepia-view-pod): new functions.
247 * lib/Sepia.pm (repl): trim leading spaces.
248 (tolisp): escape metacharacters.
249 (repl): don't override "die" if someone has installed a
250 $SIG{__DIE__} handler
252 2007-05-28 Sean O'Rourke <sorourke@cs.ucsd.edu>
255 * sepia.el (sepia-core-version): new function.
256 (sepia-indent-or-complete): fix abbrev expansion.
257 (sepia-symbol-info): report core version in eldoc.
258 (sepia-ident-before-point): new function.
259 (sepia-complete-symbol): use it instead of *-at-point.
260 (sepia-complete-symbol): complete arrays and hashes when '$'
262 * lib/Sepia.pm (printer): Use @::__; distinguish "last as scalar"
263 $__ from printed representation.
264 ($PRINT_PRETTY): columnate lists if this is on.
266 (repl_methods): add regex argument.
268 (completions): Add in package names.
270 2007-05-27 Sean O'Rourke <sorourke@cs.ucsd.edu>
272 * lib/Sepia.pm (repl_methods): fixed.
274 2007-05-26 Sean O'Rourke <sorourke@cs.ucsd.edu>
277 * sepia.el (sepia-doc-scan-buffer): Better doc regex for
279 (sepia-indent-or-complete): try to expand abbrevs before
280 completion (try with snippet.el).
281 (sepia-indent-expand-abbrev): control the above feature.
282 (sepia-complete-symbol): scroll completion buffer; suggested by
284 * lib/Sepia.pm (html_package_list,html_module_list): new
286 (completions): '$'-completion only generates scalars.
287 * sepia-w3m.el: remove spurious sepia-module-list, improve
289 (sepia-module-list,sepia-package-list): better output.
290 (sepia-package-list,sepia-module-list): move Perl code to
291 Sepia.pm, generate list in inferior perl instead of shelling
294 2007-05-23 Sean O'Rourke <sorourke@cs.ucsd.edu>
296 * lib/Sepia.pm (_apropos_re): handle empty completions.
297 (columnate): pretty-print ",who" output.
298 * sepia.el (sepia-complete-symbol): bury stale completions buffer;
299 suggested by Hilko Bengen.
301 2007-05-17 Sean O'Rourke <sorourke@cs.ucsd.edu>
303 * lib/Sepia.pm (_completions1): Fix infinite recursion.
304 (repl): typo; clarify ambiguous vs. unrecognized shortcuts.
306 2007-05-15 Sean O'Rourke <sorourke@cs.ucsd.edu>
308 * sepia.el (sepia-dwim): don't try to jump to location when
309 looking up module docs.
310 * lib/Sepia.pm: use $::__ instead of $Sepia::__
311 (repl_quit): new command.
314 2007-05-12 Sean O'Rourke <sorourke@cs.ucsd.edu>
317 * Makefile.PL: add license.
319 2007-05-09 Sean O'Rourke <sorourke@cs.ucsd.edu>
322 * sepia.el (sepia-load-file): set inhibit-read-only when
324 * lib/Sepia.pm (repl_methods): walk ISA hierarchy looking for
325 functions (XXX: this is much too coarse).
326 (repl_help): use %REPL_DOC to hold command documentation for
328 (repl): display error on canceled continued statement.
330 2007-05-07 Sean O'Rourke <sorourke@cs.ucsd.edu>
332 * lib/Sepia.pm (repl_strict): add 'strict mode' (thanks to
333 Lexical::Persistence) for those who swing that way (I don't),
334 inspired by Devel::REPL.
335 (repl_wantarray): Fix logic.
337 2007-04-25 Sean O'Rourke <sorourke@cs.ucsd.edu>
340 * README: add license.
341 * Makefile.PL: remove dependency on Sub::Uplevel, make PadWalker
343 * lib/Sepia.pm (who): add optional regex filter.
344 (debug_inspect): fix non-scalar printing.
345 * sepia.el (sepia-dwim): fix staleness; change to find
346 documentation for modules.
347 (sepia-find-module-file): new function to try sepia- and xref-
348 module file-finding functions.
349 (sepia-next): use it.
350 (sepia-filter-by-module,sepia-filter-by-all): remove.
351 (sepia-keymap): use `sepia-dwim' for M-.
353 2007-04-15 Sean O'Rourke <sorourke@cs.ucsd.edu>
355 * lib/Sepia.pm (who): add optional regex argument.
357 2007-03-30 Sean O'Rourke <sorourke@cs.ucsd.edu>
359 * sepia-w3m.el (sepia-module-list, sepia-package-list): added
360 detailed index of installed modules.
363 2007-03-16 Sean O'Rourke <sorourke@cs.ucsd.edu>
365 * sepia.el (sepia-set-found): filter spurious nils (XXX: this
367 (sepia-symbol-info): avoid eldoc errors in ecase.
369 2007-03-15 Sean O'Rourke <sorourke@cs.ucsd.edu>
371 * sepia.el (sepia-complete-symbol): fallback completion of
373 * set COPY_EXTENDED_ATTRIBUTES_DISABLE=true to avoid creating ._*
376 2007-03-15 Sean O'Rourke <sorourke@cs.ucsd.edu>
379 * sepia-ido.el: clean up bitrot.
380 * lib/Sepia.pm (apropos): don't create new stashes during
382 * sepia.el (sepia-show-locations): bind inhibit-read-only; filter
384 * Makefile.PL: require PadWalker 1.0 (RT #25463)
386 2007-03-13 Sean O'Rourke <sorourke@cs.ucsd.edu>
389 * README (TODO): user-defined REPL abbrevs.
390 * lib/Sepia.pm (print_*): optional printing via YAML and
391 Data::Dump (from Shell::Perl).
392 (repl_wantarray): change eval context (same).
393 (repl_format): set formatter (same).
395 2007-03-09 Sean O'Rourke <sorourke@cs.ucsd.edu>
398 * sepia.el (sepia-keymap): add *-apropos, find-tag bindings.
399 * README: add organized function index.
400 * sepia.el (sepia-beginning-of-defun, sepia-end-of-defun):
401 fix argument to be prefix instead of point.
402 * sepia.el: documentation.
403 * sepia-ido.el: documentation.
404 * README: cleanup; note limitation of sepia-bodf and -eodf.
406 2007-02-25 Sean O'Rourke <sorourke@cs.ucsd.edu>
408 * Makefile.PL: add Scalar::Util as prereq.
409 * sepia.el (sepia-perl5lib): new variable holding extra PERL5LIB
411 * sepia.el (sepia-init): use it.
412 * sepia.el (sepia-comint-setup): don't clobber keymap.
413 * sepia.el (sepia-indent-or-complete): complete first time if at
415 * Sepia.pm (completions): enhanced completion -- e.g. "wtf"
416 matches "want_to_feed".
417 * Sepia.pm (printer): special-case PDL to use its stringification
418 (XXX: should test for overloaded "").
419 * Sepia.pm (who,repl_who): new functions.
421 2006-09-29 Sean O'Rourke <sorourke@cs.ucsd.edu>
423 * Sepia.pm (Dump): wrap with eval to prevent unexpected exits.
424 * Sepia.pm (repl_chdir): expand '~' and '$HOME'
426 2006-07-01 Sean O'Rourke <sorourke@cs.ucsd.edu>
428 * Sepia.pm (tolisp): undef -> nil
429 * sepia.el (sepia-eval-raw): guess package.
430 * sepia.el (sepia-init): don't pop-to-buffer with prefix argument.
431 * sepia.el (sepia-beginning-of-defun,sepia-end-of-defun): avoid
433 * sepia.el (sepia-buffer-package): look backward from point
434 instead of forward from point-min.
436 2006-05-24 Sean O'Rourke <sorourke@cs.ucsd.edu>
438 * Makefile.PL: added missing dependencies on PadWalker,
440 * Sepia.pm: improved ",command"
441 * sepia-w3m.el (sepia-w3m-perldoc-this): simplify.
442 * sepia.el (perl-*): rename to sepia-*.
443 * sepia.el: reorg and cleanup.
446 2006-05-19 Sean O'Rourke <sorourke@cs.ucsd.edu>
448 * sepia.el: fixed eldoc support. This only works with CVS Emacs,
449 relying on `eldoc-documentation-function'. Also fixed pod
452 2006-05-18 Sean O'Rourke <sorourke@cs.ucsd.edu>
454 * sepia.el, Sepia.pm: improved bulk-transfer protocol.
455 * Sepia.pm: override die with simple inspector/debugger.
456 * Sepia.pm: $__ and @__ now contain results of the last
458 * sepia.el, Sepia.pm: primitive support for evaluating elisp sent
459 from Perl. Turn on comint-use-prompt-regexp because the fields
460 stuff is flaky with this.
461 * sepia.el, Sepia.pm: ",cd" shortcut coordinates directory with
465 2006-04-14 Sean O'Rourke <sorourke@cs.ucsd.edu>
467 * generic-repl.el: replaced by comint.
468 * all: removed EPL dependency.
471 2005-07-12 Sean O'Rourke <sorourke@cs.ucsd.edu>
473 * sepia-w3m.el: fix function name so it's found.
474 * Xref.pm, Sepia.pm: cleanup and numerous bugfixes.
475 * Buffer.pm: new, but not ready for prime-time
476 * sepia.el: delete-thing-at-point removed; misc bugfixes.
477 * test.pl: disabled a bunch of location stuff.
480 2004-09-10 Sean O'Rourke <sorourke@cs.ucsd.edu>
482 * test.pl: some real tests.
483 * Sepia.pm, Xref.pm: Separate simple symbol-table searching from
484 Xref, making the former more reliable.
485 * Xref.pm: More reliable detection of (class) method calls.
486 * sepia.el: results are not displayed for expressions ending in
489 2004-04-12 Sean O'Rourke <seano@cs.ucsd.edu>
491 * sepia.el (sepia-doc-scan-buffer): Make regular expressions a
493 (sepia-ident-at-point): handle upper-case function and variable
494 names for completion (a bit hacky...).
495 (sepia-install-keys): fix keymap installation.
497 2004-04-11 Sean O'Rourke <seano@cs.ucsd.edu>
499 * Xref.pm (guess_module_file): do like Module::Info and trust
500 %INC more than our Xref info. But don't be _too_ smart about
501 this -- we were picking up lots of bogus exports.
502 (pp_method_named): add support for constant-named methods (cribbed
505 2004-04-10 Sean O'Rourke <seano@cs.ucsd.edu>
507 * Xref.pm: update $VERSION to track Sepia release.
509 * sepia.el (sepia-indent-or-complete): only complete on the
512 2004-04-09 Sean O'Rourke <seano@cs.ucsd.edu>
514 * sepia.el (sepia-refiner): tweak refining function a bit more.
515 I'm still not entirely happy with this, but it's getting better.
516 Time and experimentation are required.
518 * sepia-tree.el (sepia-calle[er]-tree): New file. Use
519 caller/callee information to generate tree-view using David
520 Ponce's wonderful tree-widget.
522 * Xref.pm (_apropos_re): Add that Emacs-style multipart-word
523 completion, so e.g. D:v_d -> Devel::Xref::var_defs. It's groovy,
525 (%firstline): gone. Just getting a line within the sub is good
526 enough -- we can fix it on the Emacs side of the fence later.
528 2004-04-08 Sean O'Rourke <seano@cs.ucsd.edu>
530 * sepia-w3m.el (sepia-w3m-perldoc-this): work for functions as
531 well as modules, and try to go to correct position in manpage.
533 * sepia.el (sepia-eval-buffer): use 'BEGIN{ die }' to do Xrefs
534 for scripts without loading them.
536 * Xref.pm: Localize a bunch of things instead of stomping on
537 package lexicals. This makes the module better handle repeated
538 use, for which it wasn't designed.
540 * Xref.pm (mod_subs): Rename package_subs for consistency.
541 (mod_decls): New function to generate decls for evaluation.
543 * sepia.el: misc bug-fixes, and better support for redefining
544 functions with sepia-eval-defun, especially preserving files and
546 (sepia-eval): remove newlines to make line-numbers make more
548 (sepia-interactive-arg): delay reading completions to speed up
550 (sepia-refiner): search both forward and backward, to adjust for
551 e.g. adding comments. Still not so good, but better.
553 2004-04-06 Sean O'Rourke <seano@cs.ucsd.edu>
555 * sepia-w3m.el: moved w3m-perldoc support here.
557 * README: added description, removed disclaimer
559 * sepia.el (sepia-symbol-info, sepia-doc-update): POD scanning
560 and cperl hackage for eldoc support.
562 2004-04-05 Sean O'Rourke <seano@cs.ucsd.edu>
564 * Xref.pm (redefined,forget): make them take a single sub at a
565 time, and pay attention to packages.
566 (_apropos): use package info to narrow choices.
568 * sepia.el (sepia-eval-defun,sepia-eval-buffer): new functions.
570 * test.pl: satisfy the cpants Fascists.
572 * Xref.pm (use_type): try to be smarter about when something's
573 being assigned to, vs. merely used as a reference.
575 * sepia.el (sepia-repl-header): keep up with generic-repl by
576 doing header line, working dir.
577 (sepia-complete-symbol): stupid bug with modules.
578 (sepia-install-keys): new function.
579 (sepia-var-assigns): assignments are more useful than defs.
580 (sepia-init): start REPL by default.
582 * generic-repl.el (repl-cd,repl-set-header): "new" function from
583 Slime to track working dir, update header line.
585 2004-04-04 Sean O'Rourke <seano@cs.ucsd.edu>
587 * Sepia.jpg: don't ask -- just look.
589 * sepia.el (sepia-ident-at-point): fixed bug with sigils.
590 (sepia-complete-symbol): fixed bug with undefined function
592 Always use Data::Dumper.
594 * any-repl.el: new file implementing REPL, basically stolen from
597 * pscope.el: renamed to sepia.el to go with name change.
599 2004-04-03 Sean O'Rourke <seano@cs.ucsd.edu>
601 * pscope.el (pscope-set-found): remove locations with no
602 file in package "main", which were causing errors before.
603 (pscope-dwim): new function. New functions
604 pscope-complete-symbol and pscope-indent-or-complete for
605 symbol completion. Not well-tested, but they seem to work.
606 The most annoying thing is that since the Xref db isn't
607 automatically updated, it won't always know as much as you
609 (pscope-load-file): new function.
611 * Xref.pm: update export lists to reflect new functions.
613 2004-04-02 Sean O'Rourke <seano@cs.ucsd.edu>
615 * Xref.pm: minor cleanup.
617 * pscope.el: pass module, file, line to Perl side (where it's
618 ignored for now); fix line number refinement to be a
619 little less over-eager; fix pscope-callees to go to sub
620 definitions instead of call sites.
622 * README: added TODO section.