He's made a plugin that reformats comments, and does The Right Thing with MD within comments. To me this is something that the text editor should do automatically. This, and it's ilk, such as wrap, par, etc. have to be run as an external command, piping out and in. Respectfully, Sherwood of Sherwood's Forests On 5 May 2016 at 11:24, Paul J. Lucas <paul at lucasmail.org> wrote:> I'm really not sure what you're trying to say. Your mail seems to be all > over the map. > > This certainly isn't the forum for a vi vs. emacs war. > > - Paul > > > On May 5, 2016, at 9:38 AM, Marty McGowan <martymcg at fastmail.com> wrote: > > > > paul, > > > > being a bwk follower (the K in awk), i'm a fan of well-focused > > tools; i suspect "wrap" is such. > > > > however, wrapping is but a single feature in emacs. oh, if the world > > had the patience to learn emacs. > > > > and in a note of self-contradiction, it is a bit difficult to > > reconcile heavy command-line use with such an editor. > > > > i thank markdown for having lead me to OrgMode. and now my > > command-line format converter is "pandoc". depending on the venue > > (e.g. leanpub) it does a fine job of producing the necessary > > markdown. > > > > =*+*- > > Marty McGowan 908 230-3739 > > mcgowan at alum.mit.edu; http://alum.mit.edu/www/mcgowan > > > >> On Thu, May 5, 2016, at 12:16 AM, Paul J. Lucas wrote: > >> Hello - > >> > >> I?ve been hacking on wrap(1) and wrapc(1) that are text and > >> source-code-comment reformatters, respectively, for a long time. I > >> started them to scratch my particular itch, namely the ability to easily > >> rewrap text (and, in particular, comments in source code) while in an > >> editor. See: > >> > >> https://github.com/paul-j-lucas/wrap > > > >> > >> _______________________________________________ > >> Markdown-Discuss mailing list > >> Markdown-Discuss at six.pairlist.net > >> https://pairlist6.pair.net/mailman/listinfo/markdown-discuss > > _______________________________________________ > > Markdown-Discuss mailing list > > Markdown-Discuss at six.pairlist.net > > https://pairlist6.pair.net/mailman/listinfo/markdown-discuss > _______________________________________________ > Markdown-Discuss mailing list > Markdown-Discuss at six.pairlist.net > https://pairlist6.pair.net/mailman/listinfo/markdown-discuss >-------------- next part -------------- An HTML attachment was scrubbed... URL: <https://pairlist6.pair.net/pipermail/markdown-discuss/attachments/20160506/d6bbe6df/attachment.html>
On May 6, 2016, at 5:25 AM, Sherwood Botsford <sgbotsford at gmail.com> wrote:> He's made a plugin that reformats comments, and does The Right Thing with MD within comments.And I presume it?s limited to emacs. If I wanted to use it for some other editor, or as part of another pipeline, or as part of a source code repository commit hook, I probably couldn?t use the plugin.> To me this is something that the text editor should do automatically. This, and it's ilk, such as wrap, par, etc. have to be run as an external command, piping out and in.If you hadn?t seen some other editor, let?s call it, say, ?iv? [sic] and I pre-configured it binding a certain key sequence to call an external command, and sat you down in front of it for you to use and didn?t tell you it used an external command, you wouldn?t know the difference. You can?t be pointing out that it?s technically slightly less efficient because it has to spawn another process, I don?t think, because it?s all been completed by the time your fingers come completely off the keys. It is a text editor, after all, that spends most of its time waiting for a human to press keys. Efficiency at that level simply doesn?t matter. If I had a Way-Back machine and release wrap with Markdown support before the emacs plugin, perhaps I could have commented, ?If only people learned to write code the Unix way with pipes.? Nah, I wouldn?t do that. Why not? Because, as I stated initially, I started wrap in 1996 (!) to scratch my particular itch as someone who enjoys coding for its own sake. Perhaps Marty did something similar. I announced wrap?s Markdown support on the list in case others might find it useful. If so, great; if not, just keep using what you?re using. There?s really no need for anything else. - Paul