* Help with (or gift of?) two wee elisp cmds -- please
@ 2003-02-16 5:18 David Combs
2003-02-16 10:03 ` Kai Großjohann
2003-02-16 22:50 ` Stefan Monnier <foo@acm.com>
0 siblings, 2 replies; 3+ messages in thread
From: David Combs @ 2003-02-16 5:18 UTC (permalink / raw)
I need to proofread & edit (NOW) a 40-page single-spaced
piece of text (it's a proposed set of bylaws for
an organization I belong to), and there's punctuation
and other errors on almost every other line.
(My ascii-text copy came from running their .doc-file through
that wonderful "antiword" program.)
So that my suggested edits are easy for them to see,
and then decide whether or not to do them (which they'd do
in M$ Word), I'd like to show my suggested edits
on an extra line just under their original line, like this:
---- eg: changing this:
Now is the time for all gud
people to come to the the
aid of their after which
they should to to the nearest
bar and have a drink or five.
---- into eg this:
Now is the time for all gud
^good
people to come to the the
^men ^delete 2nd "the"
aid of their after which
^country,
they should to to the nearest but grungiest
( )
bar and have a drink or two.
^, ^five
QUESTION: Is there an existing mode, or can someone show me
some elisp (or even a macro? elisp probably better, simpler,
actually) to let me do the following:
I search to some place in a line of text for which I want to
show a possible correction. Once there, I'd like to run
a function that would, with this line (which needs a comma
after "to me"):
---- CASE ONE:
This is a line that, according to me needs a 2nd comma.
(a) Generates a newline at the end of the line, thus
"double spacing" that line.
(b) space (not tab) me over to *under* where point had
gotten to at the end of my search.
At which point I can type in my caret and suggested comma:
This is a line that, according to me needs a 2nd comma.
^,
, with point now being just after my comma.
---- CASE TWO:
In my now way-too-tired state, I "discover", in the above line, a
misspelling: "line" should have been "zine", and I want to add
my suggested (and stupid) "fix" for it:
So, I'd like to be able to search for "line", leaving point
after the "l" in "line", and run some command that will end up:
(a) "line-feeding" (not newlining) me down just "below" point, and
(b) meanwhile ensuring that that (assumed to already exist) following
line is long enough, by, if needed, appending enough spaces to it
to put me where I, and point, want to be, so I can enter my "^z"
or "^zine" or whatever I choose to show.
(c) If there's any collision of my fixes on that next
line, well, I'll have to handle that by hand,
perhaps by either:
(1) Sliding things around on that correction-line,
and switching the caret to the other side of one
of them, or
(2) Doing a CASE ONE operation, giving me a *second*
suggested-corrections line under the first one.
Please, could some friendly elisp-hacker to show the code for
doing this?
(It'd probably take me two days to code this,
what with having to learn the debugger, etc --
and I have this huge editing job to do NOW
(well, YESTERDAY).
Thanks so very much!
David
PS: Now I go down and finish finding the
many, many things that need fixing.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Help with (or gift of?) two wee elisp cmds -- please
2003-02-16 5:18 Help with (or gift of?) two wee elisp cmds -- please David Combs
@ 2003-02-16 10:03 ` Kai Großjohann
2003-02-16 22:50 ` Stefan Monnier <foo@acm.com>
1 sibling, 0 replies; 3+ messages in thread
From: Kai Großjohann @ 2003-02-16 10:03 UTC (permalink / raw)
dkcombs@panix.com (David Combs) writes:
> So that my suggested edits are easy for them to see,
> and then decide whether or not to do them (which they'd do
> in M$ Word), I'd like to show my suggested edits
> on an extra line just under their original line, like this:
How about giving them "diff -u" output? I find that pretty readable.
--
A turnip curses Elvis
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Help with (or gift of?) two wee elisp cmds -- please
2003-02-16 5:18 Help with (or gift of?) two wee elisp cmds -- please David Combs
2003-02-16 10:03 ` Kai Großjohann
@ 2003-02-16 22:50 ` Stefan Monnier <foo@acm.com>
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Monnier <foo@acm.com> @ 2003-02-16 22:50 UTC (permalink / raw)
>>>>> "David" == David Combs <dkcombs@panix.com> writes:
> So that my suggested edits are easy for them to see,
> and then decide whether or not to do them (which they'd do
> in M$ Word), I'd like to show my suggested edits
> on an extra line just under their original line, like this:
I remember someone (I think from Japan) posting some code to do
those kinds of things (except changes were put inline with [...]
markers like "this [new/old] text ...").
.... oh here it is: it's called `manued.el' and it seems that's even
a Debian package for it.
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-02-16 22:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-16 5:18 Help with (or gift of?) two wee elisp cmds -- please David Combs
2003-02-16 10:03 ` Kai Großjohann
2003-02-16 22:50 ` Stefan Monnier <foo@acm.com>
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.