jdm5548@tamsun.tamu.edu (James Darrell McCauley) (05/24/91)
Perhaps some of you lispers and TeXies could add a function to tex-mode.el: TeX-comment-region (and possibly TeX-uncomment-region) so that it would insert %'s. This can probably already be done using some emacs magic, but like most people, I don't usually get into emacs too much (just use rmail and whatever mode happens to pop up when I edit a file). I haved looked at the tex-mode's that Mr. Hosek just uploaded, so please forgive me (and tell me) if this function exists. -- James Darrell McCauley, Grad Res Asst, Spatial Analysis Lab Dept of Ag Engr, Texas A&M Univ, College Station, TX 77843-2117, USA (jdm5548@diamond.tamu.edu, jdm5548@tamagen.bitnet)
horck@kub.nl (Arthur van Horck) (05/24/91)
In article <16491@helios.TAMU.EDU>, jdm5548@tamsun.tamu.edu (James Darrell McCauley) writes: |> Perhaps some of you lispers and TeXies could add a function to |> tex-mode.el: TeX-comment-region (and possibly TeX-uncomment-region) |> so that it would insert %'s. Why not use plain old highlight-region.el? -------<snip snip>------------------------------------------------- (defun highlight-region (string) "Inserts STRING at the beginning of every line in the region." (interactive "sString to insert: ") (save-excursion (if (bolp) (forward-line -1)) (save-restriction (narrow-to-region (point) (mark)) (goto-char (point-min)) (replace-regexp "^" string)))) -------<snip snip>------------------------------------------------- I fear I've deleted the name of the author/poster; I use it all the time... It was posted to comp.emacs.sources some time ago. Hope this helps, Arthur -- ***--*--*---------------------- Arthur van Horck ----------------------------+ ** * * KUB-University Tilburg, the Netherlands Phone: (+31) 13 662232| * * * horck@kub.nl - kubvx1::horck - ...!hp4nl!kubix!horck| +-*--*-----------------------------SPIN\SMCT---------------------------------+
krab@iesd.auc.dk (Kresten Krab Thorup) (06/01/91)
>>>>> On 24 May 91 04:21:15 GMT, jdm5548@tamsun.tamu.edu (James Darrell McCauley) said:
James> Perhaps some of you lispers and TeXies could add a function to
James> tex-mode.el: TeX-comment-region (and possibly TeX-uncomment-region)
James> so that it would insert %'s.
James> This can probably already be done using some emacs magic, but like
James> most people, I don't usually get into emacs too much (just use
James> rmail and whatever mode happens to pop up when I edit a file).
James> I haved looked at the tex-mode's that Mr. Hosek just uploaded, so
James> please forgive me (and tell me) if this function exists.
Exactly that mode - AUC-TeX, which HOSEK just uploaded will manage
that problem.
/Kresten