;ELC ;;; Compiled ;;; in Emacs version 28.0.50 ;;; with all optimizations. (byte-code "\300\301!\210\300\302!\210\303\304\305\306\307\301%\210\310\311\312\313\314DD\315\307\304\316\317&\210\310\320\312\313\321DD\322\307\304\323\324\316\325& \210\310\326\312\313\327DD\330\307\304\316\331&\210\310\332\312\313\333DD\334\307\304\316\335&\207" [require lsp-mode cl-lib custom-declare-group lsp-latex nil "Language Server Protocol client for LaTeX." :group custom-declare-variable lsp-latex-java-executable funcall function #[0 "\300\207" [#1="java"] 1 #1#] "Executable command to run Java.\nThis is used with `lsp-latex-java-argument-list'.\n\nThis variable is only for texlab v0.4.2 or older. If you use newer,\nYou don't have to set or care about this variable." :type string lsp-latex-java-argument-list #[0 "\300\207" [("-jar")] 1] "List of arguments passed to `lsp-latex-java-executable'.\n\nThis variable is only for texlab v0.4.2 or older. If you use newer,\nYou don't have to set or care about this variable." :risky t (repeat string) lsp-latex-texlab-jar-file #[0 "\300\207" [search-from-exec-path] 1] "File named \"texlab.jar\".\nYou can install it from https://github.com/latex-lsp/texlab/releases/ .\n\nThe value can be a string (path to \"texlab.jar\") or the symbol\nsearch-from-exec-path. See the docstring of `lsp-latex-get-texlab-jar-file'.\n\nThis variable is only for texlab v0.4.2 or older. If you use newer,\nYou don't have to set or care about this variable." (choice string (const search-from-exec-path)) lsp-latex-texlab-jar-argument-list #[0 "\300\207" [nil] 1] "List of arguments passed to `lsp-latex-texlab-jar-file'.\n\nThis variable is only for texlab v0.4.2 or older. If you use newer,\nYou don't have to set or care about this variable." (repeat string)] 10) #@343 Return the path to "texlab.jar". If `lsp-latex-texlab-jar-file' is a string, return it. If `lsp-latex-texlab-jar-file' is the symbol search-from-exec-path, then search a file named "texlab.jar" from variable `exec-path'. This function is only for texlab v0.4.2 or older. If you use newer, You don't have to set or care about this variable. (defalias 'lsp-latex-get-texlab-jar-file #[0 ";\203\207\302=\203\303\304 \"\207\305\306!\207" [lsp-latex-texlab-jar-file exec-path search-from-exec-path locate-file "texlab.jar" error "Invalid value of `lsp-latex-texlab-jar-file'"] 3 (#$ . 1806)]) (byte-code "\300\301\302\303\304DD\305\306\307\310\311&\210\300\312\302\303\313DD\314\306\307\310\315&\210\300\316\302\303\317DD\320\321\322\306\307\323\322\310\311& \210\300\324\302\303\325DD\326\306\307\323\322\310\311& \210\300\327\302\303\330DD\331\306\307\323\322\310\332& \210\300\333\302\303\334DD\335\306\307\310\336&\210\337\333\340\341#\210\300\342\302\303\343DD\344\306\307\310\311\323\322\345\341& \210\346\347\342\350#\210\351\211\203\243\211@\347N\203\234\342N\204\234\352\342\347N#\210A\266\202\202\202\210\337\347\342\341#\210\300\353\302\303\354DD\355\306\307\310\311\323\322\345\341& \210\300\356\302\303\357DD\360\306\307\310\336&\210\300\361\302\303\362DD\363\306\307\310\311\323\322& \210\300\364\302\303\365DD\366\306\307\310\367\323\322& \210\300\370\302\303\371DD\372\306\307\310\336\345\341& \210\300\373\302\303\374DD\375\306\307\310\376\345\341& \210\346\377\370\201@#\210\351\211\203:\211@\377N\2033\370N\2043\352\370\377N#\210A\266\202\202\210\337\377\370\341#\210\300\201A\302\303\201BDD\201C\306\307\310\336\345\341& \210\346\201D\201A\201E#\210\351\211\203\216\211@\201DN\203\207\201AN\204\207\352\201A\201DN#\210A\266\202\202e\210\337\201D\201A\341#\210\300\201F\302\303\201GDD\201H\306\307\310\376\345\341& \210\346\201I\201F\201J#\210\351\211\203\346\211@\201IN\203\337\201FN\204\337\352\201F\201IN#\210A\266\202\202\275\210\337\201I\201F\201K#\210\300\201L\302\303\201MDD\201N\306\307\310\201O\345\341& \210\346\201P\201L\201Q#\210\351\211\203B\211@\201PN\203;\201LN\204;\352\201L\201PN#\210A\266\202\202\210\337\201P\201L\341#\210\300\201R\302\303\201SDD\201T\306\307\310\201U\345\341& \210\300\201V\302\303\201WDD\201X\321\322\306\307\310\201Y\345\341& \210\300\201Z\302\303\201[DD\201\\\306\307\310\336\345\341& \207" [custom-declare-variable lsp-latex-texlab-executable funcall function #[0 "\301=\203\302\207\303\207" [system-type windows-nt "texlab.exe" "texlab"] 2] "Executable command to run texlab.\nCalled with the arguments in `lsp-latex-texlab-executable-argument-list'." :group lsp-latex :type string lsp-latex-texlab-executable-argument-list #[0 "\300\207" [nil] 1] "List of Arguments passed to `lsp-latex-texlab-executable'." (repeat string) lsp-latex-root-directory #[0 "\300\207" [#1="."] 1 #1#] "Root directory of each buffer." :local t :risky lsp-latex-build-executable #[0 "\300\207" [#2="latexmk"] 1 #2#] "Build command used on `lsp-latex-build'." lsp-latex-build-args #[0 "\300\207" [("-pdf" "-interaction=nonstopmode" "-synctex=1" "%f")] 1] "Argument list passed to `lsp-latex-build-executable'.\nValue is used on `lsp-latex-build'.\n\"%f\" can be used as the path of the TeX file to compile." (repeat string) lsp-latex-build-on-save #[0 "\300\207" [nil] 1] "Build after saving a file or not.\n\nThis variable is obsoleted since texlab 3.0.0." boolean make-obsolete-variable "This variable is obsoleted since texlab 3.0.0.\nSee also https://github.com/latex-lsp/texlab/blob/a0f0dded751258f57e972ad5e2285f82e3404f27/CHANGELOG.md#changed." "2.0.0" lsp-latex-build-aux-directory #[0 "\300\207" [#3="."] 1 #3#] "Directory to which built file is put.\nNote that you should change `lsp-latex-build-args' to change output directory.\nIf you use latexmk, use \"-outdir\" flag." :version defvaralias lsp-latex-build-output-directory "Directory to which built file is put.\nNote that you should change `lsp-latex-build-args' to change output directory.\nIf you use latexmk, use \"-outdir\" flag.\n\nThis variable is obsoleted since texlab 3.0.0." (saved-value saved-variable-comment) put lsp-latex-build-is-continuous #[0 "\300\207" [nil] 1] "A continuous build is implied if non-nil.\n\nThis variable is valid since texlab 3.0.0." lsp-latex-forward-search-after #[0 "\300\207" [nil] 1] "Execute forward-research after building." lsp-latex-forward-search-executable #[0 "\300\207" [nil] 1] "Executable command used to search in preview.\nIt is passed server as \"latex.forwardSearch.executable\"." lsp-latex-forward-search-args #[0 "\300\207" [nil] 1] "Argument list passed to `lsp-latex-forward-search-executable'.\nIt is passed server as \"latex.forwardSearch.executable\".\n\nPlaceholders\n %f: The path of the current TeX file.\n %p: The path of the current PDF file.\n %l: The current line number." (repeat string) lsp-latex-chktex-on-edit #[0 "\300\207" [nil] 1] "Lint using chktex after changing a file." lsp-latex-diagnostics-delay #[0 "\300\207" [300] 1] "Delay time before reporting diagnostics.\nThe value is in milliseconds." integerp lsp-latex-lint-on-change "Lint using chktex after changing a file.\n\nThis variable is obsoleted since texlab 3.0.0." lsp-latex-chktex-on-open-and-save #[0 "\300\207" [nil] 1] "Lint using chktex after opening and saving a file." lsp-latex-lint-on-save "Lint using chktex after saving a file.\n\nThis variable is obsoleted since texlab 3.0.0." lsp-latex-bibtex-formatter-line-length #[0 "\300\207" [80] 1] "Maximum amount of line on formatting BibTeX files.\n0 means disable." lsp-latex-bibtex-formatting-line-length nil "Maximum amount of line on formatting BibTeX files.\n0 means disable.\n\nThis variable is obsoleted since texlab 3.0.0." lsp-latex-bibtex-formatter #[0 "\300\207" [#4="texlab"] 1 #4#] "Formatter used to format BibTeX file.\nYou can choose \"texlab\" or \"latexindent\"." (choice (const "texlab") (const "latexindent")) lsp-latex-bibtex-formatting-formatter "Formatter used to format BibTeX file.\nYou can choose \"texlab\" or \"latexindent\".\n\nThis variable is obsoleted since texlab 3.0.0." lsp-latex-latex-formatter #[0 "\300\207" [#5="texlab"] 1 #5#] "Formatter used to format LaTeX file.\nYou can choose \"texlab\" or \"latexindent\".\n\nThis variable is valid since texlab 3.0.0." (choice (const "texlab") (const "latexindent")) lsp-latex-latexindent-local #[0 "\300\207" [nil] 1] "Path to file of latexindent configuration.\nThe value is passed to latexindent through \"--local\" flag.\nThe root directory is used by default." (choice string (const nil)) lsp-latex-latexindent-modify-line-breaks #[0 "\300\207" [nil] 1] "Latexindent modifies line breaks if t."] 12) #@143 Get `lsp-latex-build-args' with changing to vector. Because `json-serialize' cannot recognize normal list as array of json, should be vector. (defalias 'lsp-latex--build-args-getter #[0 "\301!\207" [lsp-latex-build-args vconcat] 2 (#$ . 8613)]) #@143 Get `lsp-latex-build-args' with changing to vector. Because `json-serialize' cannot recognize normal list as array of json, should be vector. (defalias 'lsp-latex--forward-search-args-getter #[0 "\301!\207" [lsp-latex-forward-search-args vconcat] 2 (#$ . 8866)]) #@2  (defalias 'lsp-latex-setup-variables #[0 "\301!\204\n\302\303!\210\304\305\306\307\"!\310\311O\312\"\203\313\314!\207\313\315!\207" [lsp-latex-texlab-executable executable-find warn "Texlab executable is not found. Set `lsp-latex-texlab-executable' and run `lsp-latex-setup-variables' again." version< shell-command-to-string format "%s --version" 7 -1 "3.0.0" lsp-register-custom-settings (("latex.rootDirectory" lsp-latex-root-directory) ("latex.build.executable" lsp-latex-build-executable) ("latex.build.args" lsp-latex--build-args-getter) ("latex.build.onSave" lsp-latex-build-on-save t) ("latex.build.outputDirectory" lsp-latex-build-aux-directory) ("latex.build.forwardSearchAfter" lsp-latex-forward-search-after t) ("latex.forwardSearch.executable" lsp-latex-forward-search-executable) ("latex.forwardSearch.args" lsp-latex--forward-search-args-getter) ("latex.lint.onChange" lsp-latex-chktex-on-edit t) ("latex.lint.onSave" lsp-latex-chktex-on-open-and-save t) ("bibtex.formatting.lineLength" lsp-latex-bibtex-formatter-line-length) ("bibtex.formatting.formatter" lsp-latex-bibtex-formatter)) (("texlab.rootDirectory" lsp-latex-root-directory) ("texlab.build.executable" lsp-latex-build-executable) ("texlab.build.args" lsp-latex--build-args-getter) ("texlab.build.outputDirectory" lsp-latex-build-aux-directory) ("texlab.build.isContinuous" lsp-latex-build-is-continuous) ("texlab.build.forwardSearchAfter" lsp-latex-forward-search-after t) ("texlab.forwardSearch.executable" lsp-latex-forward-search-executable) ("texlab.forwardSearch.args" lsp-latex--forward-search-args-getter) ("texlab.chktex.onEdit" lsp-latex-chktex-on-edit t) ("texlab.chktex.onOpenAndSave" lsp-latex-chktex-on-open-and-save t) ("texlab.diagnosticsDelay" lsp-latex-diagnostics-delay) ("texlab.formatterLineLength" lsp-latex-bibtex-formatter-line-length) ("texlab.bibtexFormatter" lsp-latex-bibtex-formatter) ("texlab.latexFormatter" lsp-latex-latex-formatter) ("texlab.latexindent.local" lsp-latex-latexindent-local) ("texlab.latexindent.modifyLineBreaks" lsp-latex-latexindent-modify-line-breaks))] 5 (#$ . 9135) nil]) (byte-code "\300 \210\301\302\303\"\210\301\302\304\"\207" [lsp-latex-setup-variables add-to-list lsp-language-id-configuration (".*\\.tex$" . "latex") (".*\\.bib$" . "bibtex")] 3) #@37 Create new connection of lsp-latex. (defalias 'lsp-latex-new-connection #[0 "\306\307 \"\203\f\nB\207\310 \211\262\203\311 \fB B\"\207\312\313!\207" [lsp-latex-texlab-executable exec-path lsp-latex-texlab-executable-argument-list lsp-latex-java-executable lsp-latex-java-argument-list lsp-latex-texlab-jar-argument-list nil locate-file lsp-latex-get-texlab-jar-file append error "No executable \"texlab\" file"] 5 (#$ . 11431)]) #@92 Progress report handling. PARAMS progress report notification data. (fn WORKSPACE PARAMS) (defalias 'lsp-latex-window-progress #[514 "\300\301\302\"!\207" [lsp-log gethash "title"] 6 (#$ . 11873)]) (byte-code "\300\301\302\303\304!\305\306\307\310\311\312\313\314\315\316\317\320\"\321\322\323#\210\211\262&\f!\207" [lsp-register-client make-lsp-client :new-connection lsp-stdio-connection lsp-latex-new-connection :major-modes (tex-mode yatex-mode latex-mode bibtex-mode) :server-id texlab2 :priority 2 :initialized-fn #[257 "\211\301\302\303!!\210\301\302\304!!)\207" [lsp--cur-workspace lsp--set-configuration lsp-configuration-section "latex" "bibtex"] 4 "\n\n(fn WORKSPACE)"] :notification-handlers make-hash-table :test equal puthash "window/progress" lsp-latex-window-progress] 18) #@51 Message RESULT means success or not. (fn RESULT) (defalias 'lsp-latex--message-result-build #[257 "\300\301\302\"\211\303=\203\304\202*\211\305=\203\306\202*\211\307=\203#\310\202*\211\311=\205*\312\262!\207" [message gethash "status" 0 "Build was succeeded." 1 "Build do not succeeded." 2 "Build failed." 3 "Build cancelled."] 5 (#$ . 12673)]) #@115 Build current tex file with latexmk, through texlab. Build synchronously if SYNC is non-nil. (fn &optional SYNC) (defalias 'lsp-latex-build #[256 "\211\203\300\301\302\303\304 D\"!\207\305\302\303\304 D\300#\207" [lsp-latex--message-result-build lsp-request "textDocument/build" :textDocument lsp--text-document-identifier lsp-request-async] 6 (#$ . 13037) "P"]) #@197 Forward search with pdf-tools, from TEX-FILE line LINE to PDF-FILE. This function is partially copied from `pdf-sync-forward-search' and `pdf-sync-forward-correlate'. (fn TEX-FILE PDF-FILE LINE) (defalias 'lsp-latex-forward-search-with-pdf-tools #[771 "\301\302!\204\n\303\304!\210\305\306!\210\305\307!\210r\310!q\210\311!\312\313 \"\3141D\315\206,\313 \316$\317\236A\320\236AB\266\202\2620\202T\321\322\323!\"\210\324\211\211\211\211\257\262B\266\202\211A\262\242\211A\262\242\324\211A\262\210\211A\262\242\324\211A\262\210\324\325!\206\203\326!\327\330\"!r\331\332\"\216\333@\334\"\210\335 \210\203\262\336!\210\203\262\337 A_\340\341!!\266*\210r\211q\210\342\343!)\262\266\207)\207" [pdf-sync-forward-display-action fboundp pdf-tools-install error "Please install pdf-tools" require pdf-tools pdf-sync get-file-buffer expand-file-name pdf-sync-synctex-file-name buffer-file-name (error) pdf-info-synctex-forward-search 1 page edges message "%s" error-message-string nil find-buffer-visiting find-file-noselect internal--before-with-selected-window display-buffer make-closure #[0 "\301\300!\207" [V0 internal--after-with-selected-window] 2] select-window norecord pdf-util-assert-pdf-window pdf-view-goto-page pdf-view-image-size pdf-util-tooltip-arrow round run-hooks pdf-sync-forward-hook] 16 (#$ . 13410)]) #@51 Message unless RESULT means success. (fn RESULT) (defalias 'lsp-latex--message-forward-search #[257 "\300\301\302\"\211\303=\203\304\202 \211\305=\203\306\202 \211\307=\205 \310\262!\207" [message plist-get :status 1 "Forward search do not succeeded." 2 "Forward search failed." 3 "Forward search has not been configured."] 5 (#$ . 14781)]) #@28 Forward search on preview. (defalias 'lsp-latex-forward-search #[0 "\300\301\302 \303#\207" [lsp-request-async "textDocument/forwardSearch" lsp--text-document-position-params lsp-latex--message-forward-search] 4 (#$ . 15138) nil]) (provide 'lsp-latex)