?
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/time.elc |
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:06:32 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/time.el ;;; in Emacs version 24.3.1 ;;; with all optimizations. ;;; This file contains utf-8 non-ASCII characters, ;;; and so cannot be loaded into Emacs 22 or earlier. (and (boundp 'emacs-version) (< (aref emacs-version (1- (length emacs-version))) ?A) (string-lessp emacs-version "23") (error "`%s' was compiled for Emacs 23 or later" #$)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301\302\303\304\305\304\306&\210\307\310\302\311\312\313\304\301&\210\307\314\302\315\312\316\304\301&\210\307\317\302\320\312\321\304\301&\210\307\322\323\324\312\325\304\301&\207" [custom-declare-group display-time nil "Display time and load in mode line of Emacs." :group mode-line mail custom-declare-variable display-time-mail-file "File name of mail inbox file, for indicating existence of new mail.\nNon-nil and not a string means don't check for mail; nil means use\ndefault, which is system-dependent, and is the same as used by Rmail." :type (choice (const :tag "None" none) (const :tag "Default" nil) (file :format "%v")) display-time-mail-directory "Name of mail inbox directory, for indicating existence of new mail.\nAny nonempty regular file in the directory is regarded as newly arrived mail.\nIf nil, do not check a directory for arriving mail." (choice (const :tag "None" nil) (directory :format "%v")) display-time-mail-function "Function to call, for indicating existence of new mail.\nIf nil, that means use the default method: check that the file\nspecified by `display-time-mail-file' is nonempty or that the\ndirectory `display-time-mail-directory' contains nonempty files." (choice (const :tag "Default" nil) (function)) display-time-default-load-average 0 "Which load average value will be shown in the mode line.\nAlmost every system can provide values of load for the past 1 minute,\npast 5 or past 15 minutes. The default is to display 1-minute load average.\nThe value can be one of:\n\n 0 => 1 minute load\n 1 => 5 minutes load\n 2 => 15 minutes load\n nil => None (do not display the load average)" (choice (const :tag "1 minute load" 0) (const :tag "5 minutes load" 1) (const :tag "15 minutes load" 2) (const :tag "None" nil))] 8) #@168 Value of the system's load average currently shown on the mode line. See `display-time-default-load-average'. This is an internal variable; setting it has no effect. (defvar display-time-load-average nil (#$ . 2345)) (byte-code "\300\301\302\303\304\305\306\307&\210\300\310\311\312\304\313\306\307&\207" [custom-declare-variable display-time-load-average-threshold 0.1 "Load-average values below this value won't be shown in the mode line." :type number :group display-time display-time-day-and-date nil "Non-nil means \\[display-time] should display day and date as well as time." boolean] 8) (defvar display-time-timer nil) (byte-code "\300\301\302\303\304\305\306\307&\210\300\310\311\312\304\313\306\307&\207" [custom-declare-variable display-time-interval 60 "Seconds between updates of time in the mode line." :type integer :group display-time display-time-24hr-format nil "Non-nil indicates time should be displayed as hh:mm, 0 <= hh <= 23.\nA value of nil means 1 <= hh <= 12, and an AM/PM suffix is used." boolean] 8) (defvar display-time-string nil) #@75 List of functions to be called when the time is updated on the mode line. (custom-declare-variable 'display-time-hook nil '(#$ . 3417) :type 'hook :group 'display-time) #@114 Time when mail file's file system was recorded to be down. If that file system seems to be up, the value is nil. (defvar display-time-server-down-time nil (#$ . 3593)) (byte-code "\300\301\302\303\304\305\306\307\310\311& \210\300\312\313\314\304\305\306\315\310\311& \210\300\316\317\320\304\305\306\321\310\311& \210\300\322\323\324\304\305\306\325\310\311& \210\300\326\327\330\304\305\306\325\310\311& \210\300\331\332\333\304\305\306\334\310\311& \210\300\335\336\337\304\305\306\340\310\311& \207" [custom-declare-variable zoneinfo-style-world-list '(("America/Los_Angeles" "Seattle") ("America/New_York" "New York") ("Europe/London" "London") ("Europe/Paris" "Paris") ("Asia/Calcutta" "Bangalore") ("Asia/Tokyo" "Tokyo")) "Alist of zoneinfo-style time zones and places for `display-time-world'.\nEach element has the form (TIMEZONE LABEL).\nTIMEZONE should be a string of the form AREA/LOCATION, where AREA is\nthe name of a region -- a continent or ocean, and LOCATION is the name\nof a specific location, e.g., a city, within that region.\nLABEL is a string to display as the label of that TIMEZONE's time." :group display-time :type (repeat (list string string)) :version "23.1" legacy-style-world-list '(("PST8PDT" "Seattle") ("EST5EDT" "New York") ("GMT0BST" "London") ("CET-1CDT" "Paris") ("IST-5:30" "Bangalore") ("JST-9" "Tokyo")) "Alist of traditional-style time zones and places for `display-time-world'.\nEach element has the form (TIMEZONE LABEL).\nTIMEZONE should be a string of the form:\n\n std[+|-]offset[dst[offset][,date[/time],date[/time]]]\n\nSee the documentation of the TZ environment variable on your system,\nfor more details about the format of TIMEZONE.\nLABEL is a string to display as the label of that TIMEZONE's time." (repeat (list string string)) display-time-world-list (let ((old-tz (getenv "TZ")) gmt nyt) (unwind-protect (progn (setenv "TZ" "America/New_York") (setq nyt (format-time-string "%z")) (setenv "TZ" "Europe/London") (setq gmt (format-time-string "%z"))) (setenv "TZ" old-tz)) (if (string-equal nyt gmt) legacy-style-world-list zoneinfo-style-world-list)) "Alist of time zones and places for `display-time-world' to display.\nEach element has the form (TIMEZONE LABEL).\nTIMEZONE should be in a format supported by your system. See the\ndocumentation of `zoneinfo-style-world-list' and\n`legacy-style-world-list' for two widely used formats. LABEL is\na string to display as the label of that TIMEZONE's time." (repeat (list string string)) display-time-world-time-format "%A %d %B %R %Z" "Format of the time displayed, see `format-time-string'." string display-time-world-buffer-name "*wclock*" "Name of the world clock buffer." display-time-world-timer-enable t "If non-nil, a timer will update the world clock." boolean display-time-world-timer-second 60 "Interval in seconds for updating the world clock." integer] 10) #@271 Enable display of time, load level, and mail flag in mode lines. This display updates automatically every minute. If `display-time-day-and-date' is non-nil, the current day and date are displayed as well. This runs the normal hook `display-time-hook' after each update. (defalias 'display-time #[nil "\300\301!\207" [display-time-mode 1] 2 (#$ . 6483) nil]) #@217 Face to use for `display-time-mail-string'. If `display-time-use-mail-icon' is non-nil, the image's background color is the background of this face. Set this to make the mail indicator stand out on a color display. (custom-declare-variable 'display-time-mail-face nil '(#$ . 6848) :group 'mode-line-faces :group 'display-time :version "22.1" :type '(choice (const :tag "None" nil) face)) #@137 Image specification to offer as the mail indicator on a graphic display. See `display-time-use-mail-icon' and `display-time-mail-face'. (defvar display-time-mail-icon (find-image '((:type xpm :file "letter.xpm" :ascent center) (:type pbm :file "letter.pbm" :ascent center))) (#$ . 7244)) (byte-code "\300\301\302\303\304\305\306\307&\210\300\310\311\312\304\305\313\314\306\315& \210\300\316\302\317\306\320\304\305&\210\300\321\322\323\306\324\304\305&\207" [custom-declare-variable display-time-use-mail-icon nil "Non-nil means use an icon as mail indicator on a graphic display.\nOtherwise use `display-time-mail-string'. The icon may consume less\nof the mode line. It is specified by `display-time-mail-icon'." :group display-time :type boolean display-time-mail-string "Mail" "String to use as the mail indicator in `display-time-string-forms'.\nThis can use the Unicode letter character if you can display it." :version "22.1" (choice (const "Mail") (const :tag "Unicode letter character" "✉") string) display-time-format "String specifying format for displaying the time in the mode line.\nSee the function `format-time-string' for an explanation of\nhow to write this string. If this is nil, the defaults\ndepend on `display-time-day-and-date' and `display-time-24hr-format'." (choice (const :tag "Default" nil) string) display-time-string-forms '((if (and (not display-time-format) display-time-day-and-date) (format-time-string "%a %b %e " now) #1="") (propertize (format-time-string (or display-time-format (if display-time-24hr-format "%H:%M" "%-I:%M%p")) now) 'help-echo (format-time-string "%a %b %e, %Y" now)) load (if mail (concat " " (propertize display-time-mail-string 'display `(when (and display-time-use-mail-icon (display-graphic-p)) ,@display-time-mail-icon ,@(if (and display-time-mail-face (memq (plist-get (cdr display-time-mail-icon) :type) '(pbm xbm))) (let ((bg (face-attribute display-time-mail-face :background))) (if (stringp bg) (list :background bg))))) 'face display-time-mail-face 'help-echo "You have new mail; mouse-2: Read mail" 'mouse-face 'mode-line-highlight 'local-map (make-mode-line-mouse-map 'mouse-2 read-mail-command))) #1#)) "List of expressions governing display of the time in the mode line.\nFor most purposes, you can control the time format using `display-time-format'\nwhich is a more standard interface.\n\nThis expression is a list of expressions that can involve the keywords\n`load', `day', `month', and `year', `12-hours', `24-hours', `minutes',\n`seconds', all numbers in string form, and `monthname', `dayname', `am-pm',\nand `time-zone' all alphabetic strings, and `mail' a true/nil value.\n\nFor example, the form\n\n '((substring year -2) \"/\" month \"/\" day\n \" \" 24-hours \":\" minutes \":\" seconds\n (if time-zone \" (\") time-zone (if time-zone \")\")\n (if mail \" Mail\" \"\"))\n\nwould give mode line times like `94/12/30 21:07:48 (UTC)'." sexp] 10) (defalias 'display-time-event-handler #[nil "\305 \210\306\307!\210\310 \311\n\312H\n\313H\n\314HE\n\315H\316_\307#\211@@V\206a @@U\2039 A@A@V\206a @@U\203U A@A@U\203U \3138\3138V\206a \317\n\320\f\"\f#\210\321\n!+\207" [current display-time-timer timer next-time display-time-interval display-time-update sit-for 0 current-time timer-relative-time 1 2 3 4 5 timer-set-time timer-next-integral-multiple-of-time timer-activate] 6]) #@130 Switch between different load averages in the mode line. Switches from the 1 to 5 to 15 minute load average, and then back to 1. (defalias 'display-time-next-load-average #[nil "T\211\301U\203 \302\303 \210\304\302!\207" [display-time-load-average 3 0 display-time-update sit-for] 2 (#$ . 10645) nil]) (defalias 'display-time-mail-check-directory #[nil "\303\304\"\305\211\203, \305U\203, \306\n@!\203\"