Bug#654882: tmux: Ignores automatic-rename window setting

2012-01-20 Thread Romain Francoise
tags 654882 fixed-upstream
quit

Romain Francoise rfranco...@debian.org writes:

 Okay, so you want something like the following. I'll see what upstream
 thinks about this. [...]

This patch is now upstream.

-- 
Romain Francoise rfranco...@debian.org
http://people.debian.org/~rfrancoise/



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#654882: tmux: Ignores automatic-rename window setting

2012-01-20 Thread Joerg Jaspert
 Okay, so you want something like the following. I'll see what upstream
 thinks about this. [...]
 This patch is now upstream.

Great!
OOI (rrright), when do you approx. plan the next (experimental) upload? :)

-- 
bye, Joerg
From a NM after doing the license stuff:
I am glad that I am not a lawyer!  What a miserable way to earn a living.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#654882: tmux: Ignores automatic-rename window setting

2012-01-20 Thread Romain Francoise
On Fri, Jan 20, 2012 at 09:30:32PM +0100, Joerg Jaspert wrote:

 OOI (rrright), when do you approx. plan the next (experimental)
 upload? :)

As soon as the SourceForge repository gets in sync with OpenBSD, which
could take a few days.

-- 
Romain Francoise rfranco...@debian.org
http://people.debian.org/~rfrancoise/



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#654882: tmux: Ignores automatic-rename window setting

2012-01-08 Thread Joerg Jaspert
On 12718 March 1977, Romain Francoise wrote:

 Though yes, with that reading this bug could be changed to a
 automatic-rename only covers some tmux internal foo, please provide
 another such option to entirely turn off any automatic renaming of
 windows wishlist bug and kicked upwards to upstream. Where automatic is
 anything that the user doesnt do manually right in tmux. Like
 command-key whatever sequence...
 Okay, so you want something like the following. I'll see what upstream
 thinks about this.

Without knowing the tmux code, it certainly reads like it.

-- 
bye, Joerg
They didn’t have any aspirin, so I got you some cigarettes.



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#654882: tmux: Ignores automatic-rename window setting

2012-01-07 Thread Joerg Jaspert
 Right, now seriously: tmux ignores automatic-rename setting for
 windows entirely. It plain simply has no effect whatever way one sets
 this option.
 That is not true.

 The automatic-rename option controls whether or not tmux will update the
 pane title based on the name of the process running in the pane. It does
 not disallow manually setting the title using a screen-compatible escape
 sequence, which is what the following does:
   print -Pn \ek$1:q\e\\

 Which would be all fine would I have automatic-rename ON. It is OFF, so
 tmux should NOT DARE TO TOUCH THE WINDOW TITLE. Thats why I set it to
 off.
 tmux doesn't change the title on its own. Your shell init file does.

My shell tries to do stuff, yes, but *IMO* tmux should, when you
disallow it to rename something, not honor what shell wants. Thats why I
disallow it in the first place.

Though yes, with that reading this bug could be changed to a
automatic-rename only covers some tmux internal foo, please provide
another such option to entirely turn off any automatic renaming of
windows wishlist bug and kicked upwards to upstream. Where automatic is
anything that the user doesnt do manually right in tmux. Like
command-key whatever sequence...

-- 
bye, Joerg
 dvdbackup (0.1.1-7) unstable; urgency=medium
 . 
   * The wiki-wacky-oaxtepec release



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#654882: tmux: Ignores automatic-rename window setting

2012-01-07 Thread Romain Francoise
Joerg Jaspert jo...@debian.org writes:

 Though yes, with that reading this bug could be changed to a
 automatic-rename only covers some tmux internal foo, please provide
 another such option to entirely turn off any automatic renaming of
 windows wishlist bug and kicked upwards to upstream. Where automatic is
 anything that the user doesnt do manually right in tmux. Like
 command-key whatever sequence...

Okay, so you want something like the following. I'll see what upstream
thinks about this.

diff --git a/input.c b/input.c
index 17307e9..bb23580 100644
--- a/input.c
+++ b/input.c
@@ -1558,6 +1558,8 @@ input_exit_rename(struct input_ctx *ictx)
 {
if (ictx-flags  INPUT_DISCARD)
return;
+   if (!options_get_number(ictx-wp-window-options, allow-rename))
+   return;
log_debug(%s: \%s\, __func__, ictx-input_buf);
 
xfree(ictx-wp-window-name);
diff --git a/options-table.c b/options-table.c
index 2700536..8318780 100644
--- a/options-table.c
+++ b/options-table.c
@@ -435,6 +435,11 @@ const struct options_table_entry window_options_table[] = {
  .default_num = 0
},
 
+   { .name = allow-rename,
+ .type = OPTIONS_TABLE_FLAG,
+ .default_num = 1
+   },
+
{ .name = alternate-screen,
  .type = OPTIONS_TABLE_FLAG,
  .default_num = 1
diff --git a/tmux.1 b/tmux.1
index 0b8f077..6ce2edf 100644
--- a/tmux.1
+++ b/tmux.1
@@ -2346,6 +2346,12 @@ this option is good for full-screen programs which 
support
 .Dv SIGWINCH
 and poor for interactive programs such as shells.
 .Pp
+.It Xo Ic allow-rename
+.Op Ic on | off
+.Xc
+Allow programs to change the window name using a terminal escape
+sequence (\\033k...\\033). The default is on.
+.Pp
 .It Xo Ic alternate-screen
 .Op Ic on | off
 .Xc



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#654882: tmux: Ignores automatic-rename window setting

2012-01-06 Thread Joerg Jaspert
Package: tmux
Version: 1.6~svn2608-2
Severity: normal

   * What led up to the situation?

Usage of tmux.

   * What exactly did you do (or not do) that was effective (or
 ineffective)?

Cursed it.

   * What was the outcome of this action?

Doesn't help.

   * What outcome did you expect instead?

Have it do what I want.

(Makes me feel like this should be grave :) )

*** End of the template - remove these lines ***

Right, now seriously: tmux ignores automatic-rename setting for
windows entirely. It plain simply has no effect whatever way one sets
this option.

Take the following set of commands:

tmux new-session -d -s gkars_sheridan_vir -n sheridan 'ssh sheridan'
tmux set-window-option -t gkars_sheridan_vir:1 automatic-rename off
tmux new-window -d -t gkars_sheridan_vir:2 -n vir 'ssh vir'
tmux set-window-option -t gkars_sheridan_vir:2 automatic-rename off
tmux select-window -t gkars_sheridan_vir:1
tmux -2 attach -t gkars_sheridan_vir

This will have tmux spit out two lines:
set option: automatic-rename - off
set option: automatic-rename - off

and otherwise neatly start a session, ssh to two machines. status-line
enabled shows two windows opening, with the names as given in -n
parameter here. Exactly as wanted.

The shell starts up and the names go away, get replaced by zsh.
This is appearently caused by one of the following two lines

  print -Pn \e]2;$2:q\a
  print -Pn \ek$1:q\e\\

in a zsh shell init.

Which would be all fine would I have automatic-rename ON. It is OFF, so
tmux should NOT DARE TO TOUCH THE WINDOW TITLE. Thats why I set it to
off.

-- 
bye, Joerg
I guess some people never change. Or, they quickly change and then
quickly change back.


pgpOBewnnVXqo.pgp
Description: PGP signature


Bug#654882: tmux: Ignores automatic-rename window setting

2012-01-06 Thread Karl Ferdinand Ebert
Hello Jörg,

Long time no see. Actually 13 months since we met each other with the intent 
to both of us  symmetrically sign our PGP keys.

Am Freitag 06 Januar 2012, 15:46:29 schrieben Sie:
...
 Right, now seriously: tmux ignores automatic-rename setting for
 windows entirely. It plain simply has no effect whatever way one sets
 this option.
Could you use set-window-option -g automatic-rename off and test if the 
behaviour occurs in those windows too? 
Could you provide your tmux.conf and run tmux -vvv and attach the non-empty 
logs? 

Best regards,

Ferdinand 


signature.asc
Description: This is a digitally signed message part.


Bug#654882: tmux: Ignores automatic-rename window setting

2012-01-06 Thread Romain Francoise
Joerg Jaspert jo...@debian.org writes:

 Right, now seriously: tmux ignores automatic-rename setting for
 windows entirely. It plain simply has no effect whatever way one sets
 this option.

That is not true.

The automatic-rename option controls whether or not tmux will update the
pane title based on the name of the process running in the pane. It does
not disallow manually setting the title using a screen-compatible escape
sequence, which is what the following does:

   print -Pn \ek$1:q\e\\

 Which would be all fine would I have automatic-rename ON. It is OFF, so
 tmux should NOT DARE TO TOUCH THE WINDOW TITLE. Thats why I set it to
 off.

tmux doesn't change the title on its own. Your shell init file does.

-- 
Romain Francoise rfranco...@debian.org
http://people.debian.org/~rfrancoise/



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org