summaryrefslogtreecommitdiff
path: root/hui-em-but.el
AgeCommit message (Collapse)Author
2019-07-207.0.3a changes for creating and modifying ibut labels, small fixesBob Weiner
2019-06-29Remove conditionals on xemacsMats Lidell
Remove all featurep checks on xemacs and emacs.
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-02Updated HY-NEWS with all new features for next major release.Bob Weiner
* HY-NEWS: Updated for next major release * man/hyperbole.texi (Button Colors): Added doc on hproperty:but-highlight-flag. (Hook Variables): Added doc of: action-key-depress-hook, action-key-release-hook, assist-key-depress-hook and assist-key-release-hook. * hsettings.el (hproperty:but-highlight-flag): Added as a setting. hui-em-but.el (hproperty:but-highlight-p): Renamed to hproperty:but-highlight-flag. (hproperty:but-emphasize-p): Renamed to hproperty:but-highlight-flag. hui-xe-but.el (hproperty:but-highlight-p): Renamed to hproperty:but-highlight-flag. (hproperty:but-emphasize-p): Renamed to hproperty:but-highlight-flag.
2017-09-112017-09-10 Bob Weiner <rsw@gnu.org>Bob Weiner
* hui-mouse.el (smart-helm, smart-helm-assist, smart-helm-line-has-action): hsettings.el (helm-allow-mouse): Set to t. New helm completion activation support. Added to allow mouse direct selection of helm completion items. The smart-helm function behaves similarly to the {C-j} and {C-z} key bindings that helm mode provides when a helm completion is active but the Smart Keys work in the completions buffer regardless of whether a helm completion is active or not. * hsys-www.el (www-url): Added Action and Assist Key support for browsing links in eww (the Emacs web browser) and for activating history links in the eww history buffer. 2017-09-08 Bob Weiner <rsw@gnu.org> * hpath.el (hpath:url-regexp3): Added a third pattern match for URLs, allowing for partial http urls with non-www site names preceded by the literal url or URL followed by a : or =. For example: url:photos.google.com or url=calendar.google.com 2017-09-07 Bob Weiner <rsw@gnu.org> * hui-menu.el (hui-menu-browser): Changed the Default setting to always use the current setting of browse-url-default-browser since that is the default in browse-url (eliminated use of browse-url-generic). * hypb.el (hypb:decode-url): Added. hpath.el (hpath:is-p): Fixed to handle and decode encoded URL paths before returning the path. 2017-09-06 Bob Weiner <rsw@gnu.org> * hui-mouse.el (hkey-alist): Changed Python predicate to match more broadly, namely in any non-file buffer whose name includes Pydoc: or Python (case-sensitive). * hmouse-tag.el (smart-python-at-tag-p): Expanded to handle tags with periods embedded such as `sys.path'. 2017-09-04 Bob Weiner <rsw@gnu.org> * hibtypes.el (debugger-source): Added support for Python pdb stack trace lines. 2017-08-31 Bob Weiner <rsw@gnu.org> * hibtypes.el (pathname): Wrapped mode-name reference in format-mode-line call since mode-name is not always a string. * hui-em-but.el (hproperty:but-highlight-p): Added to allow disabling of explicit button highlighting. (hproperty:but-create-all): Used this new flag. hui-xe-but.el (hproperty:but-highlight-p): Added to allow disabling of explicit button highlighting. (hproperty:but-create-all): Used this new flag. * hbut.el (ebut:map): Changed to ignore explicit button matches in programming languages when outside of a comment. For example, syntax like this in a Rust buffer had been improperly matched: fn parse_kv(kv_list: Vec<(syn::Ident, syn::StrLit)>, function: &Function) -> LispFnArgs 2017-08-25 Bob Weiner <rsw@gnu.org> * hui-mouse.el (smart-ibuffer-menu): Ibuffer calling conventions have changed across time (as of Emacs25) to allow for regional arguments; updated to account for these. * hpath.el (hpath:remote-at-p): For Emacs 26 where tramp-file-name-structure is now a function instead of a variable, call the function. * hyrolo.el (hyrolo-kill): Triggered error if FILE contains a '*' character, mainly in case a buffer name is passed as an argument. (hyrolo-file-list-initialize): Added this function so can re-initialize the hyrolo-file-list later if BBDB or Google Contacts support is loaded after the Hyperbole Rolo is initialized. * hbut.el (hbut:source): Allowed for spaces in buffer names. * hyrolo.el (hyrolo-edit-entry): Avoided error if bbdb-file is nil. * hbut.el (ebut:label-p): Added one-line-flag to constrain label search to a single line. hibtypes.el (Info-node): Constrained Info-node hyper-button matches to a single line. * hyrolo.el: Added support for Google Contacts when the google-contacts package is in use and a public key package is available for Google authorization. 2016-09-08 Bob Weiner <rsw@gnu.org> * man/hyperbole.texi: Documented Pages Directory Listing handling. * kotl/klink.el: (require 'hbut): Added to define defib when compiled. 2016-08-26 Bob Weiner <rsw@gnu.org> * hui-mouse.el (hkey-alist): Added Smart Key jump to associated page in pages-directory-mode (page-ext.el). man/hkey-help.txt: Documented Pages Directory Listing and Imenu Programming Identifier handling.
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.