From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: Marking/highlighting text temporarily Date: Wed, 29 Apr 2015 16:41:06 +0800 Message-ID: <87lhhb2uot.fsf@ericabrahamsen.net> References: <87a8xyrn39.fsf@pinto.chemeng.ucl.ac.uk> <87bnieufde.fsf@mbork.pl> <87zj5xewsp.fsf@pinto.chemeng.ucl.ac.uk> <87iockmyxy.fsf@ericabrahamsen.net> <87bnicshhc.fsf@ericabrahamsen.net> <87r3r57zre.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnNYi-000612-Ry for emacs-orgmode@gnu.org; Wed, 29 Apr 2015 04:41:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YnNYf-0005ej-Jb for emacs-orgmode@gnu.org; Wed, 29 Apr 2015 04:41:32 -0400 Received: from plane.gmane.org ([80.91.229.3]:49004) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnNYf-0005da-9z for emacs-orgmode@gnu.org; Wed, 29 Apr 2015 04:41:29 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YnNYW-0007nX-HN for emacs-orgmode@gnu.org; Wed, 29 Apr 2015 10:41:20 +0200 Received: from 114.248.23.63 ([114.248.23.63]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Apr 2015 10:41:20 +0200 Received: from eric by 114.248.23.63 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Apr 2015 10:41:20 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Cc: Nicolas Goaziou John Kitchin writes: > Eric Abrahamsen writes: > >> John Kitchin writes: >> >>> Hi Eric, >>> >>> I added some functions in the attachment. they colorize the comments, >>> add an org-comment menu to the org-menu, and some functions for pop to >>> and delete comments from the list mode, and a hydra for commands to >>> insert comments. Do you want to get this up on github to facilitate >>> developing it? >> >> Oh great! Thanks a lot. We are duplicating effort a bit here (but only a >> bit, I'd also written display/delete functions for the list buffer), so >> yes, it would be good to coordinate development. >> >> I suppose it depends a bit on where this is going to end up: I'm >> assuming either org/contrib/lisp, or else as an Elpa package. I don't >> see much difference, except in terms of accessibility to contributors -- >> I don't have access to the Org repo, but putting it there might get more >> contributors on balance. As a package only I would have direct access. >> What do you think? > > I think on github you can give others direct access, or respond to pull > requests. Either way works. Sure, but even if it's on Github, there's still the question of how we make it available to users. That will probably influence how we handle development. If it's in contrib, for instance, it probably just makes more sense for people to send patches to this list. I'm copying Nicolas -- Nicolas, is there a process for inclusion in contrib? Would this be eligible? I'll just stick it in Elpa, otherwise. Thanks! Eric >> >> The hydra thing is interesting -- I wasn't aware of that package. Better >> not to require it unconditionally though, right? > > You could make this conditional if hydra is installed. It is > sufficiently simple that you could leave it out too. > >> >> Thanks, >> Eric >> >>> Eric Abrahamsen writes: >>> >>>> Eric Abrahamsen >>> >>> >>> writes: >>>> >>>>> Vikas Rawal writes: >>>>> >>>>>> On 25-Apr-2015, at 6:22 am, John Kitchin >>>>>> wrote: >>>>>> >>>>>> Inspired by this conversation, I hacked up this functional comment >>>>>> link: >>>>>> >>>>>> http://kitchingroup.cheme.cmu.edu/blog/2015/04/24/Commenting-in-org-files/ >>>>>> >>>>>> >>>>>> It has a custom link type that exports in html and latex, and when >>>>>> you click on it, it asks if you want to delete the comment. >>>>>> >>>>>> Nice. One small issue is that when I highlight a text and add comment >>>>>> to it, and then delete the comment, one space following the last word >>>>>> is removed. >>>>>> >>>>>> Also, it would be good to make the comment stand out in LaTeX (and >>>>>> other) exports, preferably by pushing it to the margin (so it does not >>>>>> move everything else). >>>>> >>>>> Hang on a bit, I'm wasting my afternoon expanding this... >>>> >>>> Okay, this is as far as I got today. I changed some behavior from John's >>>> implementation: when following the links, it seemed like displaying the >>>> comment text would be more useful than deleting it -- I think many of us >>>> have "delete-org-link" functions lying around. I also couldn't get the >>>> add-comment thing to work, as it complained when there was no region, so >>>> I changed how that works. >>>> >>>> Lastly, I spent most of my time learning how tabular list mode works, >>>> and haven't actually tested the export. Will save that for tomorrow. >>>> Otherwise, here's the introduction from the Commentary. Comments and >>>> suggestions very welcome! >>>> >>>> >>>> >>>> Provides a new link type for Org that allows you to create comments >>>> on arbitrary chunks of text. The link prefix is "comment:". >>>> >>>> Add comments with `org-comment-add-comment'. Following the link >>>> will display the text of the comment in a pop-up buffer. The >>>> buffer is in special-mode, hit "q" to dismiss it. >>>> >>>> Call `org-comment-display-comments' to see all comments in a buffer. >>>> >>>> See the `org-comment-[backend]-export-style' options for ways to >>>> format comments in export. >>>> >>>> TODO: >>>> >>>> 1. Better export customization options. >>>> 2. What does the ODT comment XML look like? >>>> 3. More functions in the display comment buffer: copy as >>>> kill... what else? >>>> 4. More functions in the comments list buffer, to display, pop to, >>>> delete, and edit comment text. >>>> 5. Is it possible to have multi-line filled tabular list items? >>>> Long comments are not very useful if you can't see the whole thing. >>>> 5. Allow multiple comment list buffers attached to different Org >>>> buffers. >>>> 6. Maybe a minor mode for ease of manipulating comments? >>> >>> -- >>> Professor John Kitchin >>> Doherty Hall A207F >>> Department of Chemical Engineering >>> Carnegie Mellon University >>> Pittsburgh, PA 15213 >>> 412-268-7803 >>> @johnkitchin >>> http://kitchingroup.cheme.cmu.edu > > -- > Professor John Kitchin > Doherty Hall A207F > Department of Chemical Engineering > Carnegie Mellon University > Pittsburgh, PA 15213 > 412-268-7803 > @johnkitchin > http://kitchingroup.cheme.cmu.edu