;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\306\307\321\322\310\311& \210\300\323\302\303\324DD\325\306\307\321\322\310\311& \210\300\326\302\303\327DD\330\306\307\321\322\310\331& \210\300\332\302\303\333DD\334\306\307\310\335&\210\336\332\337\340#\210\341\342\343\344#\210\345\211\203\216\211@\342N\203\207\343N\204\207\346\343\342N#\210A\266\202\202m\210\336\342\343\340#\210\300\343\302\303\347DD\350\306\307\310\311\321\322\351\340& \210\300\352\302\303\353DD\354\306\307\310\311\321\322\351\340& \210\300\355\302\303\356DD\357\306\307\310\335&\210\300\360\302\303\361DD\362\306\307\310\311\321\322& \210\300\363\302\303\364DD\365\306\307\310\366\321\322& \210\341\367\370\371#\210\345\211\203\211@\367N\203 \370N\204 \346\370\367N#\210A\266\202\202\363\210\336\367\370\340#\210\300\370\302\303\372DD\373\306\307\310\335\351\340& \210\300\374\302\303\375DD\376\306\307\310\377\351\340& \210\341\201@\201A\201B#\210\345\211\203s\211@\201@N\203l\201AN\204l\346\201A\201@N#\210A\266\202\202J\210\336\201@\201A\340#\210\300\201A\302\303\201CDD\201D\306\307\310\335\351\340& \210\341\201E\201F\201G#\210\345\211\203\313\211@\201EN\203\304\201FN\204\304\346\201F\201EN#\210A\266\202\202\242\210\336\201E\201F\201H#\210\300\201F\302\303\201IDD\201J\306\307\310\377\351\340& \210\341\201K\201L\201M#\210\345\211\203%\211@\201KN\203\201LN\204\346\201L\201KN#\210A\266\202\202\374\210\336\201K\201L\340#\210\300\201L\302\303\201NDD\201O\306\307\310\201P\351\340& \210\300\201Q\302\303\201RDD\201S\306\307\310\201T\351\340& \210\300\201U\302\303\201VDD\201W\306\307\310\201X\351\340& \210\300\201Y\302\303\201ZDD\201[\306\307\310\335\351\340& \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." :risky t 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" defvaralias lsp-latex-build-output-directory lsp-latex-build-aux-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 #[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 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-lint-on-change lsp-latex-chktex-on-edit "Lint using chktex after changing a file.\n\nThis variable is obsoleted since texlab 3.0.0." #[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-save lsp-latex-chktex-on-open-and-save "Lint using chktex after saving a file.\n\nThis variable is obsoleted since texlab 3.0.0." #[0 "\300\207" [nil] 1] "Lint using chktex after opening and saving a file." lsp-latex-bibtex-formatting-line-length lsp-latex-bibtex-formatter-line-length nil "Maximum amount of line on formatting BibTeX files.\n0 means disable.\n\nThis variable is obsoleted since texlab 3.0.0." #[0 "\300\207" [80] 1] "Maximum amount of line on formatting BibTeX files.\n0 means disable." lsp-latex-bibtex-formatting-formatter lsp-latex-bibtex-formatter "Formatter used to format BibTeX file.\nYou can choose \"texlab\" or \"latexindent\".\n\nThis variable is obsoleted since texlab 3.0.0." #[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-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 (#$ . 8581)]) #@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 (#$ . 8834)]) #@54 Register texlab customization variables to lsp-mode. (defalias 'lsp-latex-setup-variables #[0 "\301!\203\302\303\304\305\"!\306\307O\310\"\203\311\312!\207\311\313!\207" [lsp-latex-texlab-executable executable-find 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 (#$ . 9104) 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 (#$ . 11322)]) #@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 (#$ . 11764)]) (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 (#$ . 12564)]) #@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 (#$ . 12928) "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 (#$ . 13301)]) #@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 (#$ . 14672)]) #@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 (#$ . 15029) nil]) (provide 'lsp-latex)