Commit graph

101 commits

Author SHA1 Message Date
Thomas de Beauchêne a096da2881 fix bug mode-line not reset after multiple invocations
Fix a bug where the mode-line would not get rid of or regain the winum segment
after winum-mode being activated several times non-interactively and then
deactivated.
2018-11-07 01:44:48 +01:00
Thomas de Beauchêne 6f0c451799 put mode-line segment into a variable 2018-11-07 01:40:30 +01:00
Tomasz Mieszkowski d7b7eecf08 Don't push winum to mode-line if it's already there
Fixes #17
2018-11-04 19:49:34 +01:00
deb0ch c56d1cdb8d bump version to 2.0.0 2017-10-28 16:02:40 +02:00
Alexander Miller 0e10a9d29b Add verification for winum--frames-table 2017-10-19 23:09:47 +02:00
Alexander Miller cf691de506 Remove deleted frames from winum--frames-table 2017-10-19 23:09:47 +02:00
Alexander M bfef4ae6d0 Use a list of functions for custom window number assignment 2017-10-19 23:09:45 +02:00
Alexander M e950370d82 Rerun initialization when scope changes at runtime. 2017-05-01 01:29:17 +02:00
deb0ch 8e886302c7 bugfix: use getter to access window-vector
related with #4 and #5: there is a crash from time to time when frame-local and
winum-assign-func reserves numbers.
2017-04-18 15:31:35 +02:00
Alexander M 66c598a4e6 fetch a window even if its index is larger than window-count
The index of a window in window-vector can be greater than the number of live
windows if its number was assigned by winum-assign-func.

also partly fixes #4
2017-04-17 11:24:39 +02:00
deb0ch 4bee4987bc clear numbers-table only on update (and now also when 'frame-local) 2017-04-17 11:19:13 +02:00
Alexander M 6f52356657 expand winum--window-vector if a higher number is assigned
partly fixes #4
2017-04-17 11:17:32 +02:00
deb0ch 2efef60d1f use a named predicate instead of a lambda for ignored windows
Using a named function makes the code more readable than using a lambda.
2017-04-16 13:32:11 +02:00
deb0ch 3c28c0dd68 return empty string instead of nil when window does not exist
protects against potential errors being thrown and probably fixes #3 (although
understanding the root cause is still necessary).
2017-02-17 10:10:00 +01:00
deb0ch 8e26306916 fix repo name in readme 2017-01-28 22:27:19 +01:00
deb0ch 25fbb9524a readme: add melpa-stable badge in README 2017-01-16 11:52:41 +01:00
deb0ch 8b22faaa7e readme: add :noexport: to :TOC: in README to fix html export 2017-01-16 11:52:24 +01:00
deb0ch 3a10d3934f readme: improve code examples
the way the key bindings were overriden in these examples didn't update the
winum-keymap variable itself, leading to problems such as not being able to use
define-key on winum-keymap afterwards
2017-01-14 16:04:00 +01:00
deb0ch ebb05b84ae readme: update future developments 2017-01-14 16:01:29 +01:00
Rudi Grinberg e89791b90e Add type and group to winum-auto-setup-mode-line 2017-01-11 09:29:17 +01:00
deb0ch d5584b66df fix error when selecting nonexistent window number
bug introduced by 4970e27
2017-01-09 13:09:57 +01:00
deb0ch 430d24dd29 fix error on mode-line evaluation when a window has no number 2016-12-26 19:51:26 +01:00
deb0ch 4970e27a18 simplify the code using winum--get-[window-vector|numbers-table] 2016-12-26 19:38:36 +01:00
deb0ch 6afa4aa0da add changes section in README 2016-12-24 15:18:32 +01:00
deb0ch 6ccde2026b replace variable winum-keymap-prefix with function winum-set-keymap-prefix
Fixes #1.

Setting the key bindings prefix using a variable just couldn't work given how
Emacs handles key bindings for minor modes and that the available keymap API
doesn't handle keymaps.
2016-12-24 15:06:10 +01:00
deb0ch 1be3fdfa0a add ² bindings to handle azerty keyboard layouts 2016-12-18 01:38:24 +01:00
deb0ch 92f4109c8c add future developments section in README 2016-12-17 14:10:46 +01:00
deb0ch a9d4cfb414 improve docstrings and documentation 2016-12-17 13:59:18 +01:00
deb0ch 36358cc8c2 fix README html export 2016-12-17 13:50:27 +01:00
deb0ch 8e92e2b7f8 update README for Melpa 2016-12-17 13:02:34 +01:00
deb0ch 2844fdeeec fix FIXMEs 2016-12-16 19:17:48 +01:00
deb0ch 482d4145c5 correct errors in README 2016-12-16 19:17:46 +01:00
deb0ch 0ba8f4ba74 do not define keymap if winum-keymap-prefix is nil 2016-12-16 19:08:58 +01:00
deb0ch 84de252877 reorder the file to fix byte-compiler warnings 2016-12-16 19:08:11 +01:00
deb0ch 0f98e4566b fix customize group of winum-ignored-buffers 2016-12-16 19:08:11 +01:00
deb0ch 6da09ea7c3 change key bindings to use ~C-x w~ prefix 2016-12-16 19:07:57 +01:00
deb0ch 75dcc93f14 minor improvements in README 2016-12-12 10:20:39 +01:00
deb0ch 23dd03706a add missing ;;;###autoloads 2016-12-11 01:40:40 +01:00
deb0ch 4666007eae prefix all functions with "winum-" to follow elisp conventions 2016-12-11 01:17:30 +01:00
deb0ch d27e10d4b7 remove M-m bindings 2016-12-11 01:17:05 +01:00
deb0ch 890bdcfb18 replace deprecated cl by cl-lib and update header accordingly 2016-12-10 20:16:45 +01:00
deb0ch d2be894dbe update package description 2016-12-09 18:53:16 +01:00
deb0ch 02073497e0 simplify winum-install-mode-line 2016-12-09 17:04:15 +01:00
deb0ch 3ef5f3aa42 update package keywords 2016-12-09 16:19:38 +01:00
deb0ch 2381439968 remove compatibility aliases 2016-12-08 20:52:27 +01:00
deb0ch a4418aa56f select-window-by-number: default prefix argument deletes current window 2016-12-08 20:48:53 +01:00
deb0ch 4d541c203a restore select-window-0 2016-12-08 20:48:37 +01:00
deb0ch f45c6ea007 fix bug when using select-window-by-number on nonexistent window 2016-12-08 19:58:49 +01:00
deb0ch e947f05c93 improve README.org 2016-12-08 19:58:49 +01:00
deb0ch a77e97fd0f update doctstrings, comments and reindent 2016-12-08 19:58:49 +01:00