summaryrefslogtreecommitdiff
path: root/hui-select.el
AgeCommit message (Collapse)Author
2023-06-27* hui-select.el: Fix a few warnings and improve some docstringsStefan Monnier
(hui-select-initialize): Use `dolist`; let-bind vars rather than just `setq`ing them; use closures. (hui-select-goto-matching-tag): Fix markup. (hui-select-indent-non-end-regexp-alist) (hui-select-indent-end-regexp-alist): Use conventional markup for metavars.
2023-06-25Merge branch 'master' into rswRobert Weiner
2023-06-24Revert FIXME, keep for now because of issues with web modesMats Lidell
https://github.com/rswgnu/hyperbole/pull/343/files#r1237881934
2023-06-24* hui-select.el: Fix a few warnings and improve some docstringsStefan Monnier
(hui-select-initialize): Use `dolist`; let-bind vars rather than just `setq`ing them; use closures. (hui-select-goto-matching-tag): Fix markup. (hui-select-indent-non-end-regexp-alist) (hui-select-indent-end-regexp-alist): Use conventional markup for metavars.
2023-06-22hui:ebut-link-directly, hui:ibut-link-directly now work from kbdBob Weiner
Many other small updates and the manual updated with Ebut/Link and Ibut/Link
2023-05-14Restore Smart Key depress window buffer if switched before releaseBob Weiner
Replace nil error handler condition-case with ignore-errors macro. Update TAGS file.
2023-02-27Merge Mats and RSW's recent changes. Fix bug#61666 from John C.Bob Weiner
2023-02-04Add SPDX-License-Identifier (#301)Mats Lidell
* Add SPDX-License-Identifier * Adjust test due to lines inserted in files also used as test data
2022-10-15Make defil button types flash on activationBob Weiner
Support uncommented klinks in *scratch* buffer (lisp-interaction-mode). Add HyRolo support function hyrolo-map-entries and hyrolo-map-kotl.
2022-10-03hui-select.el: Shorten docs strings to be within 80 char limit. (#259)Mats Lidell
2022-08-29Improve Org cmd overrides; make work when called from kbd macrosBob Weiner
2022-06-19Remove xemacs compatibility code fragments (#187)Mats Lidell
* Remove referense to XEmacs in comment * Remove XEmacs and older Emacs compatibility code posn-area is was introduce at or before version 22.1. * Remove use of XEmacs dialog box * Remove XEmacs compatibility code * Remove XEmacs and Infodock compatibility code * Remove XEmacs and Infodock compatibility code * Remove XEmacs and Infodock compatibility code * Remove XEmacs and Infodock compatibility code use-region-p was introduced at or before version 23.1. * Remove XEmacs compatibility code * Remove XEmacs from comment * Remove Emacs versions and NEXTSTEP from comment * Remove XEmacs and Infodock font-lock code * Remove mention of Emacs versions from comment * Remove garbage chars at the end of the file * Update ChangeLog date to reflect time of merge
2022-06-06Extend eobp checks to allow anywhere in blank lines before eobBob Weiner
2022-05-16Fix som complex path, key series and windows grid resolutionsBob Weiner
2022-05-12Initial 8.0.1pre changes and fixes for async nativecomp errorsBob Weiner
2022-04-18Fix many Koutliner and thing copy issues; update Hyperbole manualBob Weiner
2022-04-17Eliminate many byte-compilation warnings/errorsBob Weiner
2022-04-12{M-w} and {C-x r s} utilize selectable things when no region activeBob Weiner
{C-w} in kotl-mode does the same thing.
2022-02-20Generalize Hyperbole key binding deferrals to other modesRobert Weiner
2022-02-14Use underscore prefix on unused arguments (#167)Mats Lidell
2022-01-31Where Hyperbole C-c keys interfere with Org or Outline modes, defer to other ↵Bob Weiner
modes' bindings
2022-01-24Add Last-Mod date header lineBob Weiner
2021-12-16Remove wrapped closing parens (#135)Mats Lidell
2021-11-07Large set of RSW updates across last three weekendsBob Weiner
2021-09-12Remove native compiler warnings (#113)Mats Lidell
2021-07-20Stefans patch piece 1 (#108)Mats Lidell
* Small updates extracted from Stefans patch Thanks Stefan Monnier for providing these updates: - Set lexical scoping - Update copyright notice - Other small non functional changes * Add changelog and fix failing test cases
2021-05-02smart-org - Fix to support Hyperbole EOL handlingBob Weiner
Change 'Assumes' to 'Assume' in many docstrings.
2021-04-28eXit from minibuffer menu and mode; add gbut:ebut-program automationBob Weiner
Change mouse bindings to hyperbole-mode-map bindings Action Key at end of Hyperbole help buffers quits C-c prefix map for hyperbole-mode-map
2021-02-15Add fast window link button creation via {M-o w} with Ace Window.Bob Weiner
- Fast Window Links: The hkey-window-link command bound to {M-o w} rapidly creates a link button at point in the selected window, linking to point in the window chosen when prompted.
2020-07-22hui-select.el and hyperbole.el reformatting; no logic changesBob Weiner
2020-01-20hui-select.el - remove require of kotl-mode; caused cyclical loadsBob Weiner
2020-01-20Large commit of RSW changesBob Weiner
2019-08-20Apply some easy to fix flycheck suggestionsMats Lidell
Use "? " at end of y-or-n-p Remove "." at end of error messages Use imperative voice in docs strings This fixes the bulk of flycheck messages. There are things left to correct but they will require more work and that will have to be dealt with later.
2019-06-29Remove conditionals on xemacsMats Lidell
Remove all featurep checks on xemacs and emacs.
2019-04-23Add Gitlab to DEMO; MSWindows path handling; company-mode Smart KeysBob Weiner
2017-12-22Added 'k' to klink ids exported to html;Bob Weiner
Added hui-select-get-region*; Extended github-reference and gitlab-reference with 'people' and 'contributors' 2017-12-20 Bob Weiner <rsw@gnu.org> * kotl/kexport.el (kexport:html-file-klink) (kexport:html): (kexport:html-replacement-alist): Added 'k' to precede klink HTML HREF references since these must start with a letter. * hui-select.el (hui-select-get-region): Added this to be used in other libraries. (hui-select-get-region-boundaries): Added and used in hui-select-thing. 2017-12-19 Bob Weiner <rsw@gnu.org> * hib-social.el (github-reference, gitlab-reference): Added "people" reference support to list people who are part of a formal organization as well as a "staff" alias. Added "contributors" reference support to list project contributors as well.
2017-11-21Keyboard drags; Treemacs item drags; Ace-Window item throws and HyRolo ↵Bob Weiner
Google Contacts improvements Enabled keyboard-based drag emulation and associated help with {C-h A}. Made HyRolo support of Google Contacts usable by eliminating repeated login requests. Added item drags for Treemacs file viewer package. Added {i} key to Ace-Window package operations to display an item in a specific window. * hmouse-drv.el (hkey-ace-window-setup): Setup keyboard-based display of items in windows specified by short ids. See its doc string for how to use. (hkey-drag, hkey-drag-jump): Added for mouse drag emulation via keyboard from a single function that uses the selected window point for depress location and the parameter RELEASE-WINDOW for the window and its point for release. hkey-drag-jump is useful as a command in the ace-window package's aw-dispatch-alist, e.g. {i} for insert item, because it leaves RELEASE-WINDOW selected. * hui-select.el (hui-select-ignore-quoted-sexp-modes): Added so major modes to ignore for syntactic pair selection can be customized. (hui-select-at-delimited-thing-p): Changed to not trigger when on an Emacs button. * hui-window.el (hmouse-drag-between-frames): Replaced calls to window-valid-p with window-live-p. (hmouse-drag-window-side, hmouse-drag-between-windows, hmouse-drag-same-window, hmouse-drag-outside-all-windows, hmouse-drag-item-to-display, hmouse-item-to-window): Added window-live-p checks for cases where a window has been deleted between depress and release. * hmouse-drv.el (hmouse-window-at-absolute-pixel-position): Updated to support keyboard drag emulation. (hkey-help): Changed hkey-forms to use hmouse-alist instead of hkey-alist so mouse drags are accounted for when emulating drags from the keyboard and then invoking {C-h A} for help. hui-window.el (hmouse-drag-outside-all-windows): Triggered only if an action/assist-key press has occurred, e.g. could be called by hkey-help when no press has occurred. (hmouse-x-coord, hmouse-y-coord): Removed error when there is no valid coordinate and returned nil instead to support keyboard drag emulation help. 2017-11-20 Bob Weiner <rsw@gnu.org> * hmouse-drv.el (hkey-absolute-pixel-position): Added and used in Action/Assist Key functions. (hmouse-set-point): Fixed hkey-operate bug by wrapping final (posn-at-point) in a list with an event type symbol so if called from a keyboard event, returns a proper format event. (hkey-operate): Changed so output messages only when called interactively. * hui-treemacs.el: Added for Smart Key support of the Treemacs file manager. (smart-treemacs): Added. (smart-treemacs-modeline): Added to allow toggling of Treemacs display on Action Key clicks on buffer id of modeline. hui-mouse.el (hkey-alist, action-key-modeline-buffer-id-function): Added Smart Key treemacs package support. hui-window.el (action-key-modeline): Updated to call action-key-modeline-buffer-id-function. hactypes.el (link-to-buffer-tmp): Added optional 2nd parameter of POINT to display. 2017-11-19 Bob Weiner <rsw@gnu.org> * hui-window.el (hmouse-item-to-window): Added support for hmouse-drag-item-mode-forms sending a sequence of (buffer position) rather than just buffer. (hmouse-drag-item-mode-forms): Added support for dragging items from the treemacs hierachical file viewer package. 2017-11-17 Bob Weiner <rsw@gnu.org> * hyrolo.el (hyrolo-initialize-file-list): Fixed to set hyrolo-file-list. (hyrolo-retrieve-google-contacts): Updated to cache Google passphrase whenever Google contacts are used so the user is not prompted for his passphrase on every HyRolo search. man/hyperbole.texi (HyRolo Settings): Updated Google Contacts settings handling to document this caching. * man/im/C-hh.png - Added showing Hyperbole mini-buffer menu prefix key binding. 2017-11-16 Bob Weiner <rsw@gnu.org> * hywconfig.el (hywconfig-delete-pop): Fixed bug that removed the ring entry before using it to restore the window configuration. ============================================================================== V7.0.1 changes ^^^^: ==============================================================================
2017-11-14Highlighted explicit buttons when yanked; fixed region location bugs with ↵Bob Weiner
hmouse-drag-thing and region kill, copy and yank 2017-11-13 Bob Weiner <rsw@gnu.org> * hui-window.el (hmouse-drag-thing): Added error if drag ends within the delimited thing region, so user knows that this is an invalid drag. (hmouse-yank-region, hmouse-kill-and-yank-region): Made no-op unless hkey-region is non-nil. This handles the hmouse-drag-thing case when we want that predicate true (so no other predicate matches) but there is no region to copy or kill, e.g. when the release point is within the thing itself. * hui-select.el (hui-select-delimited-thing): Fixed to match doc and work as a predicate. * hui-window.el (hmouse-goto-depress-prev-point): Deleted since it duplicated hmouse-goto-region-prev-point. (hmouse-goto-region-prev-point): Added missing check for prev-point nil when setting loc. This caused the Smart Keys to fail when used if a Lisp backtrace was active. (hmouse-drag-thing): Erased any saved location of a region prior to Smart Key depress since now we have a new region location. This prevents hmouse-kill-and-yank-region from jumping to the old location. Also fixed edge cases where want to copy or move thing to the beginning or end of the thing region. (hmouse-goto-region-point): Renamed to hmouse-goto-region-prev-point, for clarity. (hmouse-kill-and-yank-region, hmouse-kill-region): Used value of point saved in hkey-value to determine the region if non-nil. * hui-select.el (hui-select-delimited-thing, hui-select-thing): Changed to use use-region-p. hmouse-drv.el (hmouse-use-region-p): Added and used to improve hmouse-drag-thing. (hmouse-save-region): Simplified. hui-window.el (hmouse-drag-region-active): Changed call of region-active-p to hmouse-use-region-p. * hui-window.el (hmouse-kill-and-yank-region): Fixed error that was testing not in depress buffer (as desired) but the buffer prior to depress. Also protected insertion from syntax-directed indentation errors. * hui-em-but.el hui-xe-but.el (hproperty:but-create-on-yank): Added as handler for yank-handled-properties so explicit buttons are re-highlighted when yanked after being killed.
2017-11-01Prep and bug fixes for next major release; fixed Smart Mouse Key point ↵Bob Weiner
location issue; renamed to kotl/kotl-autoloads.el * man/hyperbole.texi (Version): Updated to 6.0.2g and rebuilt output formats. * hui-window.el (hmouse-prior-active-region): Changed to call use-region-p rather than active-region-p, for a tighter test. This is used as a predicate; fixed bug that moved point, causing Smart Key release logic to use the wrong point. * hmouse-key.el (hmouse-add-unshifted-smart-keys): Removed GNU Emacs-only dependencies. * kotl/kotl-autoloads.el: Renamed from kotl/kotl-loaddefs.el to match package autoload naming scheme. * hmouse-sh.el (hmouse-unshifted-setup): In Info-mode, Emacs uses key-translation-map to link mouse-1 to do whatever mouse-2 does but because Hyperbole uses both down and up bindings on mouse2, this does not work. So we rebind mouse-1 and double-mouse-1 in Info mode to be actual Action Mouse Keys (which makes them follow Info links/cross-references properly, doing a superset of what they did before). (hmouse-posn-set-point): Added to handle frames rather than windows returned by some events; used in hmouse-move-point-emacs. * hui-mouse.el (hmouse-tag): Added require of hmouse-info and hmouse-tag for smart-info, smart-lisp etc. when autoload file is not available. * hmouse-sh.el (hmouse-bind-key-emacs): hui-select.el (hui-select-initialize): Added missing double-down-* and triple-down-* bindings. 2017-10-31 Bob Weiner <rsw@gnu.org> * hyperbole.el (hyperb:init): Added an "Initializing Hyperbole..." message at the beginning of this function. Removed 'Hyperbole loading' message at the beginning of this file since Emacs load function outputs a similar message. Moved Hyperbole 'ready for action' message here rather than at the end of this file since Hyperbole initialization may be deferred until after Emacs initializaton time. Hyperbole init. is complete only after this function is run. 2017-10-30 Bob Weiner <rsw@gnu.org> * man/hyperbole.texi (Glossary): Removed mention of old remote file access packages: ange-ftp and EFS. Use Tramp only now. (Searching and Summarizing): Renamed from Location. * hpath.el (hpath:remote-at-p): Fixed to return /ftp: pre-pended to ftp paths since Tramp requires it. * hibtypes.el (mail-address): Made lower priority than pathname so when an email-like user@domain is part of a remote pathname, this won't trigger. * hpath.el (hpath:rfc): Prepended /ftp: to value so tramp recognizes it as a remote file path. * man/hyperbole.texi (Smart Mouse Key Modifiers): hmouse-mod.el: Disabled this feature since it conflicts with present Emacs bindings of Control- and Meta- mouse keys. * hui-mini.el (Doc/Manifest): hui-menu.el (Documentation/Manifest): Changed to use hypb:display-file-with-logo so can quit after viewing. * hversion.el (id-browse-file): Changed alias from find-file-read-only to view-file. hui-mini.el (Doc/SmartKeys): Changed command used to match that used when same doc is displayed with a click at the right of a modeline. * man/hyperbole.texi (Smart Keys): Added section on Smart Mouse Key Drags to match those in the DEMO file. (Global Key Bindings): Replaced hkey-toggle-bindings with proper reference to hyperbole-toggle-bindings. (Smart Key Bindings): Included hyperbole-toggle-bindings (toggles keyboard and mouse keys) rather than hmouse-toggle-bindings (toggles only mouse keys); moved the latter to the Global Key Bindings appendix.
2017-09-182017-09-18 Bob Weiner <rsw@gnu.org>Bob Weiner
* hui-mouse.el (smart-helm): Finalized and added doc. of contexts and actions. * hui-window.el (smart-coords-in-window-p): (hmouse-drag-window-side): Handled null value of coords. 2017-09-17 Bob Weiner <rsw@gnu.org> * hui-mouse.el (hkey-alist): Changed minibuffer handling to support Helm. * man/hkey-help.txt: Small updates to Special Mode doc. * hmouse-key.el (hmouse-add-unshifted-keys): Added to allow user init of unshifted Smart Keys. For GNU Emacs only, this binds [mouse-2] to the Action Key and [mouse-3] to the Assist Key. man/hyperbole.texi (Smart Key Bindings): Added doc for hmouse-add-unshifted-keys. * hmouse-sh.el (hmouse-get-unshifted-bindings): Uncommented inclusion of mouse-3 for times when user manually sets mouse-3 as the Assist Key. Otherwise, hmouse-toggle-bindings will never change its value. (hmouse-bind-key, hmouse-bind-shifted-key): Added and used these to ensure depress and release bindings are wholly reset before rebinding them under GNU Emacs. 2017-09-14 Bob Weiner <rsw@gnu.org> * hpath.el (hpath:external-open-office-suffixes): Added .odt suffix. * hui-select.el (hui-select-at-p): Protect against empty buffer error. 2017-09-12 Bob Weiner <rsw@gnu.org> * hibtypes.el (grep-msg): (pathname): Don't match in helm completion buffers. * hui-mouse.el (smart-helm-line-has-action): Ignore any actions helm imputes to header lines and candidate separator lines in helm completion buffers, as they are non-actionable lines. Also, ignore if at the end of the buffer. (hkey-alist): Lowered smart-helm priority so can use Smart Key end-of-line functions in such buffers. * hsys-www.el (eww-link-at-point): Basic stylistic improvements. 2017-09-11 Bob Weiner <rsw@gnu.org> hyrolo.el: Added basic commentary to the file header.
2016-07-21* hib-social.el (social-reference):Bob Weiner
hibtypes.el (mail-address-at-p): Let case-fold-search be t since mail-addresses are case-insensitive. * Various Files: Small copyright fixes and formatting adjustments. Replaced hyperb:xemacs-p with (featurep 'xemacs) for byte-compiler optimization purposes and made small fixes throughout suggested by Stefan Monnier.
2016-07-17Release candidate for version 6.0.Mats Lidell
The starting point of development of GNU Hyperbole 6.0 in git. For earlier versions see the mercurial repo.