[elpa] externals/exwm fe8274c: Bump version to 0.21

2018-12-01 Thread Chris Feng
branch: externals/exwm
commit fe8274ca7ed6b5bbb397fbe93158ad41b13f5577
Author: Chris Feng 
Commit: Chris Feng 

Bump version to 0.21
---
 exwm.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/exwm.el b/exwm.el
index 98b30f9..e255062 100644
--- a/exwm.el
+++ b/exwm.el
@@ -4,7 +4,7 @@
 
 ;; Author: Chris Feng 
 ;; Maintainer: Chris Feng 
-;; Version: 0.20
+;; Version: 0.21
 ;; Package-Requires: ((xelb "0.16"))
 ;; Keywords: unix
 ;; URL: https://github.com/ch11ng/exwm



[elpa] master a1960b7: [el-search] Minor tweaks in el-search-query-replace

2018-12-01 Thread Michael Heerdegen
branch: master
commit a1960b717eba18c8fc214d47904e7b13ee576d1f
Author: Michael Heerdegen 
Commit: Michael Heerdegen 

[el-search] Minor tweaks in el-search-query-replace

* packages/el-search/el-search.el
(el-search--search-and-replace-pattern): Visually annotate whether the
current match has been replaced.
Use only one description for the 'r' key no matter whether the current
match has been replaced.
Tweak prompt for ! key.
---
 packages/el-search/el-search.el | 14 +++---
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/packages/el-search/el-search.el b/packages/el-search/el-search.el
index c2347a3..bc7bc36 100644
--- a/packages/el-search/el-search.el
+++ b/packages/el-search/el-search.el
@@ -3707,9 +3707,10 @@ exactly you did?  Thanks!"
   (read-multiple-choice
(let ((nbr-done  (+ nbr-replaced 
nbr-skipped))
  (nbr-to-do (el-search-count-matches 
pattern)))
- (format "[%d/%d]"
+ (format "[%d/%d] %s"
  (if replaced-this nbr-done (1+ 
nbr-done))
- (+ nbr-done nbr-to-do)))
+ (+ nbr-done nbr-to-do)
+ (if replaced-this "*" "-")))
(delq nil
  (list
   `(?y "y"
@@ -3718,10 +3719,8 @@ exactly you did?  Thanks!"
   "Replace match and move to 
the next"))
   (and (not replaced-this)
'(?n "n" "Move to the next 
match"))
-  `(?r "r"
-   ,(if (not replaced-this)
-"Replace match but don't 
move"
-  "Restore match"))
+  '(?r "r" "\
+Replace match but don't move or restore match if already replaced")
   '(?! "all" "Replace all remaining 
matches in this buffer")
   '(?b "skip buf"
"Skip this buffer and any 
remaining matches in it")
@@ -3765,7 +3764,8 @@ Toggle splicing mode (\\[describe-function] 
el-search-query-replace for details)

(el-search-object-properties
 
el-search--current-search)))
(eq (car 
(read-multiple-choice
- "Replace 
in all following buffers?"
+ "\
+Also replace in all following buffers?"
  '((?! 
"Only this"
"\
 Replace only remaining matches in this buffer")



[elpa] externals/exwm 58f7916: ; Improve debug logs.

2018-12-01 Thread Chris Feng
branch: externals/exwm
commit 58f7916619d11a8a4ad5d0bb926e7281054dd964
Author: Chris Feng 
Commit: Chris Feng 

; Improve debug logs.
---
 exwm-floating.el   | 11 ++-
 exwm-input.el  | 17 -
 exwm-layout.el |  3 +++
 exwm-manage.el |  7 ---
 exwm-randr.el  |  5 -
 exwm-systemtray.el | 26 +++---
 exwm-workspace.el  | 31 +--
 exwm.el| 36 +++-
 8 files changed, 116 insertions(+), 20 deletions(-)

diff --git a/exwm-floating.el b/exwm-floating.el
index aa2f988..d5cb53b 100644
--- a/exwm-floating.el
+++ b/exwm-floating.el
@@ -83,6 +83,7 @@ This is also used by X window containers.")
 
 (defun exwm-floating--set-allowed-actions (id tilling)
   "Set _NET_WM_ALLOWED_ACTIONS."
+  (exwm--log "#x%x" id)
   (xcb:+request exwm--connection
   (make-instance 'xcb:ewmh:set-_NET_WM_ALLOWED_ACTIONS
  :window id
@@ -326,6 +327,7 @@ This is also used by X window containers.")
 
 (defun exwm-floating--unset-floating (id)
   "Make window ID non-floating."
+  (exwm--log "#x%x" id)
   (let ((buffer (exwm--id->buffer id)))
 (with-current-buffer buffer
   (when exwm--floating-frame
@@ -400,6 +402,7 @@ This is also used by X window containers.")
 (cl-defun exwm-floating-toggle-floating ()
   "Toggle the current window between floating and non-floating states."
   (interactive)
+  (exwm--log)
   (unless (derived-mode-p 'exwm-mode)
 (cl-return-from exwm-floating-toggle-floating))
   (with-current-buffer (window-buffer)
@@ -411,6 +414,7 @@ This is also used by X window containers.")
 (defun exwm-floating-hide ()
   "Hide the current floating X window (which would show again when selected)."
   (interactive)
+  (exwm--log)
   (when (and (derived-mode-p 'exwm-mode)
  exwm--floating-frame)
 (exwm-layout--hide exwm--id)
@@ -418,6 +422,7 @@ This is also used by X window containers.")
 
 (defun exwm-floating--start-moveresize (id &optional type)
   "Start move/resize."
+  (exwm--log "#x%x" id)
   (let ((buffer-or-id (or (exwm--id->buffer id) id))
 frame container-or-id x y width height cursor)
 (if (bufferp buffer-or-id)
@@ -581,6 +586,7 @@ This is also used by X window containers.")
 
 (defun exwm-floating--stop-moveresize (&rest _args)
   "Stop move/resize."
+  (exwm--log)
   (xcb:+request exwm--connection
   (make-instance 'xcb:UngrabPointer :time xcb:Time:CurrentTime))
   (when exwm-floating--moveresize-calculate
@@ -641,6 +647,7 @@ This is also used by X window containers.")
   "Move a floating window right by DELTA-X pixels and down by DELTA-Y pixels.
 
 Both DELTA-X and DELTA-Y default to 1.  This command should be bound locally."
+  (exwm--log "delta-x: %s, delta-y: %s" delta-x delta-y)
   (unless (and (derived-mode-p 'exwm-mode) exwm--floating-frame)
 (user-error "[EXWM] `exwm-floating-move' is only for floating X windows"))
   (unless delta-x (setq delta-x 1))
@@ -663,6 +670,7 @@ Both DELTA-X and DELTA-Y default to 1.  This command should 
be bound locally."
 
 (defun exwm-floating--init ()
   "Initialize floating module."
+  (exwm--log)
   ;; Check border width.
   (unless (and (integerp exwm-floating-border-width)
(> exwm-floating-border-width 0))
@@ -708,7 +716,8 @@ Both DELTA-X and DELTA-Y default to 1.  This command should 
be bound locally."
 (xcb:cursor:load-cursor exwm--connection "left_side")))
 
 (defun exwm-floating--exit ()
-  "Exit the floating module.")
+  "Exit the floating module."
+  (exwm--log))
 
 
 
diff --git a/exwm-input.el b/exwm-input.el
index e184b39..b7b55d8 100644
--- a/exwm-input.el
+++ b/exwm-input.el
@@ -221,7 +221,7 @@ ARGS are additional arguments to CALLBACK."
 (with-slots (time root event root-x root-y event-x event-y state) evt
   (setq buffer (exwm--id->buffer event)
 window (get-buffer-window buffer t))
-  (exwm--log "EnterNotify: buffer=%s; window=%s" buffer window)
+  (exwm--log "buffer=%s; window=%s" buffer window)
   (when (and buffer window (not (eq window (selected-window
 (setq frame (window-frame window)
   frame-xid (frame-parameter frame 'exwm-id))
@@ -257,6 +257,7 @@ ARGS are additional arguments to CALLBACK."
 (xcb:flush exwm--connection)
 
 (defun exwm-input--on-keysyms-update ()
+  (exwm--log)
   (let ((exwm-input--global-prefix-keys nil))
 (exwm-input--update-global-prefix-keys)))
 
@@ -486,6 +487,7 @@ ARGS are additional arguments to CALLBACK."
 (xcb:flush exwm--connection)))
 
 (defun exwm-input--set-key (key command)
+  (exwm--log "key: %s, command: %s" key command)
   (global-set-key key command)
   (cl-pushnew key exwm-input--global-keys))
 
@@ -567,6 +569,7 @@ instead."
 
 (defun exwm-input--cache-event (event &optional temp-line-mode)
   "Cache EVENT."
+  (exwm--log "%s" event)
   (setq exwm-input--line-mode-cache
 (vconcat exwm-input--line-mode-cache (vect