[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/hyperbole 632789b 18/53: Made Action Key display select
From: |
Robert Weiner |
Subject: |
[elpa] externals/hyperbole 632789b 18/53: Made Action Key display selected buffer menu item in the same window as the buffer menu. |
Date: |
Wed, 15 Nov 2017 22:47:01 -0500 (EST) |
branch: externals/hyperbole
commit 632789b92a5188bd0e135cd10b87176ac52100e1
Author: Bob Weiner <address@hidden>
Commit: Bob Weiner <address@hidden>
Made Action Key display selected buffer menu item in the same window as the
buffer menu.
* hui-mouse.el (smart-buffer-menu-no-marks): Added and called in
smart-buffer-menu.
(smart-ibuffer-menu-no-marks): Added and called in
smart-ibuffer-menu.
Makes Action Key display the selected buffer in the buffer menu window
(like RET does)
rather than restoring previous window configuration and then displaying
buffer. This
works better with the new buffer item drag to display in a window
feature.
---
Changes | 6 ++++++
hui-mouse.el | 28 ++++++++++++++++++++++++++++
2 files changed, 34 insertions(+)
diff --git a/Changes b/Changes
index b4b27ec..0e5f959 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,11 @@
2017-09-27 Bob Weiner <address@hidden>
+* hui-mouse.el (smart-buffer-menu-no-marks): Added and called in
smart-buffer-menu.
+ (smart-ibuffer-menu-no-marks): Added and called in
smart-ibuffer-menu.
+ Makes Action Key display the selected buffer in the buffer menu window
(like RET does)
+ rather than restoring previous window configuration and then displaying
buffer. This
+ works better with the new buffer item drag to display in a window feature.
+
* hui-window.el (pulse): Added require for momentary highlighting of
buffer/file
item lines.
(hmouse-pulse-line): Added.
diff --git a/hui-mouse.el b/hui-mouse.el
index 4f20ced..ff8665e 100644
--- a/hui-mouse.el
+++ b/hui-mouse.el
@@ -367,6 +367,8 @@ evaluated.
The `hkey-alist' variable is the subset of this alist used by the
smart keyboard keys.")
+
+;; This next library adds drag actions to `hmouse-alist'.
(load "hui-window")
;;; ************************************************************************
@@ -410,6 +412,18 @@ smart keyboard keys.")
;;; smart-buffer-menu functions
;;; ************************************************************************
+(defun smart-buffer-menu-no-marks ()
+ "Display this line's buffer in this window and bury the buffer menu unless
other buffers are marked.
+If buffer menu items are marked, return nil, else t."
+ (let* ((this-buffer (Buffer-menu-buffer t))
+ (menu-buffer (current-buffer))
+ (others (delq this-buffer (Buffer-menu-marked-buffers t))))
+ (unless others
+ (switch-to-buffer this-buffer)
+ (unless (eq menu-buffer this-buffer)
+ (bury-buffer menu-buffer))
+ t)))
+
(defun smart-buffer-menu ()
"Uses a single key or mouse key to manipulate buffer-menu entries.
@@ -436,6 +450,7 @@ If key is pressed:
(bolp))
(Buffer-menu-save))
((br-in-browser) (br-buffer-menu-select))
+ ((smart-buffer-menu-no-marks))
(t (Buffer-menu-select))))
(defun smart-buffer-menu-assist ()
@@ -466,6 +481,18 @@ If assist-key is pressed:
;;; smart-ibuffer-menu functions
;;; ************************************************************************
+(defun smart-ibuffer-menu-no-marks ()
+ "Display this line's buffer in this window and bury the buffer menu unless
other buffers are marked.
+If buffer menu items are marked, return nil, else t."
+ (let* ((this-buffer (ibuffer-current-buffer t))
+ (menu-buffer (current-buffer))
+ (others (delq this-buffer (ibuffer-get-marked-buffers))))
+ (unless others
+ (switch-to-buffer this-buffer)
+ (unless (eq menu-buffer this-buffer)
+ (bury-buffer menu-buffer))
+ t)))
+
(defun smart-ibuffer-menu ()
"Uses a single key or mouse key to manipulate ibuffer entries.
@@ -490,6 +517,7 @@ If key is pressed:
(bolp)))
(ibuffer-mark-forward nil nil 1))
((br-in-browser) (br-buffer-menu-select))
+ ((smart-ibuffer-menu-no-marks))
(t (ibuffer-do-view))))
(defun smart-ibuffer-menu-assist ()
- [elpa] externals/hyperbole updated (0539520 -> 9b2d75a), Robert Weiner, 2017/11/15
- [elpa] externals/hyperbole 4fdcb7d 02/53: 2016-08-17 Bob Weiner <address@hidden>, Robert Weiner, 2017/11/15
- [elpa] externals/hyperbole 3aea4ee 07/53: Changes to hui-window.el had not been saved in prior commit., Robert Weiner, 2017/11/15
- [elpa] externals/hyperbole a2e2dc3 08/53: Made smart-helm ignore helm candidate separator lines., Robert Weiner, 2017/11/15
- [elpa] externals/hyperbole a6acb39 04/53: 2016-09-08 Bob Weiner <address@hidden>, Robert Weiner, 2017/11/15
- [elpa] externals/hyperbole 488bb31 13/53: hib-debbugs.el: Removed dependency on package.el which some people don't want/need loaded., Robert Weiner, 2017/11/15
- [elpa] externals/hyperbole 992870d 12/53: Speeded up search for and addition of a single git project to the dir cache., Robert Weiner, 2017/11/15
- [elpa] externals/hyperbole 1b40c4e 14/53: hib-social.el: When a git-reference is activated, trigger an error if `locate' command is not found., Robert Weiner, 2017/11/15
- [elpa] externals/hyperbole ddd114d 01/53: 2016-08-12 Bob Weiner <address@hidden>, Robert Weiner, 2017/11/15
- [elpa] externals/hyperbole 4ace769 17/53: Added brief pulsing/flashing from source line to line in destination buffer., Robert Weiner, 2017/11/15
- [elpa] externals/hyperbole 632789b 18/53: Made Action Key display selected buffer menu item in the same window as the buffer menu.,
Robert Weiner <=
- [elpa] externals/hyperbole fed1547 09/53: * hib-social.el (hibtypes-social-default-service): Changed to use a radio, Robert Weiner, 2017/11/15
- [elpa] externals/hyperbole a933051 19/53: Supported Emacs button mouse action; improved Lisp outlining support; improved load library links, Robert Weiner, 2017/11/15
- [elpa] externals/hyperbole 06d6cf1 16/53: V6.0.2a; Action Key drag from buffer, file and helm buffer item menus to another window to display., Robert Weiner, 2017/11/15
- [elpa] externals/hyperbole 9457b27 03/53: * hmouse-drv.el (hkey-help-show): Modified to invoke help-mode only if buffer name includes 'Help' to, Robert Weiner, 2017/11/15
- [elpa] externals/hyperbole 2b9d47e 33/53: Merge branch 'master' of git.sv.gnu.org:/srv/git/hyperbole with Mats assist-flag fix., Robert Weiner, 2017/11/15
- [elpa] externals/hyperbole 943dba1 28/53: Added 'topwin' Python script to determine topmost app window at a screen position under macOS., Robert Weiner, 2017/11/15
- [elpa] externals/hyperbole 2e55c34 31/53: Add defvar for assist-flag, Robert Weiner, 2017/11/15
- [elpa] externals/hyperbole 620685a 11/53: Add git and github reference support for branches, issues, pull requests and tags., Robert Weiner, 2017/11/15
- [elpa] externals/hyperbole 6b68100 40/53: Fixed predicate test in kbd-key:key-and-arguments., Robert Weiner, 2017/11/15
- [elpa] externals/hyperbole bf0e9fb 24/53: Added new git-find-file command and associated git#=file implicit button type., Robert Weiner, 2017/11/15