File manager - Edit - /home/sarjilsh/cityfoodcenter.co.uk/emacs.zip
Back
PK &1]�+� � 2 site-lisp/desktop-file-utils/desktop-entry-mode.elnu �[��� ;;; desktop-entry-mode.el --- freedesktop.org desktop entry editing ;; Copyright (C) 2003-2004, 2006-2007 Ville Skyttä, <scop at xemacs.org> ;; Author: Ville Skyttä, <scop at xemacs.org> ;; Keywords: unix, desktop entry ;; This file is part of XEmacs. ;; XEmacs 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. ;; XEmacs 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 XEmacs; see the file COPYING. If not, write to the Free ;; Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, ;; MA 02110-1301 USA. ;;; Commentary: ;; This mode provides basic functionality, eg. syntax highlighting and ;; validation for freedesktop.org desktop entry files. ;; ;; To install it: ;; ;; In XEmacs: ;; Just install the XEmacs `text-modes' package, this mode is included. ;; See <http://www.xemacs.org/Documentation/packageGuide.html>. ;; ;; In GNU Emacs: ;; Place this file in your load path somewhere (eg. site-lisp), and add ;; the following to your .emacs: ;; ;; (autoload 'desktop-entry-mode "desktop-entry-mode" "Desktop Entry mode" t) ;; (add-to-list 'auto-mode-alist ;; '("\\.desktop\\(\\.in\\)?$" . desktop-entry-mode)) ;; (add-hook 'desktop-entry-mode-hook 'turn-on-font-lock) ;; ;; For more information about desktop entry files, see ;; <http://www.freedesktop.org/Standards/desktop-entry-spec> ;; ;; This version is up to date with version 1.0 of the specification. ;;; Code: (eval-when-compile (require 'regexp-opt)) (defconst desktop-entry-mode-version "1.0 (spec 1.0)" "Version of `desktop-entry-mode'.") (defgroup desktop-entry nil "Support for editing freedesktop.org desktop entry files." :group 'languages) (defcustom desktop-entry-validate-command "desktop-file-validate" "*Command for validating desktop entry files." :type 'string :group 'desktop-entry) (defgroup desktop-entry-faces nil "Font lock faces for `desktop-entry-mode'." :prefix "desktop-entry-" :group 'desktop-entry :group 'faces) (defface desktop-entry-group-header-face '((((class color) (background light)) (:foreground "mediumblue" :bold t)) (((class color) (background dark)) (:foreground "lightblue" :bold t)) (t (:bold t))) "*Face for highlighting desktop entry group headers." :group 'desktop-entry-faces) (defface desktop-entry-deprecated-keyword-face '((((class color)) (:background "yellow" :foreground "black" :strikethru t)) ) "*Face for highlighting deprecated desktop entry keys." :group 'desktop-entry-faces) (defface desktop-entry-unknown-keyword-face '((((class color)) (:foreground "red3" :underline t)) (t (:underline t)) ) "*Face for highlighting unknown desktop entry keys." :group 'desktop-entry-faces) (defface desktop-entry-value-face '((((class color) (background light)) (:foreground "darkgreen")) (((class color) (background dark)) (:foreground "lightgreen")) ) "*Face for highlighting desktop entry values." :group 'desktop-entry-faces) (defface desktop-entry-locale-face '((((class color) (background light)) (:foreground "dimgray")) (((class color) (background dark)) (:foreground "lightgray")) ) "*Face for highlighting desktop entry locales." :group 'desktop-entry-faces) (defconst desktop-entry-keywords (eval-when-compile (concat "\\(?:" (regexp-opt '( "Type" "Version" "Name" "GenericName" "NoDisplay" "Comment" "Icon" "Hidden" "OnlyShowIn" "NotShowIn" "TryExec" "Exec" "Path" "Terminal" "MimeType" "Categories" "StartupNotify" "StartupWMClass" "URL" ;; Reserved for use with KDE "ServiceTypes" "DocPath" "KeyWords" "InitialPreference" ;; Used by KDE for entries of the FSDevice type "Dev" "FSType" "MountPoint" "ReadOnly" "UnmountIcon" ) 'words) "\\|X-[A-Za-z0-9-]+\\)")) "Expression for matching desktop entry keys.") (defconst desktop-entry-deprecated-keywords (eval-when-compile (concat "\\(\\<Type\\s-*=\\s-*MimeType\\>\\|" (regexp-opt '( "Patterns" "DefaultApp" "Encoding" "MiniIcon" "TerminalOptions" "Protocols" "Extensions" "BinaryPattern" "MapNotify" "SwallowTitle" "SwallowExec" "SortOrder" "FilePattern" ) 'words) "\\)")) "Expression for matching deprecated desktop entry keys.") (defconst desktop-entry-group-header-re "^\\[\\(X-[^\][]+\\|\\(?:Desktop \\(?:Entry\\|Action [a-zA-Z]+\\)\\)\\)\\]" "Regular expression for matching desktop entry group headers.") (defconst desktop-entry-font-lock-keywords (list (cons "^\\s-*#.*$" '(0 'font-lock-comment-face)) (cons (concat "^" desktop-entry-deprecated-keywords) '(0 'desktop-entry-deprecated-keyword-face)) (cons (concat "^" desktop-entry-keywords) '(0 'font-lock-keyword-face)) (cons "^[A-Za-z0-9-]+" '(0 'desktop-entry-unknown-keyword-face)) (cons desktop-entry-group-header-re '(1 'desktop-entry-group-header-face)) (cons "^[A-Za-z0-9-]+?\\s-*=\\s-*\\(.*\\)" '(1 'desktop-entry-value-face)) (cons "^[A-Za-z0-9-]+?\\[\\([^\]]+\\)\\]\\s-*=\\s-*\\(.*\\)" '((1 'desktop-entry-locale-face) (2 'desktop-entry-value-face))) ) "Highlighting rules for `desktop-entry-mode' buffers.") (defvar desktop-entry-imenu-generic-expression `((nil ,desktop-entry-group-header-re 1)) "Imenu generic expression for `desktop-entry-mode'. See `imenu-generic-expression'.") ;;;###autoload (defun desktop-entry-mode () "Major mode for editing freedesktop.org desktop entry files. See <http://www.freedesktop.org/Standards/desktop-entry-spec> for more information. See `desktop-entry-mode-version' for information about which version of the specification this mode is up to date with. Turning on desktop entry mode calls the value of the variable `desktop-entry-mode-hook' with no args, if that value is non-nil." (interactive) (set (make-local-variable 'imenu-generic-expression) '((nil "^\\s-*\\(.*\\)\\s-*=" 1))) (set (make-local-variable 'compile-command) (concat desktop-entry-validate-command " " buffer-file-name)) (set (make-local-variable 'compilation-buffer-name-function) (lambda (x) (concat "*desktop-file-validate " (file-name-nondirectory buffer-file-name) "*"))) (set (make-local-variable 'comment-start) "# ") (set (make-local-variable 'comment-end) "") (set (make-local-variable 'comment-start-skip) "#+ *") (setq major-mode 'desktop-entry-mode mode-name "Desktop Entry") (set (make-local-variable 'imenu-generic-expression) desktop-entry-imenu-generic-expression) (unless (featurep 'xemacs) ;; font-lock support for GNU Emacs (set (make-local-variable 'font-lock-defaults) '(desktop-entry-font-lock-keywords))) (run-hooks 'desktop-entry-mode-hook)) (defun desktop-entry-validate () "Validate desktop entry in the current buffer." (interactive) (require 'compile) (compile compile-command)) ;;;###autoload(add-to-list 'auto-mode-alist '("\\.desktop\\(\\.in\\)?$" . desktop-entry-mode)) (provide 'desktop-entry-mode) ;;; desktop-entry-mode.el ends here PK &1]H�b�v v site-lisp/git/git.elnu �[��� (error "git.el no longer ships with git. It's recommended to replace its use with Magit, or simply delete references to git.el in your initialization file(s). See contrib/emacs/README in git's sources (https://github.com/git/git/blob/master/contrib/emacs/README) for suggested alternatives and for why this happened. Emacs's own VC mode and Magit are viable alternatives.") PK &1]Yeo� site-lisp/git/git-blame.elnu �[��� (error "git-blame.el no longer ships with git. It's recommended to replace its use with Emacs's own vc-annotate. See contrib/emacs/README in git's sources (https://github.com/git/git/blob/master/contrib/emacs/README) for more info on suggested alternatives and for why this happened.") PK &1]z�}�� � # site-lisp/protobuf/protobuf-mode.elnu �[��� ;;; protobuf-mode.el --- major mode for editing protocol buffers. ;; Author: Alexandre Vassalotti <alexandre@peadrop.com> ;; Created: 23-Apr-2009 ;; Version: 0.3 ;; Keywords: google protobuf languages ;; Redistribution and use in source and binary forms, with or without ;; modification, are permitted provided that the following conditions are ;; met: ;; ;; * Redistributions of source code must retain the above copyright ;; notice, this list of conditions and the following disclaimer. ;; * Redistributions in binary form must reproduce the above ;; copyright notice, this list of conditions and the following disclaimer ;; in the documentation and/or other materials provided with the ;; distribution. ;; * Neither the name of Google Inc. nor the names of its ;; contributors may be used to endorse or promote products derived from ;; this software without specific prior written permission. ;; ;; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ;; "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT ;; LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR ;; A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT ;; OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ;; SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT ;; LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, ;; DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY ;; THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ;; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE ;; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ;;; Commentary: ;; Installation: ;; - Put `protobuf-mode.el' in your Emacs load-path. ;; - Add this line to your .emacs file: ;; (require 'protobuf-mode) ;; ;; You can customize this mode just like any mode derived from CC Mode. If ;; you want to add customizations specific to protobuf-mode, you can use the ;; `protobuf-mode-hook'. For example, the following would make protocol-mode ;; use 2-space indentation: ;; ;; (defconst my-protobuf-style ;; '((c-basic-offset . 2) ;; (indent-tabs-mode . nil))) ;; ;; (add-hook 'protobuf-mode-hook ;; (lambda () (c-add-style "my-style" my-protobuf-style t))) ;; ;; Refer to the documentation of CC Mode for more information about ;; customization details and how to use this mode. ;; ;; TODO: ;; - Make highlighting for enum values work properly. ;; - Fix the parser to recognize extensions as identifiers and not ;; as casts. ;; - Improve the parsing of option assignment lists. For example: ;; optional int32 foo = 1 [(my_field_option) = 4.5]; ;; - Add support for fully-qualified identifiers (e.g., with a leading "."). ;;; Code: (require 'cc-mode) (eval-when-compile (and (= emacs-major-version 24) (>= emacs-minor-version 4) (require 'cl)) (require 'cc-langs) (require 'cc-fonts)) ;; This mode does not inherit properties from other modes. So, we do not use ;; the usual `c-add-language' function. (eval-and-compile (put 'protobuf-mode 'c-mode-prefix "protobuf-")) ;; The following code uses of the `c-lang-defconst' macro define syntactic ;; features of protocol buffer language. Refer to the documentation in the ;; cc-langs.el file for information about the meaning of the -kwds variables. (c-lang-defconst c-primitive-type-kwds protobuf '("double" "float" "int32" "int64" "uint32" "uint64" "sint32" "sint64" "fixed32" "fixed64" "sfixed32" "sfixed64" "bool" "string" "bytes" "group")) (c-lang-defconst c-modifier-kwds protobuf '("required" "optional" "repeated")) (c-lang-defconst c-class-decl-kwds protobuf '("message" "enum" "service")) (c-lang-defconst c-constant-kwds protobuf '("true" "false")) (c-lang-defconst c-other-decl-kwds protobuf '("package" "import")) (c-lang-defconst c-other-kwds protobuf '("default" "max")) (c-lang-defconst c-identifier-ops ;; Handle extended identifiers like google.protobuf.MessageOptions protobuf '((left-assoc "."))) ;; The following keywords do not fit well in keyword classes defined by ;; cc-mode. So, we approximate as best we can. (c-lang-defconst c-type-list-kwds protobuf '("extensions" "to" "reserved")) (c-lang-defconst c-typeless-decl-kwds protobuf '("extend" "rpc" "option" "returns")) ;; Here we remove default syntax for loops, if-statements and other C ;; syntactic features that are not supported by the protocol buffer language. (c-lang-defconst c-brace-list-decl-kwds ;; Remove syntax for C-style enumerations. protobuf nil) (c-lang-defconst c-block-stmt-1-kwds ;; Remove syntax for "do" and "else" keywords. protobuf nil) (c-lang-defconst c-block-stmt-2-kwds ;; Remove syntax for "for", "if", "switch" and "while" keywords. protobuf nil) (c-lang-defconst c-simple-stmt-kwds ;; Remove syntax for "break", "continue", "goto" and "return" keywords. protobuf nil) (c-lang-defconst c-paren-stmt-kwds ;; Remove special case for the "(;;)" in for-loops. protobuf nil) (c-lang-defconst c-label-kwds ;; Remove case label syntax for the "case" and "default" keywords. protobuf nil) (c-lang-defconst c-before-label-kwds ;; Remove special case for the label in a goto statement. protobuf nil) (c-lang-defconst c-cpp-matchers ;; Disable all the C preprocessor syntax. protobuf nil) (c-lang-defconst c-decl-prefix-re ;; Same as for C, except it does not match "(". This is needed for disabling ;; the syntax for casts. protobuf "\\([\{\};,]+\\)") ;; Add support for variable levels of syntax highlighting. (defconst protobuf-font-lock-keywords-1 (c-lang-const c-matchers-1 protobuf) "Minimal highlighting for protobuf-mode.") (defconst protobuf-font-lock-keywords-2 (c-lang-const c-matchers-2 protobuf) "Fast normal highlighting for protobuf-mode.") (defconst protobuf-font-lock-keywords-3 (c-lang-const c-matchers-3 protobuf) "Accurate normal highlighting for protobuf-mode.") (defvar protobuf-font-lock-keywords protobuf-font-lock-keywords-3 "Default expressions to highlight in protobuf-mode.") ;; Our syntax table is auto-generated from the keyword classes we defined ;; previously with the `c-lang-const' macro. (defvar protobuf-mode-syntax-table nil "Syntax table used in protobuf-mode buffers.") (or protobuf-mode-syntax-table (setq protobuf-mode-syntax-table (funcall (c-lang-const c-make-mode-syntax-table protobuf)))) (defvar protobuf-mode-abbrev-table nil "Abbreviation table used in protobuf-mode buffers.") (defvar protobuf-mode-map nil "Keymap used in protobuf-mode buffers.") (or protobuf-mode-map (setq protobuf-mode-map (c-make-inherited-keymap))) (easy-menu-define protobuf-menu protobuf-mode-map "Protocol Buffers Mode Commands" (cons "Protocol Buffers" (c-lang-const c-mode-menu protobuf))) ;;;###autoload (add-to-list 'auto-mode-alist '("\\.proto\\'" . protobuf-mode)) ;;;###autoload (defun protobuf-mode () "Major mode for editing Protocol Buffers description language. The hook `c-mode-common-hook' is run with no argument at mode initialization, then `protobuf-mode-hook'. Key bindings: \\{protobuf-mode-map}" (interactive) (kill-all-local-variables) (set-syntax-table protobuf-mode-syntax-table) (setq major-mode 'protobuf-mode mode-name "Protocol-Buffers" local-abbrev-table protobuf-mode-abbrev-table abbrev-mode t) (use-local-map protobuf-mode-map) (c-initialize-cc-mode t) (if (fboundp 'c-make-emacs-variables-local) (c-make-emacs-variables-local)) (c-init-language-vars protobuf-mode) (c-common-init 'protobuf-mode) (easy-menu-add protobuf-menu) (c-run-mode-hooks 'c-mode-common-hook 'protobuf-mode-hook) (c-update-modeline)) (provide 'protobuf-mode) ;;; protobuf-mode.el ends here PK &1]c�C��� �� $ site-lisp/protobuf/protobuf-mode.elcnu �[��� ;ELC ;;; Compiled ;;; in Emacs version 26.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!\210\302\303\304\305#\210\306\307\310\311B\312B\313#\210\306\314\315\316B\312B\317#\210\306\320\321\322B\312B\323#\210\306\324\325\326B\312B\327#\210\306\330\331\332B\312B\333#\210\306\334\335\336B\312B\337#\210\306\340\341\342B\312B\343#\210\306\344\345\346B\312B\347#\210\306\350\351\352B\312B\353#\210\306\354\355\356B\312B\357#\210\306\360\361\362B\312B\363#\210\306\364\365\366B\312B\367#\210\306\370\371\372B\312B\373#\210\306\374\375\376B\312B\377#\210\306\201@ \201A \201B B\312B\201C #\210\306\201D \201E \201F B\312B\201G #\210\306\201H \201I \201J B\312B\201K #\210\306\201L \201M \201N B\312B\201O #\207" [require cc-mode put protobuf-mode c-mode-prefix "protobuf-" c-define-lang-constant c-primitive-type-kwds (protobuf-mode) #[nil "\300\207" [("double" "float" "int32" "int64" "uint32" "uint64" "sint32" "sint64" "fixed32" "fixed64" "sfixed32" "sfixed64" "bool" "string" "bytes" "group")] 1] nil (cc-langs) c-modifier-kwds (protobuf-mode) #[nil "\300\207" [("required" "optional" "repeated")] 1] (cc-langs) c-class-decl-kwds (protobuf-mode) #[nil "\300\207" [("message" "enum" "service")] 1] (cc-langs) c-constant-kwds (protobuf-mode) #[nil "\300\207" [("true" "false")] 1] (cc-langs) c-other-decl-kwds (protobuf-mode) #[nil "\300\207" [("package" "import")] 1] (cc-langs) c-other-kwds (protobuf-mode) #[nil "\300\207" [("default" "max")] 1] (cc-langs) c-identifier-ops (protobuf-mode) #[nil "\300\207" [((left-assoc "."))] 1] (cc-langs) c-type-list-kwds (protobuf-mode) #[nil "\300\207" [("extensions" "to" "reserved")] 1] (cc-langs) c-typeless-decl-kwds (protobuf-mode) #[nil "\300\207" [("extend" "rpc" "option" "returns")] 1] (cc-langs) c-brace-list-decl-kwds (protobuf-mode) #[nil "\300\207" [nil] 1] (cc-langs) c-block-stmt-1-kwds (protobuf-mode) #[nil "\300\207" [nil] 1] (cc-langs) c-block-stmt-2-kwds (protobuf-mode) #[nil "\300\207" [nil] 1] (cc-langs) c-simple-stmt-kwds (protobuf-mode) #[nil "\300\207" [nil] 1] (cc-langs) c-paren-stmt-kwds (protobuf-mode) #[nil "\300\207" [nil] 1] (cc-langs) c-label-kwds (protobuf-mode) #[nil "\300\207" [nil] 1] (cc-langs) c-before-label-kwds (protobuf-mode) #[nil "\300\207" [nil] 1] (cc-langs) c-cpp-matchers (protobuf-mode) #[nil "\300\207" [nil] 1] (cc-fonts) c-decl-prefix-re (protobuf-mode) #[nil "\300\207" [#1="\\([{};,]+\\)"] 1 #1#] (cc-langs)] 4) #@41 Minimal highlighting for protobuf-mode. (defconst protobuf-font-lock-keywords-1 (byte-code "\301=?\205\f \302\303\304\305#\207" [c-version-sym 5\.33\.1 c-get-lang-constant c-matchers-1 (cc-fonts) protobuf-mode] 4) (#$ . 2749)) #@45 Fast normal highlighting for protobuf-mode. (defconst protobuf-font-lock-keywords-2 (byte-code "\301=\203 \302\207\303\304\305\306#\207" [c-version-sym 5\.33\.1 (#[#1=(limit) "\303\300!\304\305 \306#\203&