Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Changed the meaning of omitted priority argument for hook::remove. Now it means 'remove all matched scripts from a hook' instead of 'remove matched script with priority 50'. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
93d0303aad76a71ac10ca0d0e3286e81 |
User & Date: | sgolovan 2016-08-18 12:35:53 |
Context
2018-04-13
| ||
18:41 | Fix updating window titles when a message from ignored MUC user arrives (close ticket [2e61153a20]). Update copyright. Refresh docs. 2016-08-18 Sergei Golovan <sgolovan@nes.ru> check-in: ff7d452d4e user: sgolovan tags: trunk | |
2016-08-18
| ||
12:35 | Changed the meaning of omitted priority argument for hook::remove. Now it means 'remove all matched scripts from a hook' instead of 'remove matched script with priority 50'. check-in: 93d0303aad user: sgolovan tags: trunk | |
2016-07-09
| ||
08:51 | Show the last 16 hexadecimal digits as keyid for GPG keys instead of 8 because of existing examples of keys with the same short keyids. check-in: 2102ce602b user: sgolovan tags: trunk | |
Changes
Changes to ChangeLog.
1 2 3 4 5 6 7 | 2016-07-09 Sergei Golovan <sgolovan@nes.ru> * plugins/general/gpgme.tcl: Show the last 16 hexadecimal digits as keyid for GPG keys instead of 8 because of existing examples of keys with the same short keyids. 2016-06-30 Sergei Golovan <sgolovan@nes.ru> | > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 | 2016-08-18 Sergei Golovan <sgolovan@nes.ru> * hooks.tcl: Changed the meaning of omitted priority argument for hook::remove. Now it means 'remove all matched scripts from a hook' instead of 'remove matched script with priority 50'. 2016-07-09 Sergei Golovan <sgolovan@nes.ru> * plugins/general/gpgme.tcl: Show the last 16 hexadecimal digits as keyid for GPG keys instead of 8 because of existing examples of keys with the same short keyids. 2016-06-30 Sergei Golovan <sgolovan@nes.ru> |
︙ | ︙ |
Changes to hooks.tcl.
︙ | ︙ | |||
13 14 15 16 17 18 19 | set F(flags,$hook) {} } lappend $hook [list $func $seq] set $hook [lsort -real -index 1 [lsort -unique [set $hook]]] } | | > | | > > > > > | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | set F(flags,$hook) {} } lappend $hook [list $func $seq] set $hook [lsort -real -index 1 [lsort -unique [set $hook]]] } proc hook::remove {hook func {seq ""}} { variable $hook if {$seq ne ""} { set idx [lsearch -exact [set $hook] [list $func $seq]] set $hook [lreplace [set $hook] $idx $idx] } else { foreach idx [lsearch -all -exact -index 0 [set $hook] $func] { set $hook [lreplace [set $hook] $idx $idx] } } } proc hook::is_empty {hook} { variable $hook if {![info exists $hook] || [llength [set $hook]] == 0} { return 1 |
︙ | ︙ |