Re: default sh-test in sh-script.el - XEmacs-Beta - Xemacs Mailing List Archives XEmacs Mailing List Archives Manage lists Login Sign Up Login Sign Up Manage this list 2022 September August July June May April March February January 2021 December November October September August July June May April March February January 2020 December November October September August July June May April March February January 2019 December November October September August July June May April March February January 2018 December November October September August July June May April March February January 2017 December November October September August July June May April March February January 2016 December November October September August July June May April March February January 2015 December November October September August July June May April March February January 2014 December November October September August July June May April March February January 2013 December November October September August July June May April March February January 2012 December November October September August July June May April March February January 2011 December November October September August July June May April March February January 2010 December November October September August July June May April March February January 2009 December November October September August July June May April March February January 2008 December November October September August July June May April March February January 2007 December November October September August July June May April March February January 2006 December November October September August July June May April March February January 2005 December November October September August July June May April March February January 2004 December November October September August July June May April March February January 2003 December November October September August July June May April March February January 2002 December November October September August July June May April March February January 2001 December November October September August July June May April March February January 2000 December November October September August July June May April March February January 1999 December November October September August July June May April March February January 1998 December November October September August July June May April March List overview thread Re: default sh-test in sh-script.el Ville Skyttä Saturday, 9 February 2008 Sat, 9 Feb '08 9:51 p.m. (permalink) Applied, thanks! On Dec 10, 2007 3:55 AM, FKtPp <m_pupil(a)yahoo.com.cn&gt; wrote: ... Hi Aidan, Sorry for bring confusion to you... But that patch is not related to indent setting, the extra point moving occurs when you using `C-c C-i' to insert if-else template. The minibuffer initial-string initialized in the way people have to type extra keys to avoid shell script syntax error. Say if I want to insert a: if [ -z "$ABC" ]; then echo "gocha!" fi I just type `C-c C-i' and the minibuffer initialized as "condition: [ ]"(point on character `]') and I continue type in `-z "$ABC"<RET><C-]>' will result in: if [ -z "$ABC"]; then fi Note the sytax error at `ABC"]; then', character `"' and `]' should be seperated by a space. To avoid this error, I always have to type in `<C-b> -z "$ABC"<RET><C-]>' or `-z "$ABC" <RET><C-]>' etc. With my patch while you type `C-c C-i' the minibuffer initialized as "condition [ ]"(point just at the space character before `]' character). And this will save some extra key strocks. --- Aidan Kehoe <kehoea(a)parhasard.net&gt; wrote: > > Dear FKtPp, > > Ar an seachtú lá de mí na Nollaig, scríobh FKtPp: > > > The variable sh-test defined in package sh-script sh-script.el > make me feel uncomfortable while editing sh/ksh files. > > > > The default value make it move the point to the end of the initial > prompt string, and it make me always have to move back/delete one > character when inserting `if' clause in sh/ksh shell-script mode. > > This is a little confusing. Normally, one does not see the initial > prompt > string in shell-script-mode; prompt strings are limited to shell-mode > and > other modes associated with comint. And when, in shell-script mode, I > type > > if [ -f > > enter, and then tab, I get eight spaces, both with and without your > patch. What exactly are you seeing--please give us example > inputs--and what > exactly would you like to see? > > Bye, > > Aidan > > > It will be much better if the default value be as this: > > > > --- sh-script.el~ Wed Nov 28 17:03:20 2007 > > +++ sh-script.el Fri Dec 07 16:45:44 2007 > > ＠＠ -600,8 +600,8 ＠＠ > > "Word to delimit here documents.") > > > > (defvar sh-test > > - '((sh "[ ]" . 3) > > - (ksh88 "[[ ]]" . 4)) > > + '((sh "[ ]" . 2) > > + (ksh88 "[[ ]]" . 3)) > > "Initial input in Bourne if, while and until skeletons. See > `sh-feature'.") > > -- > ¿Dónde estará ahora mi sobrino Yoghurtu Nghé, que tuvo que huir > precipitadamente de la aldea por culpa de la escasez de rinocerontes? > ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs _______________________________________________ XEmacs-Beta mailing list XEmacs-Beta(a)xemacs.org http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta _______________________________________________ XEmacs-Beta mailing list XEmacs-Beta(a)xemacs.org http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta +0/-0 Like / Dislike Reply Powered by HyperKitty version 1.0.3.