From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: bug? in orgstruct-mode Date: Thu, 26 Feb 2009 21:19:53 +0100 Message-ID: <1D816E04-0A62-4DBD-907B-EA6CF552C5A8@uva.nl> References: Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LcmjK-0004Po-UM for emacs-orgmode@gnu.org; Thu, 26 Feb 2009 15:21:15 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LcmjJ-0004Os-Es for emacs-orgmode@gnu.org; Thu, 26 Feb 2009 15:21:14 -0500 Received: from [199.232.76.173] (port=36717 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LcmjI-0004Of-Us for emacs-orgmode@gnu.org; Thu, 26 Feb 2009 15:21:13 -0500 Received: from nf-out-0910.google.com ([64.233.182.188]:20090) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LcmjI-0007yZ-LZ for emacs-orgmode@gnu.org; Thu, 26 Feb 2009 15:21:12 -0500 Received: by nf-out-0910.google.com with SMTP id d3so266632nfc.26 for ; Thu, 26 Feb 2009 12:21:12 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Austin Frank Cc: emacs-orgmode@gnu.org Hi Austin, On Feb 26, 2009, at 5:57 AM, Austin Frank wrote: > On Sun, Feb 22 2009, Carsten Dominik wrote: > >> yes, this is something I have been missing myself. > > Glad it wasn't just me. I feel guilty if I'm the only one requesting > the feature. Now that you've implemented it, are you using > orgstruct++-mode? I only added the checking for plain list item context newly to orgstruct++-mode. The rest was there before, largely undocumented, I believe. And yes, I am using it a lot, like you in magit log mode for example. orgstruct-mode I use in programming modes when I write docstrings etc, but in any text-like mode, I would also prefer the ++ version. - Carsten > > >> orgstruct-mode is a mode that steals away bindings from the major >> mode >> and overrules them in certain contexts. In general, it does make >> sense to keep the regions where this applies small, so that the >> normal >> functions bound to the same keys can do there thing everywhere else. > > Maybe it makes sense for people who still cling to the idea that there > are useful modes outside of org-mode ;) > >> You are describing here a case, where you actually never want to use >> the original function of that key M-RET, right? > > Yes, I almost never want to use `message-newline-and-reformat'. > >> (defun org-run-insert-heading () >> (interactive) >> (run-like-in-org-mode 'org-insert-heading)) > > Did not know about `run-like-in-org-mode'. Very cool. > >> What I have now done as well is to extend orgstruct++-mode so that it >> will do what you ask for. You neet to pull the git version for this >> change. > > I use this full time in text-based modes now. It's especially great > for > composing emails (message-mode) and editing commit messages > (magit-log-edit-mode). > > Thanks for adding this feature. I understand why it can't be the > default, but I would encourage folks to try it. It works really well > for me. > > Have a good one, > /au > > -- > Austin Frank > http://aufrank.net > GPG Public Key (D7398C2F): http://aufrank.net/personal.asc > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode