summaryrefslogtreecommitdiff
path: root/lisp/xt-mouse.el
Commit message (Collapse)AuthorAgeFilesLines
* Prefer "this" to “this” in doc stringsPaul Eggert2015-05-191-4/+4
| | | | | | | | | | | | This mostly just straightens quotes introduced in my previous patch. Suggested by Dmitry Gutov in: http://lists.gnu.org/archive/html/emacs-devel/2015-05/msg00565.html * lisp/faces.el, lisp/gnus/gnus-group.el, lisp/ldefs-boot.el: * lisp/mail/supercite.el, lisp/net/tramp.el, lisp/recentf.el: * lisp/textmodes/artist.el, lisp/textmodes/rst.el: * lisp/textmodes/tildify.el, lisp/vc/ediff-util.el: * lisp/vc/log-edit.el, lisp/xt-mouse.el: Prefer straight double quotes to curved double quotes in doc strings.
* Fix minor quoting problems in doc stringsPaul Eggert2015-05-191-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These were glitches regardless of how or whether we tackle the problem of grave accent in doc strings. * lisp/calc/calc-aent.el (math-restore-placeholders): * lisp/ido.el (ido-ignore-buffers, ido-ignore-files): * lisp/leim/quail/cyrillic.el ("bulgarian-alt-phonetic"): * lisp/leim/quail/hebrew.el ("hebrew-new") ("hebrew-biblical-sil"): * lisp/leim/quail/thai.el ("thai-kesmanee"): * lisp/progmodes/idlw-shell.el (idlwave-shell-file-name-chars): Used curved quotes to avoid ambiguities like ‘`''’ in doc strings. * lisp/calendar/calendar.el (calendar-month-abbrev-array): * lisp/cedet/semantic/mru-bookmark.el (semantic-mrub-cache-flush-fcn): * lisp/cedet/semantic/symref.el (semantic-symref-tool-baseclass): * lisp/cedet/semantic/tag.el (semantic-tag-copy) (semantic-tag-components): * lisp/cedet/srecode/cpp.el (srecode-semantic-handle-:cpp): * lisp/cedet/srecode/texi.el (srecode-texi-texify-docstring): * lisp/emacs-lisp/byte-opt.el (byte-optimize-all-constp): * lisp/emacs-lisp/checkdoc.el (checkdoc-message-text-engine): * lisp/emacs-lisp/generator.el (iter-next): * lisp/gnus/gnus-art.el (gnus-treat-strip-list-identifiers) (gnus-article-mode-syntax-table): * lisp/net/rlogin.el (rlogin-directory-tracking-mode): * lisp/net/soap-client.el (soap-wsdl-get): * lisp/net/telnet.el (telnet-mode): * lisp/org/org-compat.el (org-number-sequence): * lisp/org/org.el (org-remove-highlights-with-change) (org-structure-template-alist): * lisp/org/ox-html.el (org-html-link-org-files-as-html): * lisp/play/handwrite.el (handwrite-10pt, handwrite-11pt) (handwrite-12pt, handwrite-13pt): * lisp/progmodes/f90.el (f90-mode, f90-abbrev-start): * lisp/progmodes/idlwave.el (idlwave-mode, idlwave-check-abbrev): * lisp/progmodes/verilog-mode.el (verilog-tool) (verilog-string-replace-matches, verilog-preprocess) (verilog-auto-insert-lisp, verilog-auto-insert-last): * lisp/textmodes/makeinfo.el (makeinfo-options): * src/font.c (Ffont_spec): Fix minor quoting problems in doc strings, e.g., missing quote, ``x'' where `x' was meant, etc. * lisp/erc/erc-backend.el (erc-process-sentinel-2): Fix minor quoting problem in other string. * lisp/leim/quail/ethiopic.el ("ethiopic"): * lisp/term/tvi970.el (tvi970-set-keypad-mode): Omit unnecessary quotes. * lisp/faces.el (set-face-attribute, set-face-underline) (set-face-inverse-video, x-create-frame-with-faces): * lisp/gnus/gnus-group.el (gnus-group-nnimap-edit-acl): * lisp/mail/supercite.el (sc-attribs-%@-addresses) (sc-attribs-!-addresses, sc-attribs-<>-addresses): * lisp/net/tramp.el (tramp-methods): * lisp/recentf.el (recentf-show-file-shortcuts-flag): * lisp/textmodes/artist.el (artist-ellipse-right-char) (artist-ellipse-left-char, artist-vaporize-fuzziness) (artist-spray-chars, artist-mode, artist-replace-string) (artist-put-pixel, artist-text-see-thru): * lisp/vc/ediff-util.el (ediff-submit-report): * lisp/vc/log-edit.el (log-edit-changelog-full-paragraphs): Use double-quotes rather than TeX markup in doc strings. * lisp/skeleton.el (skeleton-pair-insert-maybe): Reword to avoid the need for grave accent and apostrophe. * lisp/xt-mouse.el (xterm-mouse-tracking-enable-sequence): Don't use grave and acute accents to quote.
* Spelling fixesPaul Eggert2015-03-251-4/+4
|
* * lisp/xt-mouse.el (xterm-mouse--read-number-from-terminal): Fix last commit.Stefan Monnier2015-03-251-1/+1
|
* * lisp/xt-mouse.el: Add mouse-tracking support.Olaf Rogalsky2015-03-241-69/+116
| | | | | | | | | | | | | | | | | | Fixes: debbugs:19416 * lisp/xt-mouse.el: Add mouse-tracking support. (xterm-mouse-translate-1): Handle mouse-movement events. (xterm-mouse--read-event-sequence-1000) (xterm-mouse--read-event-sequence-1006): Delete functions. (xterm-mouse--read-event-sequence): New function that handles both at the same time. Handle mouse-movements. (xterm-mouse--read-utf8-char, xterm-mouse--read-number-from-terminal): New functions. (xterm-mouse-event): Simplify. (xterm-mouse-tracking-enable-sequence) (xterm-mouse-tracking-disable-sequence): Enable mouse tracking. * lisp/mouse.el (mouse-drag-line): Also ignore `vertical-line' prefix events.
* Update copyright year to 2015Paul Eggert2015-01-011-1/+1
| | | | Run admin/update-copyright.
* * lisp/mouse.el (mouse-drag-line): Use set-transient-map.Stefan Monnier2014-10-211-7/+4
| | | | | | | | | | | | | | (mouse--down-1-maybe-follows-link): Remove unused var `this-event'. (mouse-yank-secondary): Use gui-get-selection. (mouse--down-1-maybe-follows-link): Use read-key. * lisp/subr.el (read-key): Fix clicks on the mode-line. (set-transient-map): Return exit function. * lisp/xt-mouse.el: Add `event-kind' property on the fly from xterm-mouse-translate-1 rather than statically at the outset. Fixes: debbugs:18015
* * lisp/xt-mouse.el (xterm-mouse-event): Don't assume last-click is non-nil.Stefan Monnier2014-07-191-1/+1
| | | | Fixes: debbugs:18015
* * lisp/xt-mouse.el (xterm-mouse-translate-1): Intern drag event.Stefan Monnier2014-07-081-42/+37
| | | | | | Remove also pointless window&mark manipulation. Fixes: debbugs:17894
* * lisp/xt-mouse.el (turn-on-xterm-mouse-tracking-on-terminal)Stefan Monnier2014-07-011-3/+16
| | | | | | | (turn-off-xterm-mouse-tracking-on-terminal): Don't burp if the terminal is suspended. Fixes: debbugs:17857
* Merge from emacs-24; up to 2014-06-06T02:22:40Z!monnier@iro.umontreal.caGlenn Morris2014-06-211-17/+16
|\
| * * lisp/xt-mouse.el (xterm-mouse-translate-1): Fix last change.Stefan Monnier2014-06-181-20/+19
| | | | | | | | | | | | | | (xterm-mouse--read-event-sequence-1000): Drop unknown events instead of burping. Fixes: debbugs:17776
* | * lisp/mouse.el: Use the normal toplevel loop while dragging.Stefan Monnier2014-05-111-75/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (mouse-set-point): Handle multi-clicks. (mouse-set-region): Handle multi-clicks for drags. (mouse-drag-region): Update call accordingly. (mouse-drag-track): Remove `do-mouse-drag-region-post-process' hack. Use the normal event loop instead of a local while/read-event loop. (global-map): Remove redundant bindings for double/triple-mouse-1. * lisp/xt-mouse.el (xterm-mouse-translate-1): Only process one event at a time. Generate synthetic down events when the protocol only sends up events. (xterm-mouse-last): Remove. (xterm-mouse--read-event-sequence-1000): Use xterm-mouse-last-down terminal parameter instead. (xterm-mouse--set-click-count): New function. (xterm-mouse-event): Detect/generate double/triple clicks. * lisp/reveal.el (reveal-close-old-overlays): Don't close while dragging.
* | Merge from emacs-24; up to 2014-05-08T03:34:20Z!rgm@gnu.orgGlenn Morris2014-05-071-50/+55
|\ \ | |/
| * * lisp/xt-mouse.el: Drop spurious/oddly shaped events.Stefan Monnier2014-05-071-49/+54
| | | | | | | | | | | | | | | | (xterm-mouse--read-event-sequence-1000): Return nil if something looks fishy. (xterm-mouse-event): Propagate it. (xterm-mouse-translate-1): Handle it. Fixes: debbugs:17378
| * * lisp/xt-mouse.el (xterm-mouse--read-event-sequence-1000):Stefan Monnier2014-05-051-4/+4
| | | | | | | | | | | | | | | | Always store button numbers in the same way in xterm-mouse-last; Don't burp is xterm-mouse-last is not set as expected. Never return negative indices. Fixes: debbugs:17378
* | 2014-04-17 Daniel Colascione <dancol@dancol.org>Daniel Colascione2014-04-171-32/+29
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for bracketed paste mode; add infrastructure for managing terminal mode enabling and disabling automatically. * xt-mouse.el: (xterm-mouse-mode): Simplify. (xterm-mouse-tracking-enable-sequence) (xterm-mouse-tracking-disable-sequence): New constants. (turn-on-xterm-mouse-tracking-on-terminal) (turn-off-xterm-mouse-tracking-on-terminal): Use tty-mode-set-strings and tty-mode-reset-strings terminal parameters instead of random hooks. (turn-on-xterm-mouse-tracking) (turn-off-xterm-mouse-tracking): Delete. * term/xterm.el (xterm-extra-capabilities): Fix bitrotted comment. (xterm-paste-ending-sequence): New constant. (xterm-paste): New command used for bracketed paste support. (xterm-modify-other-keys-terminal-list): Delete obsolete variable. (terminal-init-xterm-bracketed-paste-mode): New function. (terminal-init-xterm): Call it. (terminal-init-xterm-modify-other-keys): Use tty-mode-set-strings and tty-mode-reset-strings instead of random hooks. (xterm-turn-on-modify-other-keys) (xterm-turn-off-modify-other-keys) (xterm-remove-modify-other-keys): Delete obsolete functions. * term/screen.el: Rewrite to just use the xterm code. Add copyright notice. Mention tmux.
* Update copyright year to 2014 by running admin/update-copyright.Paul Eggert2014-01-011-1/+1
|
* * lisp/xt-mouse.el (xterm-mouse-event-read): Remove.Stefan Monnier2013-03-101-20/+6
| | | | | (xterm-mouse--read-event-sequence-1000) (xterm-mouse--read-event-sequence-1006): Use read-event instead.
* Update copyright notices for 2013.Paul Eggert2013-01-011-1/+1
|
* Misc minor changes.Stefan Monnier2012-07-171-7/+7
| | | | | | | * lisp/xt-mouse.el (xterm-mouse-translate-1, xterm-mouse-event-read): Use read-event since we don't really want to read chars but bytes. * lisp/emacs-lisp/macroexp.el (macroexp-let2): Use more informative names for uninterned vars.
* * xt-mouse.el: Implement extended mouse coordinates.Chong Yidong2012-07-141-54/+125
| | | | | | | | | | | | | | | (xterm-mouse-translate): Move code into xterm-mouse-translate-1. (xterm-mouse-translate-extended, xterm-mouse-translate-1) (xterm-mouse--read-event-sequence-1000) (xterm-mouse--read-event-sequence-1006): New functions. For old mouse protocol, handle M-mouse-X events correctly. (xterm-mouse-event): New arg specifying mouse protocol. (turn-on-xterm-mouse-tracking-on-terminal) (turn-off-xterm-mouse-tracking-on-terminal): Send DEC 1006 sequence to toggle extended coordinates on newer XTerms. This appears to be harmless on terminals which do not support this. Fixes: debbugs:10642
* Add 2012 to FSF copyright years for Emacs filesGlenn Morris2012-01-051-1/+1
|
* Fix minor mode docstrings for the new meaning of a nil ARG.Chong Yidong2011-10-191-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * abbrev.el (abbrev-mode): * allout.el (allout-mode): * autoinsert.el (auto-insert-mode): * autoarg.el (autoarg-mode, autoarg-kp-mode): * autorevert.el (auto-revert-mode, auto-revert-tail-mode) (global-auto-revert-mode): * battery.el (display-battery-mode): * composite.el (global-auto-composition-mode) (auto-composition-mode): * delsel.el (delete-selection-mode): * desktop.el (desktop-save-mode): * dired-x.el (dired-omit-mode): * dirtrack.el (dirtrack-mode): * doc-view.el (doc-view-minor-mode): * double.el (double-mode): * electric.el (electric-indent-mode, electric-pair-mode): * emacs-lock.el (emacs-lock-mode): * epa-hook.el (auto-encryption-mode): * follow.el (follow-mode): * font-core.el (font-lock-mode): * frame.el (auto-raise-mode, auto-lower-mode, blink-cursor-mode): * help.el (temp-buffer-resize-mode): * hilit-chg.el (highlight-changes-mode) (highlight-changes-visible-mode): * hi-lock.el (hi-lock-mode): * hl-line.el (hl-line-mode, global-hl-line-mode): * icomplete.el (icomplete-mode): * ido.el (ido-everywhere): * image-file.el (auto-image-file-mode): * image-mode.el (image-minor-mode): * iswitchb.el (iswitchb-mode): * jka-cmpr-hook.el (auto-compression-mode): * linum.el (linum-mode): * longlines.el (longlines-mode): * master.el (master-mode): * mb-depth.el (minibuffer-depth-indicate-mode): * menu-bar.el (menu-bar-mode): * minibuf-eldef.el (minibuffer-electric-default-mode): * mouse-sel.el (mouse-sel-mode): * msb.el (msb-mode): * mwheel.el (mouse-wheel-mode): * outline.el (outline-minor-mode): * paren.el (show-paren-mode): * recentf.el (recentf-mode): * reveal.el (reveal-mode, global-reveal-mode): * rfn-eshadow.el (file-name-shadow-mode): * ruler-mode.el (ruler-mode): * savehist.el (savehist-mode): * scroll-all.el (scroll-all-mode): * scroll-bar.el (scroll-bar-mode): * server.el (server-mode): * shell.el (shell-dirtrack-mode): * simple.el (auto-fill-mode, transient-mark-mode) (visual-line-mode, overwrite-mode, binary-overwrite-mode) (line-number-mode, column-number-mode, size-indication-mode) (auto-save-mode, normal-erase-is-backspace-mode, visible-mode): * strokes.el (strokes-mode): * time.el (display-time-mode): * t-mouse.el (gpm-mouse-mode): * tool-bar.el (tool-bar-mode): * tooltip.el (tooltip-mode): * type-break.el (type-break-mode-line-message-mode) (type-break-query-mode): * view.el (view-mode): * whitespace.el (whitespace-mode, whitespace-newline-mode) (global-whitespace-mode, global-whitespace-newline-mode): * xt-mouse.el (xterm-mouse-mode): Doc fix. * emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Fix autogenerated docstring.
* Merge from emacs-23 branchChong Yidong2011-08-091-3/+10
|\
| * Fixes: debbugs:6594Andreas Schwab2011-07-281-3/+10
| | | | | | | | | | * lisp/xt-mouse.el (xterm-mouse-event-read): Try to recover the raw character.
* | lisp/*.el: Lexical-binding cleanup.Juanma Barranquero2011-04-191-2/+2
| |
* | Convert consecutive FSF copyright years to ranges.Glenn Morris2011-01-241-2/+1
| |
* | Nuke arch-tags.Glenn Morris2011-01-151-1/+0
|/
* Add 2011 to FSF/AIST copyright years.Glenn Morris2011-01-021-1/+1
|
* * xt-mouse.el (xterm-mouse-event-read): Fix for characters > 127Jan D2010-07-141-2/+2
| | | | now that unicode is used (Bug#6594).
* Add 2010 to copyright years.Glenn Morris2010-01-131-1/+1
|
* (turn-on-xterm-mouse-tracking-on-terminal)Dan Nicolaescu2009-02-051-2/+8
| | | | | (turn-off-xterm-mouse-tracking-on-terminal): Do not turn on the mode on the initial terminal.
* Add 2009 to copyright years.Glenn Morris2009-01-051-1/+1
|
* (turn-on-xterm-mouse-tracking, turn-off-xterm-mouse-tracking):Stefan Monnier2008-06-101-2/+2
| | | | Use terminal-list.
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-061-6/+4
|
* (xterm-mouse-mode): Use delete-terminal-functions.Stefan Monnier2008-03-291-28/+12
| | | | (xterm-mouse-handle-delete-frame): Delete.
* (xterm-mouse-event): Avoid error with buttons > 5.Andreas Schwab2008-03-241-1/+4
|
* Merge from emacs--rel--22Miles Bader2008-01-081-1/+1
|\ | | | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
| * Add 2008 to copyright years.Glenn Morris2008-01-071-1/+1
| |
* | Don't change the global function-key-map anny more.Stefan Monnier2007-10-181-21/+24
| | | | | | | | | | | | | | | | | | | | | | | | (xterm-mouse-mode): Use terminal-init-xterm-hook. Don't use after-make-frame-functions now that term/xterm.el calls us directly. (turn-on-xterm-mouse-tracking, turn-off-xterm-mouse-tracking): Use turn-*-xterm-mouse-tracking-on-terminal. Only once per terminal. (turn-on-xterm-mouse-tracking-on-terminal): Make param optional. Setup input-decode-map and remember that xterm-mouse-mode was enabled in this terminal. (turn-off-xterm-mouse-tracking-on-terminal): Only disable on those terminals where it has been enabled.
* | * xt-mouse.el (xterm-mouse-mode): Re-enable suspend-tty-functions.Dan Nicolaescu2007-09-211-11/+4
| | | | | | | | | | * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning up the tty state.
* | Delete add-hook calls that were moved toDan Nicolaescu2007-09-171-4/+11
| | | | | | | | | | | | xterm-mouse-mode. (xterm-mouse-mode): Disable resume-tty-functions, explain why it does not work.
* | Delete add-hook calls that were moved toDan Nicolaescu2007-09-171-11/+0
| | | | | | | | xterm-mouse-mode.
* | * xt-mouse.el (xterm-mouse-mode): Add hooks here not at the topDan Nicolaescu2007-09-151-0/+23
| | | | | | | | | | | | | | | | level. Remove the hooks when turning off the mode. * term/xterm.el: Require xt-mouse at compile time. (terminal-init-xterm): Turn on xterm mouse tracking for this terminal if xterm-mouse-mode is enabled.
* | * server.el (server-start, server-unload-hook): Undo previousDan Nicolaescu2007-09-041-2/+2
| | | | | | | | | | | | | | | | | | change. * xt-mouse.el: Undo previous change. * term.c (Vsuspend_tty_functions, Vresume_tty_functions) (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
* | * server.el (server-start, server-unload-hook):Dan Nicolaescu2007-09-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | suspend-tty-functions has been renamed to suspend-tty-hook. * xt-mouse.el: Likewise. resume-tty-functions has been renamed to resume-tty-hook. * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions. (Vresume_tty_hook): Rename from Vresume_tty_functions. (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook and resume-tty-function to resume-tty-hook. (Fsuspend_tty, Fresume_tty): Use new names.
* | Merge from emacs--devo--0Miles Bader2007-08-131-1/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * emacs--devo--0 (patch 846-851) - Update from CVS - Merge from emacs--rel--22 * emacs--rel--22 (patch 88-92) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 242-244) - Update from CVS Revision: emacs@sv.gnu.org/emacs--multi-tty--0--patch-31
| * \ Merge from emacs--rel--22Miles Bader2007-08-131-1/+2
| |\ \ | | |/ | | | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-851
| | * Replace `iff' in doc-strings and comments.Glenn Morris2007-08-081-1/+2
| | |