From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jose Robins Subject: Re: Abbrevs and Org Tables Date: Mon, 21 Apr 2008 07:09:06 -0700 Message-ID: <480CA002.2080603@yahoo.com> References: <008b01c8a2cb$2ff9f3f0$6580a8c0@CUBE> <480B4E80.1030308@yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1178165659==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jnwj0-0002M2-LQ for emacs-orgmode@gnu.org; Mon, 21 Apr 2008 10:10:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jnwij-0002JL-9E for emacs-orgmode@gnu.org; Mon, 21 Apr 2008 10:10:28 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jnwii-0002JI-Up for emacs-orgmode@gnu.org; Mon, 21 Apr 2008 10:10:12 -0400 Received: from n4a.bullet.mail.ac4.yahoo.com ([76.13.13.67]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JnwiX-00051g-4K for emacs-orgmode@gnu.org; Mon, 21 Apr 2008 10:10:12 -0400 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: Carsten Dominik Cc: emacs-orgmode@gnu.org This is a multi-part message in MIME format. --===============1178165659== Content-Type: multipart/alternative; boundary="------------000703000709090502050303" This is a multi-part message in MIME format. --------------000703000709090502050303 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Carsten Dominik wrote: > > On Apr 20, 2008, at 4:09 PM, Jose Robins wrote: > >> On a related note, I have some emphasis formatting/cell width >> problems within tables. >> I have some custom emphasis alist along with hiding the emphasis >> markers defined so... >> >> '(org-emphasis-alist (quote (("*" bold "" "") ("/" italic >> "" "") ("_" underline "" "") ("=" org-code "" >> "" verbatim) ("~" org-verbatim "" "" verbatim) ("+" >> (:strike-through t) "" "") ("&" font-lock-keyword-face "" >> "") ("#" j-green-face "" "") ("^" j-highlight-face "" "")))) >> >> '(org-hide-emphasis-markers t) >> >> where j-green-face or essentially the default face with the color >> green etc. >> >> When I do an emphasis inside a table, the emphasis special characters >> would disappear and the correct formatting would appear on the word, >> however the right cell vertical divider character would get pulled in >> by 1 character. does not resize the table cell properly. I need >> to manually insert a space to move the divider to the right and then >> everything would work as expected. Just a minor annoyance.. >> >> Not sure if I explained the issue correctly... > > Hi Jose, > > does C-c C-c fix the alignment, or not? > > - Carsten Hi Carsten, Actually, C-c C-c does work while does not work reliably. I was just trying out different emphasis markers. Bold was what was giving me problem today (* regexp) - didn't work while C-c C-c worked. My customized ones seemed to work fine today. However I do distinctly remember them not working properly earlier. Let me know if C-c C-c is the "recommended" method for reformatting tables... I've also found my custom emphasis markers not working reliably on headlines. Sometimes, they will revert back to not being emphasized depending on the following headline's contents. Not sure if using emphasis markers on headlines is discouraged or not. If you like, I can document this better and send you more details on the type of actions that cause the formatting to break. I've always been known to indulge in "corner" cases and using things on the bleeding edge, so things like this always happen to me :) Thanks, Jose > >> >> >> Jose >> >> Chris Randle wrote: >>> >>> Hi >>> >>> I define an Emacs abbrev of, say, "hnbc" to exapand to "how now brown >>> cow", and then type "hnbc[space]" inside an org table cell. After it >>> has >>> expanded it pushes the trailing cell divider away, even though the cell >>> width was adequate. Tabbing out of the cell doesn't re-fit the cell >>> divider - it stays "stuck" where it was after the expansion. >>> >>> It's slightly odd, because if I type lots of leading spaces before the >>> abbrev and then tab, org happily moves the expanded text back to the >>> beginning of the cell, but still doesn't move the trailing divider. >>> >>> C-c C-c fixes it, and also moving the cursor over to the trailing cell >>> divider and backspace one char and tab. >>> >>> Any other workarounds or suggestions? >>> >>> >> _______________________________________________ >> 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 > --------------000703000709090502050303 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit

Carsten Dominik wrote:

On Apr 20, 2008, at 4:09 PM, Jose Robins wrote:

On a related note, I have some emphasis formatting/cell width problems within tables.
I have some custom emphasis alist along with hiding the emphasis markers defined so...

'(org-emphasis-alist (quote (("*" bold "<b>" "</b>") ("/" italic "<i>" "</i>") ("_" underline "<u>" "</u>") ("=" org-code "<code>" "</code>" verbatim) ("~" org-verbatim "" "" verbatim) ("+" (:strike-through t) "<del>" "</del>") ("&" font-lock-keyword-face "" "") ("#" j-green-face "" "") ("^" j-highlight-face "" ""))))

 '(org-hide-emphasis-markers t)

where j-green-face or essentially the default face with the color green etc.

When I do an emphasis inside a table, the emphasis special characters would disappear and the correct formatting would appear on the word, however the right cell vertical divider character would get pulled in by 1 character. <tab> does not resize the table cell properly. I need to manually insert a space to move the divider to the right and then everything would work as expected.  Just a minor annoyance..

Not sure if I explained the issue correctly...

Hi Jose,

does C-c C-c fix the alignment, or not?

- Carsten
Hi Carsten,
Actually, C-c C-c does work while <tab> does not work reliably. I was just trying out different emphasis markers. Bold was what was giving me problem today (* regexp) - <TAB> didn't work while C-c C-c worked. My customized ones seemed to work fine today. However I do distinctly remember them not working properly earlier.  Let me know if C-c C-c is the "recommended" method for reformatting tables...

I've also found my custom emphasis markers not working reliably on headlines. Sometimes, they will revert back to not being emphasized depending on the following headline's contents. Not sure if using emphasis markers on headlines is discouraged or not. If you like, I can document this better and send you more details on the type of actions that cause the formatting to break.

I've always been known to indulge in "corner" cases and using things on the bleeding edge, so things like this always happen to me :)

Thanks,
Jose




Jose

Chris Randle wrote:

Hi

I define an Emacs abbrev of, say, "hnbc" to exapand to "how now brown
cow", and then type "hnbc[space]" inside an org table cell. After it has
expanded it pushes the trailing cell divider away, even though the cell
width was adequate. Tabbing out of the cell doesn't re-fit the cell
divider - it stays "stuck" where it was after the expansion.

It's slightly odd, because if I type lots of leading spaces before the
abbrev and then tab, org happily moves the expanded text back to the
beginning of the cell, but still doesn't move the trailing divider.

C-c C-c fixes it, and also moving the cursor over to the trailing cell
divider and backspace one char and tab.

Any other workarounds or suggestions?


_______________________________________________
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
--------------000703000709090502050303-- --===============1178165659== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1178165659==--