Bug#636147: /etc/editorrc ?

2011-08-18 Thread Thorsten Glaser
Josip Rodin dixit: >I went on vacation in the meantime. Ah, okay. No problem. >Are you in a hurry? No, just wondered about the total lack of communication, which with a vacation would of course be expected. Hope it went well. bye, //mirabilos -- Yay for having to rewrite other people's Bash s

Bug#636147: /etc/editorrc ?

2011-08-18 Thread Josip Rodin
On Wed, Aug 17, 2011 at 02:00:48PM +, Thorsten Glaser wrote: > Dixi quod??? > > >Josip Rodin dixit: > > > >>You can prepare a patch, sure, but while you're at it, do first test the > >>situation where 'editorrc' is a slave to 'editor' so that you can be sure > > > >Yup, tested that. Took me qu

Bug#636147: /etc/editorrc ?

2011-08-17 Thread Thorsten Glaser
Dixi quod… >Josip Rodin dixit: > >>You can prepare a patch, sure, but while you're at it, do first test the >>situation where 'editorrc' is a slave to 'editor' so that you can be sure > >Yup, tested that. Took me quite a few turns, too. >The joe patch is attached, if you want me to upload this, >j

Bug#636147: /etc/editorrc ?

2011-08-03 Thread Thorsten Glaser
Josip Rodin dixit: >You can prepare a patch, sure, but while you're at it, do first test the >situation where 'editorrc' is a slave to 'editor' so that you can be sure Yup, tested that. Took me quite a few turns, too. The joe patch is attached, if you want me to upload this, just tell me so. The

Bug#636147: /etc/editorrc ?

2011-08-03 Thread Josip Rodin
On Tue, Aug 02, 2011 at 04:42:01PM +, Thorsten Glaser wrote: > Josip Rodin dixit: > > >/var/lib/misc/editorrc could work? > > Sure would. Do you want me to prepare a patch for joe? > If so, should I version it as NMU or regularily? You can prepare a patch, sure, but while you're at it, do fi

Bug#636147: /etc/editorrc ?

2011-08-02 Thread Piotr Engelking
Thorsten Glaser wrote: > I actually like the idea of making editorrc a slave to editor… And this solution would indeed probably be the best, if it is possible. -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@list

Bug#636147: /etc/editorrc ?

2011-08-02 Thread Piotr Engelking
Thorsten Glaser wrote: > I think that’s a lot more silly. Besides, wrapping > would slow down and bloat. It avoids the problem of editor and editorrc being out of sync. Slowdown is imperceptible (which is the only thing that matters, since joe is always used interactively). There is no memory c

Bug#636147: /etc/editorrc ?

2011-08-02 Thread Thorsten Glaser
Piotr Engelking dixit: >I think that all of this silliness could be avoided, while perfectly >reproducing current behavior, if jstar, joe, etc were wrappers, not >symlinks: I think that’s a lot more silly. Besides, wrapping would slow down and bloat. > #!/bin/bash No bash in my code. > if [

Bug#636147: /etc/editorrc ?

2011-08-02 Thread Thorsten Glaser
Josip Rodin dixit: >/var/lib/misc/editorrc could work? Sure would. Do you want me to prepare a patch for joe? If so, should I version it as NMU or regularily? bye, //mirabilos -- 08:05⎜ mika: Does grml have an tool to read Apple ⎜System Log (asl) files? :) 08:08⎜ yeah. /bin/rm. ;)

Bug#636147: /etc/editorrc ?

2011-08-02 Thread Piotr Engelking
Piotr Engelking wrote: >  #!/bin/bash >  if [ "x$(basename -- $0)" = xeditor ]; then Sorry, insufficient quoting, the above should be of course: if [ "x$(basename -- "$0")" = xeditor ]; then -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe"

Bug#636147: /etc/editorrc ?

2011-08-02 Thread Piotr Engelking
I think that all of this silliness could be avoided, while perfectly reproducing current behavior, if jstar, joe, etc were wrappers, not symlinks: #!/bin/bash if [ "x$(basename -- $0)" = xeditor ]; then progname=jstar else progname="$0" fi exec -a "$progname" /usr/lib/joe/joe.rea

Bug#636147: /etc/editorrc ?

2011-08-02 Thread Josip Rodin
On Tue, Aug 02, 2011 at 09:10:20AM +, Thorsten Glaser wrote: > Josip Rodin dixit: > > >The only question would be whether having a symlink called /etc/editorrc > >would confuse non-joe users. > > Hm. Too bad we can't directly link to /etc/alternatives/editorrc... > if you have any better plac

Bug#636147: /etc/editorrc ?

2011-08-02 Thread Thorsten Glaser
Josip Rodin dixit: >The only question would be whether having a symlink called /etc/editorrc >would confuse non-joe users. Hm. Too bad we can't directly link to /etc/alternatives/editorrc... if you have any better place for it (/var/**/editorrc?), tell so ;-) bye, //mirabilos -- “Having a smo

Bug#636147: /etc/editorrc ?

2011-08-02 Thread Josip Rodin
On Tue, Aug 02, 2011 at 08:03:40AM +, Thorsten Glaser wrote: > Josip Rodin dixit: > > >And if you no longer have /etc/joe/editorrc but instead /etc/editorrc, > >then that still requires source patching for joe to actually *read* it, > >so you're back to square one. > > No that???s actually th

Bug#636147: /etc/editorrc ?

2011-08-02 Thread Thorsten Glaser
Josip Rodin dixit: >And if you no longer have /etc/joe/editorrc but instead /etc/editorrc, >then that still requires source patching for joe to actually *read* it, >so you're back to square one. No that’s actually the fun thing, just symlink it. I have a symlink already: lrwxrwxrwx 1 root root 1

Bug#636147: /etc/editorrc ?

2011-08-02 Thread Josip Rodin
On Mon, Aug 01, 2011 at 10:28:17PM +, Thorsten Glaser wrote: > >Maybe simply coding it differently inside joe will be the best solution - > >if it notices that $self is 'editor', then don't just look for > >/etc/joe/${self}rc but instead look itself up once again through > >/etc/alternatives/ed

Bug#636147: /etc/editorrc ?

2011-08-01 Thread Thorsten Glaser
Josip Rodin dixit: >What's with all the UTF-8 quotes? You're making your mails really hard to >read and for no apparent reason... Oh okay. UTF-8 works here. >The problem with 'editorrc' is that it's really a joe-specific config file, >so it doesn't make sense to move it out of /etc/joe. Well, t

Bug#636147: /etc/editorrc ?

2011-08-01 Thread Josip Rodin
On Mon, Aug 01, 2011 at 08:20:21PM +, Thorsten Glaser wrote: > Hi, > > I just ran into a funny problem regarding update-alternatives > and editorrc: if joe is installed, it wants /etc/joe/editorrc > whereas jupp reads /etc/jupp/editorrc (I???ll use joe???s for now > and symlink to it but that

Bug#636147: /etc/editorrc ?

2011-08-01 Thread Thorsten Glaser
Hi, I just ran into a funny problem regarding update-alternatives and editorrc: if joe is installed, it wants /etc/joe/editorrc whereas jupp reads /etc/jupp/editorrc (I’ll use joe’s for now and symlink to it but that will break when joe was installed, jupp is selected and joe is then removed… prob