Re: [dev] [PATCH] Add tab-completion file-name expansion.

2014-07-08 Thread Silvan Jegen
On Tue, Jul 8, 2014 at 1:28 AM, Carlos Torres wrote: > Hello, > > On Mon, Jul 7, 2014 at 7:20 PM, Maxime Coste wrote: >> On Mon, Jul 07, 2014 at 09:39:36PM +0200, Anselm R Garbe wrote: >>> On 7 July 2014 21:24, Maxime Coste wrote: >>> Otherwise the tomatos that you harvest >>> in the summer in y

Re: [dev] [st] [PATCH] Remove all strcmp and strlen calls on Glyph.c[]

2014-07-08 Thread Roberto E. Vargas Caballero
> There were a few occurrences of strcmp and strlen being called on Glyph.c[], > which is not always null-terminated (this actually depends on the last values > in Good catch, I'll apply it. Thanks. PD: Sorry for the delay, but I was on vacations. -- Roberto E. Vargas Caballero

Re: [dev][libsl] Naming scheme

2014-07-08 Thread Anselm R Garbe
Hi Lee, On 8 July 2014 00:29, Lee Fallat wrote: > Any particularly good reason why certain names are missing vowels and > consonants arbitrarily? For example, Fnt vs Font, Drw vs Draw and Cur > vs Cursor. Last I checked typing 1 more letter wasn't a big deal. The > end result is saving 3 to 1 key

[dev] [slock] Configure OOM killer as non-root

2014-07-08 Thread Danilo
Hi all In commit ba3acfc, a patch has been applied to disable the Linux OOM killer for slock. While I like that change, I could not figure out what the proper way is to start slock without root privileges. A regular user does not seem to have write permissions on /proc/self/oom_score_adj. Can som

Re: [dev] [slock] Configure OOM killer as non-root

2014-07-08 Thread Danilo
Oh, never mind that stupid question. Sorry about bothering you, when setting the suid bit I forgot to change the owner to root, so of course that didn't help... Have a nice day, Danilo Am Di, 8. Jul 2014, um 11:42, schrieb Danilo: > Hi all > > In commit ba3acfc, a patch has been applied to disa

Re: [dev] Plain text editor that sucks less - an alternative to VIM?

2014-07-08 Thread Paul Onyschuk
On Sun, 29 Jun 2014 13:24:58 +0200 patrick295767 wrote: > For many years I have been looking for a lightweight alternative to > VIM. (sthg else than Emacs, elvis, nano,... and all the billion of > text editor). I'll point out two editors that have their issues, but at the same time have some int

Re: [dev] Plain text editor that sucks less - an alternative to VIM?

2014-07-08 Thread Silvan Jegen
On Tue, Jul 8, 2014 at 12:30 PM, Paul Onyschuk wrote: > On Sun, 29 Jun 2014 13:24:58 +0200 > patrick295767 wrote: > >> For many years I have been looking for a lightweight alternative to >> VIM. (sthg else than Emacs, elvis, nano,... and all the billion of >> text editor). > [...] I like seeing

Re: [dev] [slock] Configure OOM killer as non-root

2014-07-08 Thread FRIGN
On Tue, 08 Jul 2014 12:04:29 +0200 Danilo wrote: > Oh, never mind that stupid question. Sorry about bothering you, when > setting the suid bit I forgot to change the owner to root, so of course > that didn't help... Hey Danilo, I ran into that issue, too, when I wrote the patch to fix the shado

Re: [dev] Plain text editor that sucks less - an alternative to VIM?

2014-07-08 Thread Teodoro Santoni
I swear, I (for me) would use TECO for non-programming things if it'd got the command set of ed or sam. -- Teodoro Santoni

Re: [dev] [slock] Configure OOM killer as non-root

2014-07-08 Thread Amadeus Folego
Hi FRIGN, Danilo, I also can't use it as non-root, how did you solve it? Thanks, Amadeus. On Tue, Jul 08, 2014 at 03:16:33PM +0200, FRIGN wrote: > On Tue, 08 Jul 2014 12:04:29 +0200 > Danilo wrote: > > > Oh, never mind that stupid question. Sorry about bothering you, when > > setting the suid

Re: [dev] [slock] Configure OOM killer as non-root

2014-07-08 Thread Danilo
Hi Amadeus Am Di, 8. Jul 2014, um 16:08, schrieb Amadeus Folego: > I also can't use it as non-root, how did you solve it? You need to change the owner of the binary to "root" and set the suid bit: $ sudo chown root slock $ sudo chmod u+s slock If you use "make install", this happens automatical

Re: [dev] [slock] Configure OOM killer as non-root

2014-07-08 Thread Amadeus Folego
Oh, Thanks! I did not know about the "make install" thing, I was just building it. On Tue, Jul 08, 2014 at 04:19:41PM +0200, Danilo wrote: > Hi Amadeus > > Am Di, 8. Jul 2014, um 16:08, schrieb Amadeus Folego: > > I also can't use it as non-root, how did you solve it? > > You need to change the

Re: [dev] Linking against rt in dwm

2014-07-08 Thread Evan Gates
> dwm.c:1451:3: warning: implicit declaration of function 'clock_gettime' [-Wimplicit-function-declaration] > dwm.c:1451:21: error: 'CLOCK_MONOTONIC' undeclared (first use in this function) you need _POSIX_C_SOURCE >= 199309L but in config.mk it's defined as 2 -emg

Re: [dev] Linking against rt in dwm

2014-07-08 Thread Eric Pruitt
On Tue, Jul 08, 2014 at 10:26:32AM -0700, Evan Gates wrote: > you need _POSIX_C_SOURCE >= 199309L but in config.mk it's defined as 2 Thank you, that worked. Eric

Re: [dev] [st] Glitch with copy & paste and combining Unicode sequences

2014-07-08 Thread Roberto E. Vargas Caballero
> > Urxvt's behaviour is also the same as Xterm with an added bonus: it > > actually renders the combined Unicode sequence where as on Xterm and st, As far as I know, this should be the correct behaviour, but I am not sure about if we need to add this feature, because if you can use the unicode ch

Re: [dev] [PATCH] Refactor the mainloop

2014-07-08 Thread Roberto E. Vargas Caballero
> I am going to apply the patch of FRIGN about monotonic clock before > your patch, , that conflict with your changes. If you can rebase > this patch with that patch could be great (I hope I could push the > patch of FRIGN soon). And, please be careful with the style ;). St No answer to this requi

Re: [dev] [st] Glitch with copy & paste and combining Unicode sequences

2014-07-08 Thread Nick
Quoth Roberto E. Vargas Caballero: > As far as I know, this should be the correct behaviour, but I am not sure > about if we need to add this feature, because if you can use the unicode > character instead of the unicode sequence. Are you talking about precombined characters vs combining sequence

Re: [dev] [st] Glitch with copy & paste and combining Unicode sequences

2014-07-08 Thread Roberto E. Vargas Caballero
> Because if so, there are many many cases where there is no > precombined version in unicode, so you have to use the combining > characters. Yeah, of course, there are a lot of them. The point here is if these cases are common or not. All the characters that I use can be written with unicode ch

[dev] [st] Problem linking in OpenBSD

2014-07-08 Thread Roberto E. Vargas Caballero
Hi, After the patch 0015e198bfc (Making surf compile again with rt), I cannot compile st in OpenBSD: $ make st build options: CFLAGS = -O2 -pipe -g -std=c99 -pedantic -Wall -Wvariadic-macros -Os -I. -I/usr/include -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/X11R6/include/freet

Re: [dev] [PATCH] Render faint attribute

2014-07-08 Thread Roberto E. Vargas Caballero
> > I think it is a good idea, but Christoph knows more than me about this part > of the code (colors), so I think he should take the decision about it. Applied, thanks! -- Roberto E. Vargas Caballero

Re: [dev] [st] Problem linking in OpenBSD

2014-07-08 Thread Dimitris Papastamos
On Tue, Jul 08, 2014 at 10:45:15PM +0200, Roberto E. Vargas Caballero wrote: > I could see a similar problem in [1]. Do someone have the same problem? I had the same problem and reverted the patch. Not sure what the proper solution is.

Re: [dev] [st] Problem linking in OpenBSD

2014-07-08 Thread Roberto E. Vargas Caballero
> > I could see a similar problem in [1]. Do someone have the same problem? > > I had the same problem and reverted the patch. > > Not sure what the proper solution is. Maybe the solution is send a report to the OpenBSD list, as it is suggested in the link I put. -- Roberto E. Vargas Caballe

Re: [dev] [st] Problem linking in OpenBSD

2014-07-08 Thread Dimitris Papastamos
On Tue, Jul 08, 2014 at 10:51:42PM +0200, Roberto E. Vargas Caballero wrote: > > > I could see a similar problem in [1]. Do someone have the same problem? > > > > I had the same problem and reverted the patch. > > > > Not sure what the proper solution is. > > Maybe the solution is send a report

Re: [dev] [st] Glitch with copy & paste and combining Unicode sequences

2014-07-08 Thread Nick
Quoth Roberto E. Vargas Caballero: > > Because if so, there are many many cases where there is no > > precombined version in unicode, so you have to use the combining > > characters. > > Yeah, of course, there are a lot of them. The point here is if these > cases are common or not. All the chara

[dev] [st][PATCH 2/4] Add 8 bit version of NEL

2014-07-08 Thread Roberto E. Vargas Caballero
NEL version for 7 bits environments already was implemented in st. This patch adds the 8 bit version of it. --- st.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/st.c b/st.c index 77ae26e..1162700 100644 --- a/st.c +++ b/st.c @@ -2401,7 +2401,10 @@ tcontrolcode(uchar asc

[dev] [st][PATCH 4/4] Add 8 bit version of DCS, APC, PM, OSC

2014-07-08 Thread Roberto E. Vargas Caballero
DCS, APC, PM, OSC version for 7 bits environments already was implemented in st. This patch adds the 8 bit version of it. --- st.c | 39 --- 1 file changed, 32 insertions(+), 7 deletions(-) diff --git a/st.c b/st.c index 6ec4858..b221f33 100644 --- a/st.c +++

[dev] [st][PATCH 3/4] Add 8 bit version of HTS

2014-07-08 Thread Roberto E. Vargas Caballero
HTS version for 7 bits environments already was implemented in st. This patch adds the 8 bit version of it. --- st.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/st.c b/st.c index 1162700..6ec4858 100644 --- a/st.c +++ b/st.c @@ -2405,7 +2405,9 @@ tcontrolcode(uchar ascii

[dev] [st][PATCH 1/4] Add 8 bit version of DECID

2014-07-08 Thread Roberto E. Vargas Caballero
DECID version for 7 bits environments already was implemented in st. This patch adds the 8 bit version of it. --- st.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/st.c b/st.c index 69ec122..77ae26e 100644 --- a/st.c +++ b/st.c @@ -2408,7 +2408,10 @@ tcontrolcode(uchar a

Re: [dev] [st] Problem linking in OpenBSD

2014-07-08 Thread FRIGN
On Tue, 8 Jul 2014 22:45:15 +0200 "Roberto E. Vargas Caballero" wrote: > cannot find -lrt The fix is rather trivial: Just remove the damn -lrt. Seriously: On OpenBSD, you don't need to include any libs to use time.h; on Linux, this is only necessary for glibc-versions below 2.17. Cheers FRIGN

[dev] [sandy] [PATCH] VIM key bindings.

2014-07-08 Thread Dimitris Zervas
I know that some of you will really hate me about this, but I patched sandy to have command and insert mode. More patches will follow with actual vim bindings (yank, paste, etc.) if I don't get flamed :P I'll work on them this week. Can anyone help me read the escape key without the 1s delay? B

[dev] Simple, suckless syslogd?

2014-07-08 Thread Andrew Gwozdziewycz
I'm looking for a very simple and suckless syslogd. What do people on this list use for this purpose?

Re: [dev] [sandy] [PATCH] VIM key bindings.

2014-07-08 Thread Andrew Hills
On 7/8/14, 8:27 PM, Dimitris Zervas wrote: > I know that some of you will really hate me about this, but I patched sandy > to have command and insert mode. Actually, this was all that kept me from using sandy. (Well, I suppose my unwillingness to change my habits is what kept me...) Please keep

Re: [dev] [PATCH] Refactor the mainloop

2014-07-08 Thread Anselm R Garbe
On 24 June 2014 23:52, Anders Eurenius wrote: > Refactor the mainloop > > Try to separate the different concerns of the main loop into separate, > simpler functions. I think it's a useful step, but I also think that > more should be done. Btw. it would really help to put st in the

Re: [dev] [st] Problem linking in OpenBSD

2014-07-08 Thread Dimitris Papastamos
On Wed, Jul 09, 2014 at 01:16:05AM +0200, FRIGN wrote: > On Tue, 8 Jul 2014 22:45:15 +0200 > "Roberto E. Vargas Caballero" wrote: > > > cannot find -lrt > > The fix is rather trivial: Just remove the damn -lrt. > Seriously: On OpenBSD, you don't need to include any libs to use > time.h; on Linux

Re: [dev] Simple, suckless syslogd?

2014-07-08 Thread Dimitris Papastamos
On Tue, Jul 08, 2014 at 10:40:38PM -0400, Andrew Gwozdziewycz wrote: > I'm looking for a very simple and suckless syslogd. What do people on > this list use for this purpose? It has been on my mind recently after Ari posted crond. I have not implemented it yet. Other than that, I think toybox ha

Re: [dev] [st] Problem linking in OpenBSD

2014-07-08 Thread Roberto E. Vargas Caballero
> > > cannot find -lrt > > > > The fix is rather trivial: Just remove the damn -lrt. Yeah, but then we have to assume that st is not portable to OpenBSD. If we take this decission (that I don't like), we have to add some comment in the FAQ. > > Seriously: On OpenBSD, you don't need to include an

Re: [dev] [sandy] [PATCH] VIM key bindings.

2014-07-08 Thread Dimitris Zervas
On July 9, 2014 7:10:06 AM EEST, Andrew Hills wrote: >On 7/8/14, 8:27 PM, Dimitris Zervas wrote: >> I know that some of you will really hate me about this, but I patched >sandy to have command and insert mode. > >Actually, this was all that kept me from using sandy. (Well, I suppose >my unwillingn