Re: Textadept 1.6

From: mitchell <mforal.n....at.gmail.com>
Date: Fri, 29 May 2009 08:23:42 -0700 (PDT)

Hi,

> Yesterday I installed the linux version (Ubuntu 8.10) and also
> was unable to open dialogs. A symlink from libgtk-x11-2__.so.__
> to libgtk-x11-2__.so made it work.

Library versions are always a pain in Linux :(

> Some things I noticed:
>
>  - The linux version seems to be much faster than the windows
>    version (startup-time and general behavior).

Textadept is written using GTK+ which first appeared in Linux. I
suspect if I rewrote it to use the Windows API the speed would be
comparable. However, I will never do that!

>  - The lexer list in the menu is in an alphabetically order in the
>    windows version, but not in the linux version.

Oops! Here's a patch:

diff -r 1c60ef30523e core/ext/menu.lua
--- a/core/ext/menu.lua Fri May 01 14:01:55 2009 -0400
+++ b/core/ext/menu.lua Fri May 29 11:18:16 2009 -0400
@@ -282,13 +282,17 @@
     { l.MENU_VIEW_SHRINK, ID.SHRINK_VIEW },
   },
 }
+local lexers = {}
 local lexer_menu = { title = l.MENU_LEX_TITLE }
 local lfs = require 'lfs'
 for lexer in lfs.dir(_HOME..'/lexers/') do
   if lexer:find('%.lua$') and lexer ~= 'lexer.lua' then
- lexer_menu[#lexer_menu + 1] =
- { lexer:match('^(.+)%.lua$'), ID.LEXER_START + #lexer_menu }
+ lexers[#lexers + 1] = lexer:match('^(.+)%.lua$')
   end
+end
+table.sort(lexers)
+for _, lexer in ipairs(lexers) do
+ lexer_menu[#lexer_menu + 1] = { lexer, ID.LEXER_START +
#lexer_menu }
 end
 menubar[#menubar + 1] = gtkmenu(lexer_menu)
 t.menubar = menubar

I'll commit this to HG soon.

>  - after doing some search and replace 'Replace All' didn't work
>    anymore, than textadept stopped responding (linux). I had
>    to kill it.

Sounds like an infinite loop. Can you reproduce the conditions and
file a bug report?

>  - Using tabs to indent (not to insert snippets) suddenly stopped
>    working. I do not remember the error message. The next time I
>    reproduce the error I will post the message.

File a bug report too please.

>    Could be more stable though.

I suspect most problems are due to the libraries installed on your
system. Try running textadept from the command line. If it crashes,
the error messages should be printed. Feel free to paste them here.

I say this because I've used ta for heavy development over the last
few months in Linux without a single crash :)

Take care,
Received on Fri 29 May 2009 - 11:23:42 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:37:48 EST