[code] [textadept] Buffer labels after session restore

From: Procházka Lukáš Ing. <LPr.att.pontex.cz>
Date: Wed, 19 Sep 2018 08:42:26 +0200

Hi Mitchell,

I'm still struggling with buffers and their labels in the tab bar.

Follow my steps:

1. Pure installation of TA, there is no ~/.textadept dir.

2. Running TA.

3. Typing into the Command bar (Ctrl+E) sequentially:

        buffer.new()._type = "[a]"; events.emit(events.BUFFER_NEW) ... New label "[a]" in the tab bar appears
        buffer.new()._type = "[b]"; events.emit(events.BUFFER_NEW) ... New label "[b]" in the tab bar appears
        buffer.new()._type = "[c]"; events.emit(events.BUFFER_NEW) ... New label "[c]" in the tab bar appears

4. Typing into the Command bar (Ctrl+E):

        ui.print("test") ... New label "[Message Buffer]" in the tab bar appears

5. So now I have the following buffers and labels in the tab bar:

        Untitled | [a] | [b] | [c] | [Message Buffer]

6. I close TA.

7. The new file ~/.textadept/session is created with the following content:

----
buffer: 0 0 0 [a]
bookmarks:
buffer: 0 0 0 [b]
bookmarks:
buffer: 0 0 0 [c]
bookmarks:
buffer: 5 5 0 [Message Buffer]
bookmarks:
size: false 524 400
view1: 5
current_view: 1
----
8. I run TA again.
9. The following labels are displayed in the tab bar:
	[a] | [Untitled] | [Untitled] | [Message Buffer]
	(it seems that only the last and the current buffer have their labels shown well)
	instead of:
	[a] | [b] | [c] | [Message Buffer]
	- Am I doing anything wrong?
Cheers,
Lukas
-- 
Ing. LukĂĄĹĄ ProchĂĄzka | mailto:LPr.att.pontex.cz
Pontex s. r. o.      | mailto:pontex@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn
BezovĂĄ 1658
147 14 Praha 4
Mob.: +420 702 033 396


-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Clipboard01.jpg
Received on Wed 19 Sep 2018 - 02:42:26 EDT

This archive was generated by hypermail 2.2.0 : Wed 19 Sep 2018 - 06:55:31 EDT