aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/doc-view.el (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ; * lisp/doc-view.el (doc-view-mode-p): Fix docstring.Michael Albinus2026-02-071-1/+1
|
* ; Add 2026 to copyright years.Sean Whitton2026-01-011-1/+1
|
* December 2025 spelling fixesPaul Eggert2025-12-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some of the fixes are to continue to use American rather than British spelling. * doc/misc/modus-themes.org (my-modus-themes-engraved-faces): Fix misspelled ‘:foreground’s. * etc/themes/modus-themes.el (modus-themes-faces): Fix misspelled ‘modus-themes-bold’. * lisp/emacs-lisp/rx.el (rx--normalize-char-pattern): Rename from rx--normalise-char-pattern. (rx--optimize-or-args): Rename from rx--optimise-or-args. * lisp/frame.el (frame--special-parameters): Fix misspelled "right-divider-width". * lisp/net/tramp.el (tramp-fingerprint-prompt-regexp): Use American spelling “centered”, to match current libfprintf. * lisp/org/org-fold-core.el (org-fold-core--optimize-for-huge-buffers): Rename from org-fold-core--optimise-for-huge-buffers. (org-fold-core-update-optimization): Rename from org-fold-core-update-optimisation, leaving an alias behind. (org-fold-core-remove-optimization): Rename from org-fold-core-remove-optimisation, leaving an alias behind. * lisp/org/org.el (org-advertized-archive-subtree): This alias is now obsolete. * lisp/play/zone.el (zone-ignored-buffers): Fix misspelling of ‘zone--buffer-encrypted-p’. * lisp/progmodes/csharp-mode.el (csharp-ts-mode-faces): Fix misspelling of ‘csharp’ group. * lisp/vc/vc.el (vc-clonable-backends-custom-type): Rename from vc-cloneable-backends-custom-type, leaving an alias behind. * test/lisp/emacs-lisp/bytecomp-tests.el: (bytecomp-tests--warn-arity-non-compiled-callee): Rename from bytecomp-tests--warn-arity-noncompiled-callee. (bytecomp-test-defface-spec): Reword a deliberate misspelling of “default” that is so common I don’t want it to pollute the spelling dictionary. * test/lisp/emacs-lisp/package-vc-tests.el: (package-vc-tests-preserve-artifacts): Rename from package-vc-tests-preserve-artifacts. * test/lisp/eshell/em-prompt-tests.el: (em-prompt-test/forward-backward-paragraph-1): Reword a deliberate misspelling of “goodbye” that is so common I don’t want it to pollute the spelling dictionary.
* ; * lisp/doc-view.el (doc-view-initiate-display): Improve last commitTassilo Horn2025-08-081-4/+2
|
* doc-view: inhibit keybinding message if window is not selectedTassilo Horn2025-08-081-1/+7
| | | | | | * lisp/doc-view.el (doc-view-initiate-display): Only echo key-binding message when the document buffer is shown in the selected window (bug#79145).
* Use css to set SVG foreground in docviewAlan Third2025-07-101-1/+2
| | | | | * lisp/doc-view.el (doc-view-insert-image): Use CSS to set the fill attribute to the desired foreground color.
* ; Delete duplicate variable definitionStefan Kangas2025-03-191-3/+0
| | | | | * lisp/doc-view.el (doc-view--current-cache-dir): Delete duplicate variable definition.
* doc-view: Fix error during revert in editing modeTassilo Horn2025-03-011-6/+23
| | | | | | | | | | | | | | | | When in editing mode in a doc-view buffer and then reverting (which can happen automatically when editing OpenDocument contents), we errored in the advide function doc-view--revert-buffer because the local doc-view--buffer-file-name has been killed when switching to the editing mode. Also restore doc-view-minor-mode after reverting during being in the editing mode. * lisp/doc-view.el (doc-view--revert-buffer): Check that 'doc-view--buffer-file-name' is non-nil. (doc-view-minor-mode): Add re-enabling function to 'revert-buffer-restore-functions'.
* Fix DocView's text conversion on tty EmacsManuel Giraud2025-02-231-1/+1
| | | | | * lisp/doc-view.el (doc-view-open-text): Defaults to first page should `doc-view-current-page' return nil. (Bug#72305)
* Update copyright year to 2025Paul Eggert2025-01-011-1/+1
| | | | Run "TZ=UTC0 admin/update-copyright".
* Make djvused emit UTF-8 encoded textVisuwesh2024-10-181-7/+10
| | | | | | * lisp/doc-view.el (doc-view--djvu-outline): Pass -u to djvused to make it emit UTF-8 encoded text rather than using octal escapes for non-ASCII string. (bug#73846)
* Add imenu support for ODF files in doc-viewVisuwesh2024-10-101-0/+2
| | | | | | | | * lisp/doc-view.el (doc-view--outline): Pass the right file to doc-view--pdf-outline. * doc/emacs/misc.texi (DocView Navigation): Mention support for Open Format Document (ODF) files too. * etc/NEWS: Announce the change. (bug#73719)
* Make imenu index generation for PDFs more reliableVisuwesh2024-10-081-16/+32
| | | | | | | | | | | | | | | | | Do away with parsing the output of "mutool show FILE outline" since the URI reported in its output may not include the page number of the heading, and instead may contained "nameddest" elements which cannot be resolved using "mutool". Instead, use a MuPDF JS script to generate the PDF outline allowing to resolve such URIs. * lisp/doc-view.el (doc-view--outline-rx): Remove as no longer needed. (doc-view--outline): Reflect that outline can be generated for non-PDF files too. (doc-view--mutool-pdf-outline-script): Add new variable to hold the JS script used to generate the outline. (doc-view--pdf-outline): Use the script. (bug#73638)
* Merge from origin/emacs-30Eli Zaretskii2024-10-051-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b68b9f291cc ; * lisp/progmodes/csharp-mode.el (treesit-query-compile)... 688201ef18d ; * lisp/window.el (switch-to-prev-buffer-skip-regexp): D... ba44fc9a447 Restore comment/string check for 'electric-layout-mode' 5a462948e13 Update Arni Magnusson's email address 6b1271b169a Fix python-ts-mode-map docstring aaaafddc945 Normalize "Commentary" section in eudc.el d656be9794d Expand email abbrevs in X-Debbugs-Cc header. e9dcf0c57dd Fix 'list-tags' when invoked from a non-file buffer 51ef05f684c count-windows: Fix reference to walk-windows 5eaf0c784bf * lisp/info-look.el (mapc): Add use-package manual's index. 705a5a1a9e6 ; * ChangeLog.4: Fix attribution of one change. bf26ff0dc8d Update csharp-ts-mode font-lock (bug#73369) 4c866abab96 ; * doc/lispref/variables.texi (Creating Buffer-Local): F... d42d7d474fe ; * lisp/doc-view.el (doc-view-svg-face): Copy-edit docst... f46f476bb8f ; * admin/MAINTAINERS: Take VC subsystem, add note about ... d68e6d2689d ; rcirc-update-activity-string: Justify some existing beh... e6a37869c8d Fix inconsistency in value of rcirc-activity-string 108b3179bd4 Revert "; Minor clarification in variables.texi" 44156c21407 ; Minor clarification in variables.texi 63058e1153a Tag interactive commands in 'lua-ts-mode' 84bea20eba2 ; * lisp/info-look.el: Add two more links. 96b87ad5363 Mention LSP acronym in eglot defgroup docstring 9c904e8ceae Change :group of 'eglot' defgroup to 'tools' fd1a1b07805 Remove out-of-date documentation from python.el 11e3e0cadd4 Fix executing commands in Eshell using "env" with no loca... c0ef8a9a1b3 Fix a typo in the calendar manual 36ff7138feb ; Fix a thinko in sieve-manage.el 7abecbcd633 ; * nt/INSTALL: Update MinGW notes URL. (Bug#73528) # Conflicts: # admin/MAINTAINERS
| * ; * lisp/doc-view.el (doc-view-svg-face): Copy-edit docstring.Sean Whitton2024-10-021-1/+1
| |
* | ; * lisp/doc-view.el (doc-view-djvused-program): allow nil in typeMattias Engdegård2024-10-041-1/+1
| |
* | Add imenu index function for DjVu files in doc-viewVisuwesh2024-10-041-18/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/doc-view.el (doc-view-pdfdraw-program): Prefer mutool over other names. (doc-view-imenu-enabled): Tweak the default value to check for 'djvused', and make it obsolete. (doc-view--djvu-outline, doc-view--parse-djvu-outline): Add new functions to return imenu index for a Djvu file. (doc-view--outline): Add new function to create the imenu index depending on the file type. (doc-view--outline): Document new possible variable value. (doc-view-imenu-index): Use the above function instead. (doc-view-imenu-setup): Try to create the imenu index unconditionally. * doc/emacs/misc.texi (DocView Navigation): Mention index creation using 'djvused' too. * etc/NEWS: Announce the change. (Bug#73530)
* | Merge from origin/emacs-30Eli Zaretskii2024-09-281-3/+8
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e8830015b07 Require ert-x for use by 'ert-font-lock-deftest-file' a1841b4d8e7 ; * admin/authors.el (authors-aliases): Don't ignore "one... 69d8f9d1b70 Fix php-ts-mode font-lock for latest PHP grammar (bug#73516) 68f53e43488 eieio.texi: Fix bug#73505 53c887fdf6d ; cperl-mode.el: Fix an invalid face specification f5cd5585f46 ; Recommend GNU Find for 'find-dired' 65e589698e6 ; * lisp/filesets.el (filesets-homepage): Fix URL. 1f243a97806 Delete duplicated line in Viper refcard d63bff4d88f Fix Tramp shortdoc integration 759b18a33c0 * lisp/imenu.el (imenu-flatten): More limitations in docs... 794bb2a2e31 remember-data-file: Don't unconditionally call set-visite... 7766ba84199 Align columns in which-key with wide characters properly bd25a98b4e7 bibtex-mode: fix patch bibtex validation for non-file buf... 4729065ee78 Document 'buttonize-region' in manual f189457e5aa ; * lisp/yank-media.el (yank-media-handler): Fix docstrin... 2b53e11a087 Use black-on-white by default for doc-view-svg-face. 32d0c8f6af5 etags-regen-file-extensions: Enable for more extensions 8f265b49e3d ; Fix last change c8ed48b9901 ; Improve documentation of 'append' c1f2501f55d Update and improve UI of sql-read-product (bug#73412) 4f5fc519f09 Insert correct commit data into VC package descriptions 98177d4b3d1 Document reporting security issues in user manual b986e2018a4 * BUGS: Minor copy edit.
| * Use black-on-white by default for doc-view-svg-face.Tassilo Horn2024-09-241-3/+8
| | | | | | | | | | | | * lisp/doc-view.el (doc-view-svg-face): Define black on white as default value instead of using the current theme's values. * etc/NEWS: Adjust entry for doc-view-svg-face.
* | ; Improve documentation of last changeEli Zaretskii2024-09-281-4/+5
| | | | | | | | | | | | | | | | | | * lisp/doc-view.el (doc-view-register-alist) (doc-view-page-to-register, doc-view-jump-to-register): Doc fixes. * etc/NEWS: * doc/emacs/misc.texi (DocView Navigation): Improve wording. (Bug#73293)
* | Add buffer-local register commands to DocViewVisuwesh2024-09-281-1/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/doc-view.el (doc-view-register-alist): New defvar to keep track of buffer-local register-alist. (doc-view-page-to-register, doc-view-jump-to-register): Add new commands to set and jump to buffer-local registers. (register-val-insert, register-val-describe) (register-val-jump-to): Register defmethod to save and restore doc-view registers. (doc-view-mode-map): Bind the new commands. * doc/emacs/misc.texi (DocView Navigation): Document the new commands. (Bug#73293) * etc/NEWS: Announce the change.
* | Merge from savannah/emacs-30Po Lu2024-07-291-0/+9
|\ \ | |/ | | | | | | 5cf64d8377a Fix sporadic crashes and `select' failures in dumped images a475360af98 Correct display of Doc View documents after tab switching
| * Correct display of Doc View documents after tab switchingPo Lu2024-07-291-0/+9
| | | | | | | | | | | | * lisp/doc-view.el (doc-view-new-window-function): Prevent creation of duplicate overlays for the same window after a window configuration change occasions a call to i-m-r-winprops.
* | Fix jumping to page in DocView's text contents (bug#72275)Tassilo Horn2024-07-251-0/+2
| | | | | | | | | | * lisp/doc-view.el (doc-view-open-text): Set page-delimiter to the form feed character in the text contents buffer (bug#72275).
* | bug#72241: 31.0.50; [PATCH] Use a dedicated buffer for `doc-view-open-text'Manuel Giraud2024-07-251-36/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Here is an updated version of this patch. WDYT? From 6e32534012cafeda1d7e67aab23a8206bc887c9f Mon Sep 17 00:00:00 2001 From: Manuel Giraud <manuel@ledu-giraud.fr> Date: Sun, 21 Jul 2024 18:52:52 +0200 Subject: [PATCH] Use a dedicated buffer for `doc-view-open-text' * lisp/doc-view.el (doc-view-open-text): Create a new "text contents" buffer and switch to it. (doc-view-toggle-display): Switch back to the document buffer and kill the "text contents" one. * etc/NEWS: Mention the change.
* | Merge from savannah/emacs-30Po Lu2024-07-241-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1ee8579eb7d Fix bug#72255 05629d3af0a Delete redundant "a.k.a." in use-package.texi c7609464f70 Document (use-package 'emacs) declarations de9f9add138 Improve 'emacs-news-view-mode' menus and bindings 7588e1f8a9f ; * src/xdisp.c (Fformat_mode_line): Doc fix. 2074e94c3b1 Fix disappearing bar cursor on Hebrew text (bug#72230) 1aaadc8aec5 Fix DocView with DVI files c1382257aa8 ; Fix typo in use-package.texi caf7426f0ca FIx spurious fontification of variable in Java Mode 9b426e15abd Correctly typeset nil and t in texinfo f050b9c5033 Fix Tramp IPv6 handling in tests 46b192c04b1 Update to Org 9.7.8-5-gfdf0e0 87f41b937bc Fix Ftreesit_parser_create
| * Fix DocView with DVI filesManuel Giraud2024-07-221-1/+1
| | | | | | | | | | | | * lisp/doc-view.el (doc-view-pdf/ps->png): Use `doc-view-pdf->png-converter-function' for DVI files, too, since they are converted to PDF earlier.
* | Merge from savannah/emacs-30Po Lu2024-07-241-0/+2
|\ \ | |/ | | | | | | | | | | | | | | c66bda1a19a Improve treesit-node-child-by-field-name docstring 85773ab9771 Minor copyedits in tree-sitter starting guide 2dacec1609a Update tag for prebuilt tree-sitter grammars 68615a38669 Fix punctuation and doc style in treesit.c 00adee897ac ; Fix punctuation in docs ab29b28d4ba Fix DocView with PostScript files
| * Fix DocView with PostScript filesManuel Giraud2024-07-211-0/+2
| | | | | | | | | | * lisp/doc-view.el (doc-view-set-up-single-converter): Produce PNG from PS in a file with ".png" extension. (Bug#72193)
* | Merge from origin/emacs-30Eli Zaretskii2024-07-201-3/+3
|\ \ | |/ | | | | | | | | | | | | | | | | | | 816c53c2d9d Fix bibtex validation for non-file buffers ab7c40ea52a Fix Imenu in 'emacs-news-view-mode' ea30ffc52b3 ; * doc/misc/gnus.texi (Agent Caveats): Fix doc 07b1a36f78c ; * src/sqlite.c (Fsqlite_load_extension): Add "vec0" to ... 96f1db89ee7 Avoid errors in 'icomplete-vertical-mode' 55110d1fda2 Document GNU ELPA copyright in tips.texi 079e5a03156 Improve register-use-preview docstring e4760109ac8 Miscellaneous checkdoc fixes
| * Miscellaneous checkdoc fixesStefan Kangas2024-07-201-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/ansi-color.el (ansi-color--ensure-context): * lisp/doc-view.el (doc-view-svg-face): * lisp/external-completion.el (external-completion-table): * lisp/ffap.el (ffap-ro-mode-hook, ffap-gnus-hook): * lisp/find-file.el: * lisp/flow-ctrl.el (flow-control-c-s-replacement) (flow-control-c-q-replacement): * lisp/forms.el (forms-multi-line): * lisp/help.el (search-forward-help-for-help): * lisp/hi-lock.el (hi-lock-use-overlays): * lisp/image.el (find-image): * lisp/isearch.el (isearch-forward, isearch-forward-regexp) (isearch-lazy-count-format): * lisp/jsonrpc.el (jsonrpc--continue, initialize-instance): * lisp/mouse-copy.el (mouse-kill-preserving-secondary): * lisp/pixel-scroll.el (pixel-bob-at-top-p) (pixel-scroll-down-and-set-window-vscroll): * lisp/printing.el (pr-gv-command, pr-gs-command) (pr-gs-switches): * lisp/register.el (register-use-preview): * lisp/repeat.el (repeat-check-key): * lisp/saveplace.el (save-place-abbreviate-file-names): * lisp/select.el (gui--clipboard-selection-unchanged-p): * lisp/ses.el (ses-header-row): * lisp/simple.el (transpose-sexps-default-function) (normal-erase-is-backspace, normal-erase-is-backspace-mode): * lisp/sqlite-mode.el (sqlite-mode): * lisp/tempo.el (tempo-insert-region): * lisp/term.el (term-mode-map, term-mode, term-char-mode): Checkdoc fixes.
* | Adapt doc-view-set-slice-using-mouse to touch-screen inputPo Lu2024-07-031-2/+5
|/ | | | | | | | | | | | | | | | | | | | * doc/lispref/commands.texi (Touchscreen Events): Document means of unconditionally enabling simple conversion. * lisp/doc-view.el (doc-view-set-slice-using-mouse): Bind touch-screen-simple-mouse-conversion to t, and read translated mouse events with read-key rather than read-event. * lisp/subr.el (read-key): Don't permit idle timer to interfere with reporting of translated mouse events. * lisp/touch-screen.el (touch-screen-simple-mouse-conversion): New variable. (touch-screen-handle-point-up, touch-screen-handle-touch): Unconditionally enable `mouse-drag' translation if set. Decide whether to send drag or mouse events by the values of the two touchpoints' XY positions and point and double-click-fuzz, as in make_lispy_event.
* Improve doc-type determination in doc-viewAndrew G Cohen2024-05-101-29/+29
| | | | | * lisp/doc-view.el (doc-view-set-doc-type): If buffer-file-name is not set try the buffer-name to identify the doc type.
* Merge from savannah/emacs-29Po Lu2024-01-021-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dc4e6b13296 ; Update copyright years in more files 64b37776318 ; Run set-copyright from admin.el 8e1c56ae467 ; Add 2024 to copyright years # Conflicts: # doc/misc/modus-themes.org # doc/misc/texinfo.tex # etc/NEWS # etc/refcards/ru-refcard.tex # etc/themes/modus-operandi-theme.el # etc/themes/modus-themes.el # etc/themes/modus-vivendi-theme.el # lib/alloca.in.h # lib/binary-io.h # lib/c-ctype.h # lib/c-strcasecmp.c # lib/c-strncasecmp.c # lib/careadlinkat.c # lib/cloexec.c # lib/close-stream.c # lib/diffseq.h # lib/dup2.c # lib/filemode.h # lib/fpending.c # lib/fpending.h # lib/fsusage.c # lib/getgroups.c # lib/getloadavg.c # lib/gettext.h # lib/gettime.c # lib/gettimeofday.c # lib/group-member.c # lib/malloc.c # lib/md5-stream.c # lib/md5.c # lib/md5.h # lib/memmem.c # lib/memrchr.c # lib/nanosleep.c # lib/save-cwd.h # lib/sha1.c # lib/sig2str.c # lib/stdlib.in.h # lib/strtoimax.c # lib/strtol.c # lib/strtoll.c # lib/time_r.c # lib/xalloc-oversized.h # lisp/auth-source-pass.el # lisp/emacs-lisp/lisp-mnt.el # lisp/emacs-lisp/timer.el # lisp/info-look.el # lisp/jit-lock.el # lisp/loadhist.el # lisp/mail/rmail.el # lisp/net/ntlm.el # lisp/net/webjump.el # lisp/progmodes/asm-mode.el # lisp/progmodes/project.el # lisp/progmodes/sh-script.el # lisp/textmodes/flyspell.el # lisp/textmodes/reftex-toc.el # lisp/textmodes/reftex.el # lisp/textmodes/tex-mode.el # lisp/url/url-gw.el # m4/alloca.m4 # m4/clock_time.m4 # m4/d-type.m4 # m4/dirent_h.m4 # m4/dup2.m4 # m4/euidaccess.m4 # m4/fchmodat.m4 # m4/filemode.m4 # m4/fsusage.m4 # m4/getgroups.m4 # m4/getloadavg.m4 # m4/getrandom.m4 # m4/gettime.m4 # m4/gettimeofday.m4 # m4/gnulib-common.m4 # m4/group-member.m4 # m4/inttypes.m4 # m4/malloc.m4 # m4/manywarnings.m4 # m4/mempcpy.m4 # m4/memrchr.m4 # m4/mkostemp.m4 # m4/mktime.m4 # m4/nproc.m4 # m4/nstrftime.m4 # m4/pathmax.m4 # m4/pipe2.m4 # m4/pselect.m4 # m4/pthread_sigmask.m4 # m4/readlink.m4 # m4/realloc.m4 # m4/sig2str.m4 # m4/ssize_t.m4 # m4/stat-time.m4 # m4/stddef_h.m4 # m4/stdint.m4 # m4/stdio_h.m4 # m4/stdlib_h.m4 # m4/stpcpy.m4 # m4/strnlen.m4 # m4/strtoimax.m4 # m4/strtoll.m4 # m4/time_h.m4 # m4/timegm.m4 # m4/timer_time.m4 # m4/timespec.m4 # m4/unistd_h.m4 # m4/warnings.m4 # nt/configure.bat # nt/preprep.c # test/lisp/register-tests.el
| * ; Add 2024 to copyright yearsPo Lu2024-01-021-1/+1
| |
* | Fix previous page and next page tooltips in doc-view.elDaniel Martín2023-12-301-2/+2
| | | | | | | | | | * lisp/doc-view.el (doc-view-tool-bar-map): Fix toolbar items to go to next and previous pages in a document. (Bug#68018)
* | Merge from origin/emacs-29Eli Zaretskii2023-11-181-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | 232a57a3e32 ; * doc/lispref/debugging.texi (Debugging): Add cross-ref... c65ddf26a33 ; doc/lispref/debugging.texi: Add reference to Profiler d... 6f884d3aed9 Add 5 docstrings to abbrev.el (bug#67153) b4d990bd637 ; Clarify wording about arguments in doc strings c20ae7a30fb ; Improve cross-references in description of 'pcase' 42181b65df1 ; * src/editfns.c (Fline_beginning_position): Doc fix. 5f3309f6b0f ; Improve indexing in ELisp manual 4e406bb4208 Fix CBZ file detection in doc-view-mode
| * Fix CBZ file detection in doc-view-modeMorgan Smith2023-11-151-1/+1
| | | | | | | | | | | | | | | | | | * lisp/doc-view.el (doc-view-set-doc-type): Fix CBZ file detection. (Bug#67133) This fix is almost identical to the previous fix for ODF file detection in bug#54947 which resulted in commit b3ff4905388834994ff26d9d033d6bc62b094c1c
| * Disable and document 'doc-view-mupdf-use-svg' (bug#58041)Eli Zaretskii2023-01-141-2/+2
| | | | | | | | | | | | * lisp/doc-view.el (doc-view-mupdf-use-svg): Disable by default. * etc/NEWS: Document. Patch by Visuwesh <visuweshm@gmail.com>. Do not merge to master.
* | Introduce a tool bar for dictionary modePo Lu2023-10-081-1/+3
| | | | | | | | | | | | | | | | | | | | | | * lisp/doc-view.el (doc-view-minor-mode-menu): Correct typo in edit mode menu. * lisp/net/dictionary.el (dictionary-mode-menu): New menu. (dictionary-tool-bar-map): New variable; derive menu bar entries from the dictionary-mode-menu. (dictionary-mode): Set the tool bar map to dictionary-tool-bar-map.
* | Fix doc-view conversion indicator for svg imagesVisuwesh2023-10-011-1/+2
| | | | | | | | | | * lisp/doc-view.el (doc-view-pdf->png-converter-mupdf): Show the correct pdf->svg indicator when producing svg images. (Bug#62713)
* | Fix a couple of doc-view user optionsBasil L. Contovounesios2023-09-251-16/+13
| | | | | | | | | | | | | | | | | | | | * lisp/doc-view.el (doc-view-pdf->png-converter-function): Fix placement and formatting of function-item :doc strings. (doc-view-odf->pdf-converter-program): Ditto. Tweak initialization logic to ensure initial value is non-nil and matches :type. Mention preferred executable soffice first. (doc-view-mode-p): Assume doc-view-odf->pdf-converter-program is always non-nil.
* | Properly detect content files in Doc ViewPo Lu2023-09-081-2/+9
| | | | | | | | | | | | * lisp/doc-view.el (doc-view-mode): Detect if file name starts with /content or /assets, and don't regard it as available to subprocesses in that case.
* | Repair several minor breakagesPo Lu2023-08-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/calendar/calendar.el (calendar-event-buffer): New function. (calendar-cursor-to-date, calendar-other-month): * lisp/calendar/holidays.el (calendar-list-holidays) (calendar-mark-holidays): * lisp/calendar/lunar.el (calendar-lunar-phases): Use that function to derive event windows, in case these commands are being called from the menu bar. * lisp/doc-view.el (doc-view-tool-bar-map): Fix typo in help text.
* | Merge remote-tracking branch 'origin/master' into feature/androidPo Lu2023-07-291-5/+5
|\ \
| * | Make shell command status code checks more robustTassilo Horn2023-07-281-4/+4
| | | | | | | | | | | | | | | | | | | | | * lisp/doc-view.el (doc-view-ghostscript-program) (doc-view--revert-buffer, doc-view--pdf-outline): Compare 'shell-command' / 'call-process' return values with 'eql' instead of '=' to cater for the situation where the process received a signal.
| * | ; Make doc-viev-imenu-enabled default value a boolean againTassilo Horn2023-07-281-1/+1
| | |
* | | Merge remote-tracking branch 'origin/master' into feature/androidPo Lu2023-07-211-5/+11
|\ \ \ | |/ /
| * | docview: imenu: check return value of 'mutool'Morgan Smith2023-07-201-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While 'mutool' supports many filetypes, 'mutool show' only supports PDF files. This would lead to cryptic imenu errors when opening other file types (like EPUB) since we would parse the error output. During my testing this caused 'imenu--index-alist' to have a value of '(nil). * lisp/doc-view.el (doc-view--pdf-outline): Error when 'mutool' returns an error. Use 'call-process' to get the return value and remove the call to 'shell-quote-argument' as 'call-process' doesn't want any escapes. (doc-view-mode): Handle possible error from 'doc-view-imenu-setup'. (doc-view-imenu-enabled): Remove superfluous (and ... t). (doc-view-imenu-setup): Remove check for mutool already ensured by 'doc-view-imenu-enabled' being non-nil. (Bug#64516)
* | | Add a Doc View tool barPo Lu2023-07-131-2/+52
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | * etc/NEWS: Announce the new tool bar. * etc/images/last-page.xpm: * etc/images/last-page.pbm: New images. Mirrored from next-page.xpm. * lisp/doc-view.el (doc-view-menu): Use `doc-view-new-search' instead of an anonymous function. (doc-view-tool-bar-map): New keymap. (doc-view-search): Update the tool bar after initiating a search. (doc-view-new-search): New command. (doc-view-mode): Set the tool bar map appropriately.