From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: BUG: Navigating table to change fields Date: Tue, 21 Apr 2009 09:51:00 +0200 Message-ID: <888FEC80-55DE-4CD3-A8AC-19A45578A775@gmail.com> References: <87myabyz2y.fsf@gollum.intra.norang.ca> <87iqkzyytv.fsf@gollum.intra.norang.ca> <87eivnyuux.fsf@gollum.intra.norang.ca> <75583D30-8CE7-4E7F-A22D-DA2F1C36E1ED@gmail.com> <87ab6bym4a.fsf@gollum.intra.norang.ca> 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 1LwBBV-0003mU-ME for emacs-orgmode@gnu.org; Tue, 21 Apr 2009 04:18:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LwBBR-0003lH-0T for emacs-orgmode@gnu.org; Tue, 21 Apr 2009 04:18:29 -0400 Received: from [199.232.76.173] (port=40103 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LwBBQ-0003l6-Qq for emacs-orgmode@gnu.org; Tue, 21 Apr 2009 04:18:24 -0400 Received: from mx20.gnu.org ([199.232.41.8]:55702) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LwBBQ-0000wE-7d for emacs-orgmode@gnu.org; Tue, 21 Apr 2009 04:18:24 -0400 Received: from mail-qy0-f116.google.com ([209.85.221.116]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LwBBP-00064x-L0 for emacs-orgmode@gnu.org; Tue, 21 Apr 2009 04:18:23 -0400 Received: by mail-qy0-f116.google.com with SMTP id 14so4330568qyk.14 for ; Tue, 21 Apr 2009 01:18:23 -0700 (PDT) In-Reply-To: <87ab6bym4a.fsf@gollum.intra.norang.ca> 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: Bernt Hansen Cc: emacs-orgmode@gnu.org On Apr 21, 2009, at 12:51 AM, Bernt Hansen wrote: > That would probably be better. I just copied my current setup from > discussions on the org-mode list about yasnippet. > > Is there anything I can do to help make that happen? I have added this hook, see my other message. I guess what you can do it to talk to the yasnippet author and try to make it attach itself to Org-mode in the proper way. With the new release, the proper way would be this: 1. Write a function that checks for an executes the yasnippet action, and returns t. If no snippet is to be expanded, the function must return nil. 2. Yasnipped should use an `eval-after' form to check for the existence of the hook o`rg-tab-after-check-for-cycling-action' and to add the new function to that hook. 3. The current way of setting up yasnippet for Org-mode might be used as a backup method for older versions of Org, even though, as you noted, it breaks some functionality in Org. - Carsten > > -Bernt > > Carsten Dominik writes: > >> Maybe we should have a hook in org-cycle where yasnippet can >> hook into, instead of overruling the TAB key...... >> >> - Carsten >> >> On Apr 20, 2009, at 9:43 PM, Bernt Hansen wrote: >> >>> Nevermind. It works. >>> >>> Gah. Sorry for the noise. This turns out to be my yasnippet setup >>> messing up the TAB key in tables. :/ It works fine for a minimal >>> emacs >>> test. >>> >>> -Bernt >>> >>> Bernt Hansen writes: >>> >>>> Okay I think this is a bug. If I traverse the table FORWARDS with >>>> TAB >>>> and type it inserts in front of the field that is there. If I >>>> traverse >>>> it BACKWARDS with S-TAB it clears the field when I type. >>>> >>>> This seems inconsistent (and I really like the blank the field as >>>> soon >>>> as you type behaviour) >>>> >>>> -Bernt >>>> >>>> >>>> Bernt Hansen writes: >>>> >>>>> Hi, >>>>> >>>>> Did the user interface for tables change recently? When I TAB >>>>> between >>>>> fields in a table entering anything normally blanks out the field >>>>> and >>>>> replaces it with whatever new I am typing. >>>>> >>>>> Today it always seems to insert in front of whatever is already >>>>> there. >>>>> >>>>> I'm just wondering if this was an intentional change or if it's a >>>>> bug. >>>>> I didn't notice anything in the release notes about this (but >>>>> maybe I >>>>> just missed it). >>>>> >>>>> -Bernt >>>>> >>>>> >>>>> _______________________________________________ >>>>> 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 >>>> >>>> >>>> _______________________________________________ >>>> 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 >>> >>> >>> _______________________________________________ >>> 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