i without prefix: ask for category, do binary insertion
i with prefix: do binary insertion in current category
uppercase I: insert directly under cursor
The patch below fixes todo-insert-item so that it will
insert the item in place, instead of at the top of the
buffer, when invoked with a prefix argument.
Dominik <dominik@strw.LeidenUniv.nl>:
- recommend autoloading instead of require
- inserting from different buffer didn't work
(now fixed -- I pray)
- provided public entry point to insert items
from normal lisp code
I was just annoyed with the fact that there is no way
to dynamically control the insertion accuracy. I mean:
the variable `todo-insert-threshold' does the job, but
it is not very handy if one wants to mix the two
behaviors (bisection and "insert right here under the
cursor").
Therefore I did a quick hack in the function
`todo-insert-item'. Now by giving a prefix argument to
the insert command (i.e. by typing "C-u i"), entries
are inserted exactly at the line where the cursor is.
It would be better to give the value of
`todo-insert-threshold' as a numeric argument of
`todo-insert-item' (like "M-8 i"), but it's too late
now for continuing to hack.
the following facilities available:
Added todo-print, todo-top-priorities and todo-jump with matching
variables; Parameterized todo-header, todo-category-beg,
todo-category-end and todo-category-sep; Added autoload comments;
todo-category-select: Modified regexp to make category names unique;
todo-forward-item: Added optional COUNT vaiable; todo-insert-item:
Rewrote completing read entry.
Also, check out the extended list of things left to be done to this
package at the end of the documentation!
I just downloaded your package and after reading the docs I
decided to do some reformatting. Hope you don't mind. Now they
are in such a format that the html page can be automatically
generated from the source file. As an example, I generated the
attached page using the following command: ripdoc.pls | \
t2html.pls -a "Oliver.Seidel" -e Oliver.Seidel@cl.cam.ac.uk -simple
And of course I appreciate it. Jari's stuff can be found at:
ftp://cs.uta.fi/pub/ssjaaa/, while I'm making the 1997-10-15T17:18:11Z!os10000@seidel-space.de page
available at http://www.cl.cam.ac.uk/users/os10000/doc/todo-mode.html
(That link will be valid until 10/1998 or slightly longer.)
my Emacs 19.34. Beware of the spelling in some of the
variable names. I looked up "threshold" in a dictionary
and here in Britain this appears to be the way to spell it.
the latest version, got 1997-08-19T14:00:36Z!os10000@seidel-space.de, and returned this.
He writes:
Thanks a lot for the new version of todo-mode.el. As you will see I
have messed it up a bit, hopefully for the better -- I don't like
short, cryptic names for variables and functions, so I renamed most of
them, and `defalias'ed the old function names. I hope you don't mind
too much, I just kinda couldn't stop myself.
Additionally, I included some support for multiline entries, cleaned
up (IMHO :) a lot of the code, included completion-support for which
category to install a new entry in, and possibly some other changes I
can't remember :)
It's getting rather late, and I have just done some preliminary
testing on whether all of this really works, but so far it looks
good.
Uses changed. Test that we can display multibyte chars.
(french-calendar-day-name-array, french-calendar-month-name-array):
New functions. Use them instead of directly using these variables.
(french-calendar-multibyte-month-name-array): New variable.
(french-calendar-multibyte-special-days-array): New variable.
(calendar-print-french-date): Bind enable-multibyte-characters to t.