* [BUG] Make org-html-htmlize-output-type safe [9.5.2 (release_9.5.2-9-g7ba24c @ /Users/salutis/src/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/)]
@ 2022-01-30 20:34 Rudolf Adamkovič
2022-10-17 12:47 ` [PATCH] " Ihor Radchenko
0 siblings, 1 reply; 3+ messages in thread
From: Rudolf Adamkovič @ 2022-01-30 20:34 UTC (permalink / raw)
To: emacs-orgmode
Remember to cover the basics, that is, what you expected to happen and
what in fact did happen. You don't know how to make a good report? See
https://orgmode.org/manual/Feedback.html#Feedback
Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------
In some of my notes, I have the following line:
# -*- org-html-htmlize-output-type: nil -*-
Every time I open such a file, Emacs wants me to confirm that doing so
poses no security risk. Could we perhaps make this variable safe?
Thank you!
Rudy
Emacs : GNU Emacs 29.0.50 (build 2, x86_64-apple-darwin21.2.0, NS appkit-2113.20 Version 12.1 (Build 21C52))
of 2022-01-26
Package: Org mode version 9.5.2 (release_9.5.2-9-g7ba24c @ /Users/salutis/src/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/)
current state:
==============
(setq
org-agenda-prefix-format "* % t%s"
org-link-elisp-confirm-function 'yes-or-no-p
org-agenda-skip-deadline-prewarning-if-scheduled t
org-cite-insert-processor 'citar
org-bibtex-headline-format-function #[257 "\300.\236A\207" [:title] 3 "\n\n(fn ENTRY)"]
org-agenda-scheduled-leaders '("Scheduled: " "Scheduled %d×: ")
org-agenda-custom-commands '(("a" "Agenda"
((agenda ""
((org-agenda-overriding-header "Fortune")
(org-agenda-files nil) (org-agenda-span 1)
(org-agenda-day-face-function
(lambda (_) 'font-lock-comment-face))
(org-agenda-format-date
(lambda (_) (my/fortune-string)))
)
)
(agenda ""
((org-agenda-overriding-header "\nToday")
(org-agenda-start-on-weekday nil)
(org-agenda-span 1)
(org-agenda-format-date
'my/org-agenda-format-date-not-aligned)
(org-agenda-day-face-function
(lambda (_) 'calendar-today))
(org-agenda-skip-function
'(org-agenda-skip-entry-if 'todo 'done))
)
)
(todo "NEXT|NEXT-IN|ON-HOLD"
((org-agenda-overriding-header "\nNext actions")
(org-agenda-todo-ignore-scheduled 'all)
(org-agenda-todo-ignore-timestamp 'future)
(org-habit-show-habits nil))
)
(agenda ""
((org-agenda-overriding-header "\nTomorrow")
(org-agenda-start-day "+1d") (org-agenda-span 1)
(org-agenda-format-date
'my/org-agenda-format-date-not-aligned)
(org-habit-show-habits-only-for-today nil)
(org-habit-scheduled-past-days 0))
)
(agenda ""
((org-agenda-overriding-header "\nNear future")
(org-agenda-start-day "+2d")
(org-agenda-start-on-weekday nil)
(org-agenda-span 7) (org-habit-show-habits nil))
)
(todo "WAIT-FOR"
((org-agenda-overriding-header "\nWaiting")))
)
)
)
org-startup-folded t
org-agenda-skip-scheduled-if-done t
org-agenda-files '("~/agenda.org" "~/agenda-work.org")
org-export-before-parsing-hook '(org-attach-expand-links)
org-link-descriptive nil
org-archive-hook '(org-attach-archive-delete-maybe)
org-cite-follow-processor 'citar
org-file-apps '(("\\.pdf\\'" . emacs) (auto-mode . emacs) (directory . emacs)
("\\.mm\\'" . default) ("\\.x?html?\\'" . default)
("\\.pdf\\'" . default))
org-html-postamble nil
org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-function
org-edit-src-content-indentation 0
org-ascii-format-drawer-function #[771 ".\207" [] 4 "\n\n(fn NAME CONTENTS WIDTH)"]
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
org-cycle-show-empty-lines
org-optimize-window-after-visibility-change)
org-habit-preceding-days 6
org-link-from-user-regexp "\\<salutis@Workstation\\.local\\>\\|\\<Rudolf Adamkovič\\>"
org-image-actual-width 480
org-babel-post-tangle-hook '(remove-final-newline)
org-mode-hook '(#[0 "\301\211.\207"
[imenu-create-index-function org-imenu-get-tree] 2]
org-clock-load my/fill-init-prose
#[0 "\300\301\302\303\304$\207"
[add-hook change-major-mode-hook org-show-all append local] 5]
#[0 "\300\301\302\303\304$\207"
[add-hook change-major-mode-hook org-babel-show-result-all
append local]
5]
org-babel-result-hide-spec org-babel-hide-all-hashes)
org-babel-load-languages '((emacs-lisp . t) (R . t) (C . t) (bibtex) (sqlite . t))
org-agenda-skip-deadline-if-done t
org-src-window-setup 'current-window
org-cite-csl-styles-dir "~/"
org-html-mathjax-options '((path
"https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js")
(path
"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_HTML")
(scale "100") (align "center") (font "TeX")
(linebreaks "false") (autonumber "AMS") (indent "0em")
(multlinewidth "85%") (tagindent ".8em")
(tagside "right"))
org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"]
org-ellipsis "›"
org-clock-total-time-cell-format "%s"
org-latex-format-headline-function 'org-latex-format-headline-default-function
org-confirm-shell-link-function 'yes-or-no-p
org-agenda-skip-scheduled-if-deadline-is-shown t
org-reveal-start-hook '(org-decrypt-entry)
org-export-with-section-numbers nil
org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
outline-isearch-open-invisible-function 'outline-isearch-open-invisible
org-use-sub-superscripts nil
org-agenda-sorting-strategy '((agenda ts-up habit-down time-up priority-down)
(todo priority-down) (tags priority-down)
(search category-keep))
org-highlight-latex-and-related '(native script entities)
org-odt-format-headline-function 'org-odt-format-headline-default-function
org-agenda-mode-hook '(hl-line-mode)
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-babel-tangle-lang-exts '(("D" . "d") ("C++" . "cpp") ("emacs-lisp" . "el")
("elisp" . "el"))
org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
org-confirm-elisp-link-function 'yes-or-no-p
org-agenda-window-setup 'current-window
org-cycle-separator-lines 1
org-clock-out-remove-zero-time-clocks t
org-cite-activate-processor 'citar
org-deadline-warning-days 1
org-preview-latex-image-directory "~/.emacs.d/org-latex-cache"
org-html-head-extra "<style>\n #content {\n font-size: 125%;\n max-width: 50rem; /* instead of em */\n }\n</style>"
org-speed-command-hook '(org-speed-command-activate
org-babel-speed-command-activate)
org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function
org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
org-habit-following-days 1
org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
org-use-extra-keys t
org-confirm-babel-evaluate nil
org-cite-export-processors '((t csl))
org-preview-latex-default-process 'dvisvgm
org-clock-persist t
org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-function
org-tab-first-hook '(org-babel-hide-result-toggle-maybe
org-babel-header-arg-expand)
org-link-shell-confirm-function 'yes-or-no-p
org-babel-pre-tangle-hook '(save-buffer)
org-pomodoro-break-finished-hook '(my/org-clock-mode-line-enable)
org-agenda-loop-over-headlines-in-active-region nil
org-fontify-quote-and-verse-blocks t
org-todo-keyword-faces '(("TODO" :foreground "#006800" :underline t :weight
ultra-bold)
("DONE" :foreground "#56576d" :underline t :weight
ultra-bold)
("NEXT" :foreground "#006800" :underline t :weight
ultra-bold)
("NEXT-IN" :foreground "#006800" :underline t :weight
ultra-bold)
("WAIT-FOR" :foreground "#b60000" :underline t :weight
ultra-bold)
("ON-HOLD" :foreground "#a8007f" :underline t :weight
ultra-bold)
("DONE" :foreground "#56576d" :underline t :weight
ultra-bold)
("QUIT" :foreground "#56576d" :underline t :weight
ultra-bold)
("HABIT" :foreground "#005f88" :underline t :weight
ultra-bold)
("SENT" :foreground "#006800" :underline t :weight
ultra-bold)
("PAID" :foreground "#005f88" :underline t :weight
ultra-bold)
)
org-cite-global-bibliography '("/Users/salutis/bib-OLD/Cormen+2009.bib"
"/Users/salutis/bib-OLD/DiscussionForum6.bib"
"/Users/salutis/bib-OLD/DiscussionForum7.bib"
"/Users/salutis/bib-OLD/DiscussionForum8.bib"
"/Users/salutis/bib-OLD/Epp-2019.bib"
"/Users/salutis/bib-OLD/Mix.bib"
"/Users/salutis/bib-OLD/MotionPictures.bib"
"/Users/salutis/bib-OLD/Stewart+2020.bib"
"/Users/salutis/bib-OLD/abbate-2004.bib"
"/Users/salutis/bib-OLD/acm-.bib"
"/Users/salutis/bib-OLD/aho+1994.bib"
"/Users/salutis/bib-OLD/ambler-2015.bib"
"/Users/salutis/bib-OLD/american-psychological-association-.bib" "/Users/salutis/bib-OLD/apple-2017.bib" "/Users/salutis/bib-OLD/arndt-2010.bib" "/Users/salutis/bib-OLD/arpaci-dusseau-2019.bib" "/Users/salutis/bib-OLD/barak-2021.bib" "/Users/salutis/bib-OLD/bartholdi-1886.bib" "/Users/salutis/bib-OLD/baviere-2018.bib" "/Users/salutis/bib-OLD/beall-2019.bib" "/Users/salutis/bib-OLD/belton-1996.bib" "/Users/salutis/bib-OLD/bennett+2015.bib" "/Users/salutis/bib-OLD/bentham-1780.bib" "/Users/salutis/bib-OLD/bibdesk.bib" "/Users/salutis/bib-OLD/bilaniuk-2003.bib" "/Users/salutis/bib-OLD/bio.bib" "/Users/salutis/bib-OLD/blinn-1978.bib" "/Users/salutis/bib-OLD/boai-2002.bib" "/Users/salutis/bib-OLD/bogart-2004.bib" "/Users/salutis/bib-OLD/brehe-2019.bib" "/Users/salutis/bib-OLD/brownlee-2011.bib" "/Users/salutis/bib-OLD/bunkley-2008.bib" "/Users/salutis/bib-OLD/butler.bib" "/Users/salutis/bib-OLD/button+2019.bib" "/Users/salutis/bib-OLD/camara-2015.bib" "/Users/salutis/bib-OLD/campisi+2019.bib" "/Users/salutis/bib-OLD/carter+2015.bib" "/Users/salutis/bib-OLD/carver-1989.bib" "/Users/salutis/bib-OLD/cary-1975.bib" "/Users/salutis/bib-OLD/chadwick-2017.bib" "/Users/salutis/bib-OLD/clark+2020.bib" "/Users/salutis/bib-OLD/clark-1980.bib" "/Users/salutis/bib-OLD/clark-1982.bib" "/Users/salutis/bib-OLD/collingwood+2019.bib" "/Users/salutis/bib-OLD/comedy.bib" "/Users/salutis/bib-OLD/cook-1984.bib" "/Users/salutis/bib-OLD/corral-2020.bib" "/Users/salutis/bib-OLD/cramer-2020.bib" "/Users/salutis/bib-OLD/creasy+2016.bib" "/Users/salutis/bib-OLD/cridge-2015.bib" "/Users/salutis/bib-OLD/cromwell.bib" "/Users/salutis/bib-OLD/crowell+2019.bib" "/Users/salutis/bib-OLD/cunningham-2015.bib" "/Users/salutis/bib-OLD/curran-1989.bib" "/Users/salutis/bib-OLD/dagostino-2020.bib" "/Users/salutis/bib-OLD/darcus+.bib" "/Users/salutis/bib-OLD/darwin-1872.bib" "/Users/salutis/bib-OLD/dasgupta+2006.bib" "/Users/salutis/bib-OLD/david-1784.bib" "/Users/salutis/bib-OLD/delacroix-1830.bib" "/Users/salutis/bib-OLD/dict.bib" "/Users/salutis/bib-OLD/diez+2019.bib" "/Users/salutis/bib-OLD/discussion-post-2.bib" "/Users/salutis/bib-OLD/discussion-post-3.bib" "/Users/salutis/bib-OLD/discussion-post-4.bib" "/Users/salutis/bib-OLD/does+2003.bib" "/Users/salutis/bib-OLD/driscoll+2020.bib" "/Users/salutis/bib-OLD/driscoll+2022.bib" "/Users/salutis/bib-OLD/eck-2018.bib" "/Users/salutis/bib-OLD/ecology-and-biosphere.bib" "/Users/salutis/bib-OLD/eijkhout-2019.bib" "/Users/salutis/bib-OLD/emacs.bib" "/Users/salutis/bib-OLD/entwood+.bib" "/Users/salutis/bib-OLD/erickson-2019.bib" "/Users/salutis/bib-OLD/eyck-1434.bib" "/Users/salutis/bib-OLD/farber-2015a.bib" "/Users/salutis/bib-OLD/farber-2015b.bib" "/Users/salutis/bib-OLD/feldman+2020a.bib" "/Users/salutis/bib-OLD/feldman+2020b.bib" "/Users/salutis/bib-OLD/feldman+2020c.bib" "/Users/salutis/bib-OLD/feldman+2020d.bib" "/Users/salutis/bib-OLD/fields-2015.bib" "/Users/salutis/bib-OLD/fridman-2019.bib" "/Users/salutis/bib-OLD/fridman-2021.bib" "/Users/salutis/bib-OLD/friedman-1970.bib" "/Users/salutis/bib-OLD/garrett-2008.bib" "/Users/salutis/bib-OLD/gersh-nesic-2015-1.bib" "/Users/salutis/bib-OLD/gersh-nesic-2015.bib" "/Users/salutis/bib-OLD/gersh-nesic-2016.bib" "/Users/salutis/bib-OLD/gibbs+2017.bib" "/Users/salutis/bib-OLD/glass-2017.bib" "/Users/salutis/bib-OLD/glfw-development-team.bib" "/Users/salutis/bib-OLD/gouraud-1971.bib" "/Users/salutis/bib-OLD/grigas-2016.bib" "/Users/salutis/bib-OLD/grinstead+2006.bib" "/Users/salutis/bib-OLD/gudea.bib" "/Users/salutis/bib-OLD/guha-2018.bib" "/Users/salutis/bib-OLD/guichard-2020.bib" "/Users/salutis/bib-OLD/guinea-pig.bib" "/Users/salutis/bib-OLD/haines+2019.bib" "/Users/salutis/bib-OLD/hallet+2021.bib" "/Users/salutis/bib-OLD/hammack-2018.bib" "/Users/salutis/bib-OLD/harpur+2019.bib" "/Users/salutis/bib-OLD/harris-2015-1.bib" "/Users/salutis/bib-OLD/harris-2015-2.bib" "/Users/salutis/bib-OLD/harrison-2000.bib" "/Users/salutis/bib-OLD/hartman+2018.bib" "/Users/salutis/bib-OLD/hartman-2011.bib" "/Users/salutis/bib-OLD/heinz+2003.bib" "/Users/salutis/bib-OLD/hemingway+2007.bib" "/Users/salutis/bib-OLD/hemingway+2008.bib" "/Users/salutis/bib-OLD/hewlett-packard-2007.bib" "/Users/salutis/bib-OLD/heydon+1999.bib" "/Users/salutis/bib-OLD/hume-1757.bib" "/Users/salutis/bib-OLD/humphreys-.bib" "/Users/salutis/bib-OLD/indiana-university-.bib" "/Users/salutis/bib-OLD/inoshita+2019.bib" "/Users/salutis/bib-OLD/ivanova+2016.bib" "/Users/salutis/bib-OLD/jhangiani+2019.bib" "/Users/salutis/bib-OLD/kedlaya.bib" "/Users/salutis/bib-OLD/kepka-2018.bib" "/Users/salutis/bib-OLD/khan-2010.bib" "/Users/salutis/bib-OLD/king-nd.bib" "/Users/salutis/bib-OLD/kitchin-2016.bib" "/Users/salutis/bib-OLD/knuth-1984.bib" "/Users/salutis/bib-OLD/knuth-2011.bib" "/Users/salutis/bib-OLD/knuth-2014.bib" "/Users/salutis/bib-OLD/kotogi-2012.bib" "/Users/salutis/bib-OLD/krig-2014.bib" "/Users/salutis/bib-OLD/krishnamurthy-1996.bib" "/Users/salutis/bib-OLD/laakso+2011.bib" "/Users/salutis/bib-OLD/lambert-1760.bib" "/Users/salutis/bib-OLD/lasseter-1987.bib" "/Users/salutis/bib-OLD/learning-journal-3.bib" "/Users/salutis/bib-OLD/levin-2021.bib" "/Users/salutis/bib-OLD/lichtenstein-1961.bib" "/Users/salutis/bib-OLD/littman-2009.bib" "/Users/salutis/bib-OLD/lowe+2010.bib" "/Users/salutis/bib-OLD/lowe+2011.bib" "/Users/salutis/bib-OLD/lyttkens-2006.bib" "/Users/salutis/bib-OLD/magnus+2020.bib" "/Users/salutis/bib-OLD/mann-2017.bib" "/Users/salutis/bib-OLD/mccarthy-1960.bib" "/Users/salutis/bib-OLD/mdf6.bib" "/Users/salutis/bib-OLD/mdf8.bib" "/Users/salutis/bib-OLD/memi-and-sabu.bib" "/Users/salutis/bib-OLD/monet-1877a.bib" "/Users/salutis/bib-OLD/monet-1877b.bib" "/Users/salutis/bib-OLD/morris+2016.bib" "/Users/salutis/bib-OLD/morris-2010.bib" "/Users/salutis/bib-OLD/mozilla.bib" "/Users/salutis/bib-OLD/myerson-1997.bib" "/Users/salutis/bib-OLD/neumann-1945.bib" "/Users/salutis/bib-OLD/nisan+2005.bib" "/Users/salutis/bib-OLD/noble-2015.bib" "/Users/salutis/bib-OLD/np.bib" "/Users/salutis/bib-OLD/paul-2004.bib" "/Users/salutis/bib-OLD/pearson-2015.bib" "/Users/salutis/bib-OLD/petkovsek-1997.bib" "/Users/salutis/bib-OLD/phong-1975.bib" "/Users/salutis/bib-OLD/picasso-1937.bib" "/Users/salutis/bib-OLD/pieper-1965.bib" "/Users/salutis/bib-OLD/pollock-1952.bib" "/Users/salutis/bib-OLD/princeton-2010.bib" "/Users/salutis/bib-OLD/prinz+2003.bib" "/Users/salutis/bib-OLD/purdue-university-.bib" "/Users/salutis/bib-OLD/rao+2018.bib" "/Users/salutis/bib-OLD/raymond-2000a.bib" "/Users/salutis/bib-OLD/raymond-2000b.bib" "/Users/salutis/bib-OLD/raymond-2000c.bib" "/Users/salutis/bib-OLD/raymond-2000d.bib" "/Users/salutis/bib-OLD/raymond-2000e.bib" "/Users/salutis/bib-OLD/roggenkamp-2016.bib" "/Users/salutis/bib-OLD/ross-2015a.bib" "/Users/salutis/bib-OLD/ross-2015b.bib" "/Users/salutis/bib-OLD/rousseau-1762.bib" "/Users/salutis/bib-OLD/ryan-2018.bib" "/Users/salutis/bib-OLD/ryder-1970.bib" "/Users/salutis/bib-OLD/ryder-2010.bib" "/Users/salutis/bib-OLD/sanglard-2020a.bib" "/Users/salutis/bib-OLD/sanglard-2020b.bib" "/Users/salutis/bib-OLD/schachermeyr-1953.bib" "/Users/salutis/bib-OLD/schottstaedt+nd.bib" "/Users/salutis/bib-OLD/schwarz-architects.bib" "/Users/salutis/bib-OLD/segal-1994.bib" "/Users/salutis/bib-OLD/segal-2019.bib" "/Users/salutis/bib-OLD/shaffer-2013.bib" "/Users/salutis/bib-OLD/shannon-1948.bib" "/Users/salutis/bib-OLD/shannon-1952.bib" "/Users/salutis/bib-OLD/software.bib" "/Users/salutis/bib-OLD/spanswick-2015.bib" "/Users/salutis/bib-OLD/spivey-2015-1.bib" "/Users/salutis/bib-OLD/spivey-2015-2.bib" "/Users/salutis/bib-OLD/spivey-2015-3.bib" "/Users/salutis/bib-OLD/spivey-2015-4.bib" "/Users/salutis/bib-OLD/stein-2017.bib" "/Users/salutis/bib-OLD/stern-2019.bib" "/Users/salutis/bib-OLD/stitz+2013.bib" "/Users/salutis/bib-OLD/temp.bib" "/Users/salutis/bib-OLD/uopeople-2020.bib" "/Users/salutis/bib-OLD/van-noorden-2013.bib" "/Users/salutis/bib-OLD/vega+.bib" "/Users/salutis/bib-OLD/voorhies-2004.bib" "/Users/salutis/bib-OLD/vries-2020.bib" "/Users/salutis/bib-OLD/walden.bib" "/Users/salutis/bib-OLD/wallace-1858.bib" "/Users/salutis/bib-OLD/warhol-1962.bib" "/Users/salutis/bib-OLD/web.bib" "/Users/salutis/bib-OLD/wong-2009.bib" "/Users/salutis/bib-OLD/wright-1765.bib" "/Users/salutis/bib-OLD/written-assignment-1.bib" "/Users/salutis/bib-OLD/written-assignment-3.bib" "/Users/salutis/bib-OLD/zach+2021a.bib" "/Users/salutis/bib-OLD/zach+2021b.bib" "/Users/salutis/bib-OLD/zimbardo-.bib" "/Users/salutis/bib-OLD/zucker-2015.bib" "/Users/salutis/bib-OLD/zucker-2016-1.bib" "/Users/salutis/bib-OLD/zucker-2016.bib" "/Users/salutis/bib-OLD/zygmont-2015.bib" "/Users/salutis/org/out/yakir-2011.bib")
org-occur-hook '(org-first-headline-recenter)
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-link-parameters '(("attachment" :follow org-attach-follow :complete
org-attach-complete-link)
("id" :follow org-id-open)
("notmuch" :store org-notmuch-store-link :follow
notmuch-show)
("eww" :follow org-eww-open :store org-eww-store-link)
("rmail" :follow org-rmail-open :store org-rmail-store-link)
("mhe" :follow org-mhe-open :store org-mhe-store-link)
("irc" :follow org-irc-visit :store org-irc-store-link
:export org-irc-export)
("info" :follow org-info-open :export org-info-export
:store org-info-store-link)
("gnus" :follow org-gnus-open :store org-gnus-store-link)
("docview" :follow org-docview-open :export
org-docview-export :store org-docview-store-link)
("bibtex" :follow org-bibtex-open :store
org-bibtex-store-link)
("bbdb" :follow org-bbdb-open :export org-bbdb-export
:complete org-bbdb-complete-link :store
org-bbdb-store-link)
("w3m" :store org-w3m-store-link)
("doi" :follow org-link-doi-open :export
org-link-doi-export)
("elfeed" :follow elfeed-link-open :store
elfeed-link-store-link)
("file+sys") ("file+emacs")
("shell" :follow org-link--open-shell)
("news" :follow
#[514 "\301\300\302.Q.\"\207" ["news" browse-url ":"] 6
"\n\n(fn URL ARG)"]
)
("mailto" :follow
#[514 "\301\300\302.Q.\"\207" ["mailto" browse-url ":"]
6 "\n\n(fn URL ARG)"]
)
("https" :follow
#[514 "\301\300\302.Q.\"\207" ["https" browse-url ":"] 6
"\n\n(fn URL ARG)"]
)
("http" :follow
#[514 "\301\300\302.Q.\"\207" ["http" browse-url ":"] 6
"\n\n(fn URL ARG)"]
)
("ftp" :follow
#[514 "\301\300\302.Q.\"\207" ["ftp" browse-url ":"] 6
"\n\n(fn URL ARG)"]
)
("help" :follow org-link--open-help :store
org-link--store-help)
("file" :complete org-link-complete-file)
("elisp" :follow org-link--open-elisp))
org-html-format-headline-function 'org-html-format-headline-default-function
org-metaup-hook '(org-babel-load-in-session-maybe)
org-refile-allow-creating-parent-nodes 'confirm
org-startup-with-inline-images t
org-imenu-depth 999
org-link-frame-setup '((file . find-file))
org-return-follows-link t
org-pomodoro-killed-hook '(my/org-clock-mode-line-enable)
org-src-lang-modes '(("latex-macros" . latex) ("C" . c) ("C++" . c++)
("asymptote" . asy) ("bash" . sh) ("beamer" . latex)
("calc" . fundamental) ("cpp" . c++) ("ditaa" . artist)
("dot" . fundamental) ("elisp" . emacs-lisp)
("ocaml" . tuareg) ("screen" . shell-script) ("shell" . sh)
("sqlite" . sql))
org-reverse-note-order t
org-agenda-sort-notime-is-late nil
org-agenda-block-separator nil
org-agenda-deadline-leaders '("Deadline: " "Deadline in %3d days: "
"Deadline %2d days ago: ")
org-agenda-time-leading-zero t
org-agenda-use-time-grid nil
)
--
"Be especially critical of any statement following the word
'obviously.'"
-- Anna Pell Wheeler, 1883-1966
Rudolf Adamkovič <salutis@me.com> [he/him]
Studenohorská 25
84103 Bratislava
Slovakia
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] Re: [BUG] Make org-html-htmlize-output-type safe [9.5.2 (release_9.5.2-9-g7ba24c @ /Users/salutis/src/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/)]
2022-01-30 20:34 [BUG] Make org-html-htmlize-output-type safe [9.5.2 (release_9.5.2-9-g7ba24c @ /Users/salutis/src/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/)] Rudolf Adamkovič
@ 2022-10-17 12:47 ` Ihor Radchenko
2022-11-11 3:33 ` Ihor Radchenko
0 siblings, 1 reply; 3+ messages in thread
From: Ihor Radchenko @ 2022-10-17 12:47 UTC (permalink / raw)
To: Rudolf Adamkovič; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 620 bytes --]
Rudolf Adamkovič <salutis@me.com> writes:
> In some of my notes, I have the following line:
>
> # -*- org-html-htmlize-output-type: nil -*-
>
> Every time I open such a file, Emacs wants me to confirm that doing so
> poses no security risk. Could we perhaps make this variable safe?
Can be done. Like in the attached patch.
However, note that Emacs will still want about buffer-local setting if
ox-html is not loaded.
The same will happen with any other "safe" variable defined in Org
libraries that are not loaded by default.
I am wondering if we should add autoload cookies to such variables.
[-- Attachment #2: 0001-org-html-htmlize-output-type-Mark-safe-as-buffer-loc.patch --]
[-- Type: text/x-patch, Size: 1343 bytes --]
From 5779ce5f5a05aa4e4f76d85eae1c1e324a77dea2 Mon Sep 17 00:00:00 2001
Message-Id: <5779ce5f5a05aa4e4f76d85eae1c1e324a77dea2.1666010682.git.yantar92@posteo.net>
From: Ihor Radchenko <yantar92@posteo.net>
Date: Mon, 17 Oct 2022 20:43:59 +0800
Subject: [PATCH] org-html-htmlize-output-type: Mark safe as buffer-local
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* lisp/ox-html.el (org-html-htmlize-output-type): This variable is
safe to set buffer-locally as a symbol.
Reported-by: Rudolf Adamkovič <salutis@me.com>
Link: https://orgmode.org/list/m28ruxklo5.fsf@me.com
---
lisp/ox-html.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index cad06aebf..c34711d1e 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -897,7 +897,8 @@ (defcustom org-html-htmlize-output-type 'inline-css
in all modes you want. Then, use the command
`\\[org-html-htmlize-generate-css]' to extract class definitions."
:group 'org-export-html
- :type '(choice (const css) (const inline-css) (const nil)))
+ :type '(choice (const css) (const inline-css) (const nil))
+ :safe #'symbolp)
(defcustom org-html-htmlize-font-prefix "org-"
"The prefix for CSS class names for htmlize font specifications."
--
2.35.1
[-- Attachment #3: Type: text/plain, Size: 224 bytes --]
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Re: [BUG] Make org-html-htmlize-output-type safe [9.5.2 (release_9.5.2-9-g7ba24c @ /Users/salutis/src/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/)]
2022-10-17 12:47 ` [PATCH] " Ihor Radchenko
@ 2022-11-11 3:33 ` Ihor Radchenko
0 siblings, 0 replies; 3+ messages in thread
From: Ihor Radchenko @ 2022-11-11 3:33 UTC (permalink / raw)
To: Rudolf Adamkovič; +Cc: emacs-orgmode
Ihor Radchenko <yantar92@posteo.net> writes:
> Can be done. Like in the attached patch.
Applied onto main.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=4517fba441444fa6a2fb167787a6e813d7004c80
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-11-11 3:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-30 20:34 [BUG] Make org-html-htmlize-output-type safe [9.5.2 (release_9.5.2-9-g7ba24c @ /Users/salutis/src/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/)] Rudolf Adamkovič
2022-10-17 12:47 ` [PATCH] " Ihor Radchenko
2022-11-11 3:33 ` Ihor Radchenko
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.