亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? bg-mouse.el

?? windows版本的emacs
?? EL
字號:
;;; bg-mouse.el --- GNU Emacs code for BBN Bitgraph mouse;; Copyright (C) 2001 Free Software Foundation, Inc. Oct 1985.;; Author: John Robinson <jr@bbn-unix.arpa>;;	Stephen Gildea <gildea@bbn.com>;; Maintainer: FSF;; Keywords: hardware;; This file is part of GNU Emacs.;; GNU Emacs is free software; you can redistribute it and/or modify;; it under the terms of the GNU General Public License as published by;; the Free Software Foundation; either version 2, or (at your option);; any later version.;; GNU Emacs is distributed in the hope that it will be useful,;; but WITHOUT ANY WARRANTY; without even the implied warranty of;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the;; GNU General Public License for more details.;; You should have received a copy of the GNU General Public License;; along with GNU Emacs; see the file COPYING.  If not, write to the;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,;; Boston, MA 02111-1307, USA.;;; Commentary:;;; Code:;;;  Original version by John Robinson (jr@bbn-unix.arpa, bbncca!jr), Oct 1985;;;  Modularized and enhanced by gildea@bbn.com Nov 1987;;;  Time stamp <89/03/21 14:27:08 gildea>;;;  User customization option:(defvar bg-mouse-fast-select-window nil  "*Non-nil for mouse hits to select new window, then execute; else just select.");;; These numbers are summed to make the index into the mouse-map.;;; The low three bits correspond to what the mouse actually sends.(defconst bg-button-r 1)(defconst bg-button-m 2)(defconst bg-button-c 2)(defconst bg-button-l 4)(defconst bg-in-modeline 8)(defconst bg-in-scrollbar 16)(defconst bg-in-minibuf 24);;; semicolon screws up indenting, so use this instead(defconst semicolon ?\;);;;  Defuns:(defun bg-mouse-report (prefix-arg)  "Read, parse, and execute a BBN BitGraph mouse click.L-- move point             | These apply for mouse click in a window.--R set mark               | If bg-mouse-fast-select-window is nil,L-R kill region            | these commands on a nonselected window-C- move point and yank    | just select that window.LC- yank-pop		   |-CR or LCR undo		   | \"Scroll bar\" is right-hand window column.on modeline:		    on \"scroll bar\":	in minibuffer:L-- scroll-up		    line to top		execute-extended-command--R scroll-down		    line to bottom	eval-expression-C- proportional goto-char  line to middle	suspend-emacsTo reinitialize the mouse if the terminal is reset, type ESC : RET"  (interactive "P")  (bg-get-tty-num semicolon)  (let*      ((screen-mouse-x (min (1- (frame-width))	;don't hit column 86!			    (/ (bg-get-tty-num semicolon) 9)))       (screen-mouse-y (- (1- (frame-height)) ;assume default font size.			  (/ (bg-get-tty-num semicolon) 16)))        (bg-mouse-buttons (% (bg-get-tty-num ?c) 8))       (bg-mouse-window (bg-window-from-x-y screen-mouse-x screen-mouse-y))       (bg-cursor-window (selected-window))       (edges (window-edges bg-mouse-window))       (minibuf-p (= screen-mouse-y (1- (frame-height))))       (in-modeline-p (and (not minibuf-p)			   (= screen-mouse-y (1- (nth 3 edges)))))       (in-scrollbar-p (and (not minibuf-p) (not in-modeline-p)			    (>= screen-mouse-x (1- (nth 2 edges)))))       (same-window-p (eq bg-mouse-window bg-cursor-window))       (in-minibuf-p (and minibuf-p			  (not bg-mouse-window))) ;minibuf must be inactive       (bg-mode-bits (+ (if in-minibuf-p bg-in-minibuf 0)			(if in-modeline-p bg-in-modeline 0)			(if in-scrollbar-p bg-in-scrollbar 0)))       (bg-command	 (lookup-key mouse-map		     (char-to-string (+ bg-mode-bits bg-mouse-buttons))))       (bg-mouse-x (- screen-mouse-x (nth 0 edges)))       (bg-mouse-y (- screen-mouse-y (nth 1 edges))))    (cond ((or in-modeline-p in-scrollbar-p)	   (select-window bg-mouse-window)	   (bg-command-execute bg-command)	   (select-window bg-cursor-window))	  ((or same-window-p in-minibuf-p)	   (bg-command-execute bg-command))	  (t				;in another window	    (select-window bg-mouse-window)	    (if bg-mouse-fast-select-window		(bg-command-execute bg-command)))	  )));;; Library of commands:(defun bg-set-point ()  "Move point to location of BitGraph mouse."  (interactive)  (bg-move-point-to-x-y bg-mouse-x bg-mouse-y)  (setq this-command 'next-line)	;make subsequent line moves work  (setq temporary-goal-column bg-mouse-x))(defun bg-set-mark ()  "Set mark at location of BitGraph mouse."  (interactive)  (push-mark)  (bg-move-point-to-x-y bg-mouse-x bg-mouse-y)  (exchange-point-and-mark))(defun bg-yank ()  "Move point to location of BitGraph mouse and yank."  (interactive "*")  (bg-move-point-to-x-y bg-mouse-x bg-mouse-y)  (setq this-command 'yank)  (yank))(defun yank-pop-1 ()  (interactive "*")  (yank-pop 1))(defun bg-yank-or-pop ()  "Move point to location of BitGraph mouse and yank.  If last commandwas a yank, do a yank-pop."  (interactive "*")  (if (eq last-command 'yank)      (yank-pop 1)    (bg-yank)));;; In 18.51, Emacs Lisp doesn't provide most-positive-fixnum(defconst bg-most-positive-fixnum 8388607)(defun bg-move-by-percentage ()  "Go to location in buffer that is the same percentage of the waythrough the buffer as the BitGraph mouse's X position in the window."  (interactive)  ;; check carefully for overflow in intermediate calculations  (goto-char   (cond ((zerop bg-mouse-x)	  0)	 ((< (buffer-size) (/ bg-most-positive-fixnum bg-mouse-x))	  ;; no danger of overflow: compute it exactly	  (/ (* bg-mouse-x (buffer-size))	     (1- (window-width))))	 (t	  ;; overflow possible: approximate	  (* (/ (buffer-size) (1- (window-width)))	     bg-mouse-x))))  (beginning-of-line)  (what-cursor-position))(defun bg-mouse-line-to-top ()  "Scroll the line pointed to by the BitGraph mouse to the top of the window."  (interactive)  (scroll-up bg-mouse-y))(defun bg-mouse-line-to-center ()  "Scroll the line pointed to by the BitGraph mouse to the center of the window"  (interactive)  (scroll-up (/ (+ 2 bg-mouse-y bg-mouse-y (- (window-height))) 2)))(defun bg-mouse-line-to-bottom ()  "Scroll the line pointed to by the mouse to the bottom of the window."  (interactive)  (scroll-up (+ bg-mouse-y (- 2 (window-height)))))(defun bg-kill-region ()  (interactive "*")  (kill-region (region-beginning) (region-end)))(defun bg-insert-moused-sexp ()  "Insert a copy of the word (actually sexp) that the mouse is pointing at.Sexp is inserted into the buffer at point (where the text cursor is)."  (interactive)  (let ((moused-text	  (save-excursion	    (bg-move-point-to-x-y bg-mouse-x bg-mouse-y)	    (if (looking-at "\\s)")		(forward-char 1)	      (forward-sexp 1))	    (buffer-substring (save-excursion (backward-sexp 1) (point))			      (point)))))    (select-window bg-cursor-window)    (delete-horizontal-space)    (cond     ((bolp)      (indent-according-to-mode))     ;; In Lisp assume double-quote is closing; in Text assume opening.     ;; Why?  Because it does the right thing most often.     ((save-excursion (forward-char -1)		      (and (not (looking-at "\\s\""))			   (looking-at "[`'\"\\]\\|\\s(")))      nil)     (t      (insert-string " ")))    (insert-string moused-text)    (or (eolp)	(looking-at "\\s.\\|\\s)")	(and (looking-at "'") (looking-at "\\sw")) ;hack for text mode	(save-excursion (insert-string " ")))));;; Utility functions:(defun bg-get-tty-num (term-char)  "Read from terminal until TERM-CHAR is read, and return intervening number.If non-numeric not matching TERM-CHAR, reprogram the mouse and signal an error."  (let      ((num 0)       (char (- (read-char) 48)))    (while (and (>= char 0)		(<= char 9))      (setq num (+ (* num 10) char))      (setq char (- (read-char) 48)))    (or (eq term-char (+ char 48))	(progn	  (bg-program-mouse)	  (error	    "Invalid data format in bg-mouse command: mouse reinitialized.")))    num));;; Note that this fails in the minibuf because move-to-column doesn't;;; allow for the width of the prompt.(defun bg-move-point-to-x-y (x y)  "Position cursor in window coordinates.X and Y are 0-based character positions in the window."  (move-to-window-line y)  ;; if not on a wrapped line, zero-column will be 0  (let ((zero-column (current-column))	(scroll-offset (window-hscroll)))    ;; scrolling takes up column 0 to display the $    (if (> scroll-offset 0)	(setq scroll-offset (1- scroll-offset)))    (move-to-column (+ zero-column scroll-offset x))    ));;; Returns the window that screen position (x, y) is in or nil if none,;;; meaning we are in the echo area with a non-active minibuffer.(defun bg-window-from-x-y (x y)  "Find window corresponding to screen coordinates.X and Y are 0-based character positions on the screen."  (get-window-with-predicate (lambda (w) 			       (coordinates-in-window-p (cons x y) w))))(defun bg-command-execute (bg-command)  (if (commandp bg-command)      (command-execute bg-command)    (ding)))(defun bg-program-mouse ()  (send-string-to-terminal "\e:0;7;;;360;512;9;16;9;16c"));;; Note that the doc string for mouse-map (as defined in subr.el);;; says it is for the X-window mouse.  This is wrong; that keymap;;; should be used for your mouse no matter what terminal you have.(or (keymapp mouse-map)    (setq mouse-map (make-keymap)))(defun bind-bg-mouse-click (click-code function)  "Bind bg-mouse CLICK-CODE to run FUNCTION."  (define-key mouse-map (char-to-string click-code) function))(bind-bg-mouse-click bg-button-l 'bg-set-point) (bind-bg-mouse-click bg-button-m 'bg-yank)(bind-bg-mouse-click bg-button-r 'bg-set-mark)(bind-bg-mouse-click (+ bg-button-l bg-button-m) 'yank-pop-1)(bind-bg-mouse-click (+ bg-button-l bg-button-r) 'bg-kill-region)(bind-bg-mouse-click (+ bg-button-m bg-button-r) 'undo)(bind-bg-mouse-click (+ bg-button-l bg-button-m bg-button-r) 'undo)(bind-bg-mouse-click (+ bg-in-modeline bg-button-l) 'scroll-up)(bind-bg-mouse-click (+ bg-in-modeline bg-button-m) 'bg-move-by-percentage)(bind-bg-mouse-click (+ bg-in-modeline bg-button-r) 'scroll-down)(bind-bg-mouse-click (+ bg-in-scrollbar bg-button-l) 'bg-mouse-line-to-top)(bind-bg-mouse-click (+ bg-in-scrollbar bg-button-m) 'bg-mouse-line-to-center)(bind-bg-mouse-click (+ bg-in-scrollbar bg-button-r) 'bg-mouse-line-to-bottom)(bind-bg-mouse-click (+ bg-in-minibuf bg-button-l) 'execute-extended-command)(bind-bg-mouse-click (+ bg-in-minibuf bg-button-m) 'suspend-emacs)(bind-bg-mouse-click (+ bg-in-minibuf bg-button-r) 'eval-expression)(provide 'bg-mouse);;; bg-mouse.el ends here

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人18精品视频| 亚洲一二三区在线观看| 国产精一区二区三区| 欧美一区二区精品| 男女性色大片免费观看一区二区| 制服丝袜av成人在线看| 日本成人在线不卡视频| 欧美va亚洲va| 国产成人一区在线| 亚洲图片你懂的| 欧美性大战久久久久久久蜜臀| 亚洲成人av在线电影| 欧美另类久久久品| 老司机午夜精品99久久| 久久奇米777| 99久久精品免费看国产| 一区二区三区成人在线视频 | 日韩av网站在线观看| 欧美一级精品大片| 国产成人精品三级| 一区二区欧美在线观看| 欧美绝品在线观看成人午夜影视| 奇米色一区二区三区四区| 久久久精品影视| 色一情一伦一子一伦一区| 日韩高清中文字幕一区| 国产亚洲欧美色| 色先锋久久av资源部| 视频一区二区国产| 国产人成一区二区三区影院| 欧洲一区在线电影| 久久成人av少妇免费| 中文字幕在线不卡视频| 欧美另类videos死尸| 国产成人精品免费网站| 五月婷婷综合激情| 国产精品私人影院| 宅男噜噜噜66一区二区66| 国产成a人亚洲| 五月婷婷激情综合| 国产拍欧美日韩视频二区| 欧美日韩亚洲不卡| 顶级嫩模精品视频在线看| 亚洲第一福利一区| 国产精品久久久一本精品| 91精品国产综合久久久久| 成人免费福利片| 奇米影视在线99精品| 一区二区成人在线| 中文文精品字幕一区二区| 欧美精品vⅰdeose4hd| 成人av第一页| 狠狠色丁香久久婷婷综| 亚洲一区二区三区视频在线| 日本一区二区免费在线观看视频 | 亚洲乱码国产乱码精品精可以看 | 久久久噜噜噜久久人人看| 欧美综合一区二区三区| 福利一区在线观看| 久久av老司机精品网站导航| 亚洲午夜精品久久久久久久久| 国产欧美精品在线观看| 精品久久久网站| 91麻豆精品国产91久久久久久久久 | 成人网在线播放| 狠狠色丁香婷综合久久| 日本午夜一本久久久综合| 尤物在线观看一区| 国产精品另类一区| 国产欧美日韩精品在线| 久久在线观看免费| 亚洲精品一区二区三区在线观看| 欧美高清视频www夜色资源网| 97aⅴ精品视频一二三区| 成人毛片视频在线观看| 风间由美一区二区三区在线观看 | 久久先锋影音av鲁色资源网| 7777女厕盗摄久久久| 欧美日韩一区不卡| 欧美丝袜丝交足nylons图片| 色香蕉成人二区免费| 91麻豆精东视频| 99国产精品视频免费观看| 成人精品免费网站| 国产91丝袜在线观看| 国产精品亚洲成人| 风间由美中文字幕在线看视频国产欧美| 国产美女精品人人做人人爽| 国产一区二区在线观看视频| 久久aⅴ国产欧美74aaa| 国产精品一品二品| 成人免费视频播放| 91亚洲国产成人精品一区二区三| www.欧美.com| 欧美午夜寂寞影院| 日韩一区二区免费高清| 日韩久久精品一区| 国产精品理论在线观看| 亚洲宅男天堂在线观看无病毒| 亚洲亚洲精品在线观看| 日韩高清一区在线| 国产成人久久精品77777最新版本| 波波电影院一区二区三区| 色视频欧美一区二区三区| 欧美三级三级三级爽爽爽| 91精品国产综合久久久久久久| 日韩女优av电影| 欧美成人乱码一区二区三区| 日本一区二区久久| 国产精品盗摄一区二区三区| 中文字幕亚洲一区二区va在线| 综合久久综合久久| 亚洲一区二区三区在线| 国产精品夫妻自拍| 国产色爱av资源综合区| 中文字幕一区二区视频| 一区二区三区蜜桃网| 国内久久婷婷综合| 成人app网站| 在线观看国产精品网站| 日韩一区二区免费高清| 亚洲日本一区二区| 日韩av一区二区在线影视| 国产在线国偷精品产拍免费yy| 国产中文一区二区三区| aaa亚洲精品一二三区| 欧美性猛交xxxx乱大交退制版| 欧美一区二区视频在线观看2022| 久久综合久久综合久久综合| 最好看的中文字幕久久| 爽好多水快深点欧美视频| 国产福利一区二区三区| 在线观看亚洲a| 日韩你懂的电影在线观看| 国产精品动漫网站| 日本va欧美va精品| 成人不卡免费av| 欧美日韩精品系列| 日本一区二区三区dvd视频在线| 三级一区在线视频先锋| 国产精品一品视频| 欧美精品亚洲二区| 国产精品区一区二区三| 天天综合网天天综合色| 一道本成人在线| 欧美一三区三区四区免费在线看 | 成人欧美一区二区三区| 亚洲高清在线精品| 国产盗摄视频一区二区三区| 91久久一区二区| 久久久久国产一区二区三区四区| 亚洲狠狠丁香婷婷综合久久久| 久久精品国产精品亚洲综合| 色av一区二区| 国产视频视频一区| 亚洲综合999| www.日本不卡| 久久久亚洲午夜电影| 日本不卡一区二区三区| 4438亚洲最大| 一区二区三区精密机械公司| 不卡视频在线看| 久久久亚洲欧洲日产国码αv| 一区二区成人在线| 91在线免费看| 国产精品毛片a∨一区二区三区| 日韩黄色一级片| 欧美日韩精品免费| 亚洲专区一二三| 色猫猫国产区一区二在线视频| 国产性色一区二区| 精彩视频一区二区| 久久久久国产成人精品亚洲午夜| 久久精品国产一区二区三| 精品视频在线视频| 伊人色综合久久天天| 成人深夜视频在线观看| 久久九九99视频| 久草这里只有精品视频| 日韩欧美一二区| 日韩电影在线看| 欧美精品在线观看一区二区| 亚洲精品免费在线播放| 色综合久久六月婷婷中文字幕| 国产亚洲欧美色| 91免费在线视频观看| 亚洲免费观看高清完整版在线| 成人黄色av电影| 中文字幕不卡在线观看| 99re这里只有精品6| 成人免费一区二区三区在线观看| 不卡一区在线观看| 亚洲精品老司机| 欧美一区二区三区免费观看视频| 天堂影院一区二区| 欧美一级理论片| 国产一区二区看久久| 亚洲精品视频观看| 欧美日韩国产a| 久久精品理论片|