?
Current Path : /usr/share/emacs/24.3/lisp/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : //usr/share/emacs/24.3/lisp/ruler-mode.elc |
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:06:29 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/ruler-mode.el ;;; in Emacs version 24.3.1 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301!\210\300\302!\210\303\304\305\306\307\310\311\312&\210\313\314\305\315\311\304\316\317&\207" [require scroll-bar fringe custom-declare-group ruler-mode nil "Display a ruler in the header line." :version "22.1" :group convenience custom-declare-variable ruler-mode-show-tab-stops "If non-nil the ruler shows tab stop positions.\nAlso allowing to visually change `tab-stop-list' setting using\n<C-down-mouse-1> and <C-down-mouse-3> on the ruler to respectively add\nor remove a tab stop. \\[ruler-mode-toggle-show-tab-stops] or\n<C-down-mouse-2> on the ruler toggles showing/editing of tab stops." :type boolean] 8) #@49 Ensure WIDGET value is a valid character value. (defalias 'ruler-mode-character-validate #[(widget) "\212\302!\303 !?\205 \304\305\306\307 \"#\210*\207" [widget value widget-value characterp widget-put :error format "Invalid character value: %S"] 6 (#$ . 1191)]) (byte-code "\300\301\302\303\304\305\306\307&\210\300\310\311\312\304\305\306\313&\210\300\314\315\316\304\305\306\317&\210\300\320\321\322\304\305\306\323&\210\300\324\325\326\304\305\306\327&\210\300\330\331\332\304\305\306\333&\210\300\334\335\336\304\305\306\337&\210\300\340\341\342\304\305\306\343&\210\344\345\346\347\304\305%\210\344\350\351\352\304\305%\210\344\353\354\355\304\305%\210\344\356\357\360\304\305%\210\344\361\362\363\304\305%\210\344\364\365\366\304\305%\210\344\367\370\371\304\305%\210\344\372\373\374\304\305%\210\344\375\376\377\304\305%\210\344\201@ \201A \201B \304\305%\207" [custom-declare-variable ruler-mode-fill-column-char (if (char-displayable-p 182) 182 124) "Character used at the `fill-column' location." :group ruler-mode :type (choice (character :tag "Character") (integer :tag "Integer char value" :validate ruler-mode-character-validate)) ruler-mode-comment-column-char 35 "Character used at the `comment-column' location." (choice (character :tag "Character") (integer :tag "Integer char value" :validate ruler-mode-character-validate)) ruler-mode-goal-column-char 71 "Character used at the `goal-column' location." (choice (character :tag "Character") (integer :tag "Integer char value" :validate ruler-mode-character-validate)) ruler-mode-current-column-char (if (char-displayable-p 166) 166 64) "Character used at the `current-column' location." (choice (character :tag "Character") (integer :tag "Integer char value" :validate ruler-mode-character-validate)) ruler-mode-tab-stop-char 84 "Character used at `tab-stop-list' locations." (choice (character :tag "Character") (integer :tag "Integer char value" :validate ruler-mode-character-validate)) ruler-mode-basic-graduation-char 46 "Character used for basic graduations." (choice (character :tag "Character") (integer :tag "Integer char value" :validate ruler-mode-character-validate)) ruler-mode-inter-graduation-char 33 "Character used for intermediate graduations." (choice (character :tag "Character") (integer :tag "Integer char value" :validate ruler-mode-character-validate)) ruler-mode-set-goal-column-ding-flag t "Non-nil means do `ding' when `goal-column' is set." boolean custom-declare-face ruler-mode-default ((((type tty)) (:inherit default :background "grey64" :foreground "grey50")) (t (:inherit default :background "grey76" :foreground "grey64" :box (:color "grey76" :line-width 1 :style released-button)))) "Default face used by the ruler." ruler-mode-pad ((((type tty)) (:inherit ruler-mode-default :background "grey50")) (t (:inherit ruler-mode-default :background "grey64"))) "Face used to pad inactive ruler areas." ruler-mode-margins ((t (:inherit ruler-mode-default :foreground "white"))) "Face used to highlight margin areas." ruler-mode-fringes ((t (:inherit ruler-mode-default :foreground "green"))) "Face used to highlight fringes areas." ruler-mode-column-number ((t (:inherit ruler-mode-default :foreground "black"))) "Face used to highlight number graduations." ruler-mode-fill-column ((t (:inherit ruler-mode-default :foreground "red"))) "Face used to highlight the fill column character." ruler-mode-comment-column ((t (:inherit ruler-mode-default :foreground "red"))) "Face used to highlight the comment column character." ruler-mode-goal-column ((t (:inherit ruler-mode-default :foreground "red"))) "Face used to highlight the goal column character." ruler-mode-tab-stop ((t (:inherit ruler-mode-default :foreground "steelblue"))) "Face used to highlight tab stop characters." ruler-mode-current-column ((t (:inherit ruler-mode-default :weight bold :foreground "yellow"))) "Face used to highlight the `current-column' character."] 8) #@47 Return the full width of the selected window. (defalias 'ruler-mode-full-window-width #[nil "\301 \3028@Z)\207" [edges window-edges 2] 2 (#$ . 5143)]) (put 'ruler-mode-full-window-width 'byte-optimizer 'byte-compile-inline-expand) #@106 Return a column number relative to the selected window. N is a column number relative to selected frame. (defalias 'ruler-mode-window-col #[(n) "\303\304 @\305 @\206\f \306\307\310 \203 \311\202 \312\n\307=\203# \313\202$ \314\315 !\206+ \306\316\317 !\"*\320\307!%\207" [n real side - window-edges window-margins 0 left nil / ceiling car cadr window-fringes float frame-char-width scroll-bar-columns] 8 (#$ . 5384)]) (put 'ruler-mode-window-col 'byte-optimizer 'byte-compile-inline-expand) #@108 Set left margin end to the graduation where the mouse pointer is on. START-EVENT is the mouse click event. (defalias 'ruler-mode-mouse-set-left-margin #[(start-event) "\306!\307!\310\211\310\211 \n=\205u \311 r\312\216\313 \211@)!\210\314\315 !@\316 @\317\320!#\314\316 \3218@Z)\317\320!\317\322!#\323Y\205t \fW\205t \324 \211A\206_ \323 @\206g \323\325\326 #\210\327\310#+.\207" [start-event start end col w lm event-start event-end nil internal--before-save-selected-window ((internal--after-save-selected-window save-selected-window--state)) select-window - posn-col-row window-edges scroll-bar-columns left 2 right 0 window-margins message "Left margin set to %d (was %d)" set-window-margins rm save-selected-window--state position edges] 6 (#$ . 5887) "e"]) #@115 Set right margin beginning to the graduation where the mouse pointer is on. START-EVENT is the mouse click event. (defalias 'ruler-mode-mouse-set-right-margin #[(start-event) "\306!\307!\310\211\310\211 \n=\205{ \311 r\312\216\313 \211@)!\210\314\315 !@\316 @\317\320!#\314\316 \3218@Z)\317\320!\317\322!#\323Y\205z \fW\205z \324 \211A\206_ \323 @\206g \323\314\f\325#\326\327#\210\330\310 #+.\207" [start-event start end col w lm event-start event-end nil internal--before-save-selected-window ((internal--after-save-selected-window save-selected-window--state)) select-window - posn-col-row window-edges scroll-bar-columns left 2 right 0 window-margins 1 message "Right margin set to %d (was %d)" set-window-margins rm save-selected-window--state position edges] 6 (#$ . 6689) "e"]) #@125 Column symbol dragged in the ruler. That is `fill-column', `comment-column', `goal-column', or nil when nothing is dragged. (defvar ruler-mode-dragged-symbol nil (#$ . 7515)) #@234 Drag a column symbol on the ruler. Start dragging on mouse down event START-EVENT, and update the column symbol value with the current value of the ruler graduation while dragging. See also the variable `ruler-mode-dragged-symbol'. (defalias 'ruler-mode-mouse-grab-any-column #[(start-event) "\306\307 !\306\211\306\310 +r\311\216\312\n\211,@)!\210\313\n!@-\314-\315 @\316 @\206/ \317\320\306./.\203>