Re: ORG update made Dired the only way to open folders
> Is it possible to open links to folders out of emacs? Take a look at `org-file-apps' variable. You can remove (directory . emacs) part of it to return using default system app. Best, Ihor Ypo writes: > Hi > > I updated to the new version of ORG, and a problem arose (although a hidden > bless too): > - now when I open a link to a folder, Dired is launched. This behaviour is > different, before the update these links where open in an external window of > Windows OS. Even when I use attach and choose to open in external program, > Dired is used as default. > Is it possible to open links to folders out of emacs? > > - The bless is that I didn't know Dired, absolutely, and now I found some > features quite attractive, like finding files in a folder just writing their > name. > > Best regards
ORG update made Dired the only way to open folders
Hi I updated to the new version of ORG, and a problem arose (although a hidden bless too): - now when I open a link to a folder, Dired is launched. This behaviour is different, before the update these links where open in an external window of Windows OS. Even when I use attach and choose to open in external program, Dired is used as default. Is it possible to open links to folders out of emacs? - The bless is that I didn't know Dired, absolutely, and now I found some features quite attractive, like finding files in a folder just writing their name. Best regards
Re: Help debugging R source code block output problem with :session
Thanks. This patch works for my org files. On Tue 08 Sep 2020 at 12:41, Jack Kamm wrote: Hi Chuck, this is already present in `org-babel-R-evaluate-session' in the call to `org-babel-comint-eval-invisibly-and-wait-for-file'' just a couple of lines further down in the `(cl-case result-type (value ...))' branch. The other use of `tmp-file' in that block is the one that requires the prefix, right? So nothing more to fix. ?? You're right, I didn't notice that it's already present -- nothing more to fix. Jack --
Re: creating png images in emails with org-mode
On Friday, 18 Sep 2020 at 10:08, Nick Dokos wrote: > Actually, it refers to the generation of PNG files from PDF files using > `convert' (I think). The `imagemagick' process of LaTeX preview uses > `pdflatex'to go from TeX to PDF and `convert' to go from PDF to PNG. Ah, yes, that makes sense! Thank you. -- : Eric S Fraga via Emacs 28.0.50, Org release_9.3.7-725-g7bc18e
Re: creating png images in emails with org-mode
Eric S Fraga writes: > On Thursday, 17 Sep 2020 at 00:57, Nick Dokos wrote: >> Apparently, recent versions of ImageMagick (version 7 seems to be one) >> on (perhaps) some distros ship with a >> /etc/ImageMagick-/policy.xml file that imposes restrictions >> on what can be done. Here's an SE question with some information: > > Thank you. Interesting. > > For the OP, it might be worth noting that the solution on the > StackExchange page you linked to refers to the generation of PDF files > from the LaTeX snippet; I would imagine that the fix noted will need to > be adjusted for PNG files but cannot verify as I'm still on ImageMagick > version 6 and don't have these issues. Actually, it refers to the generation of PNG files from PDF files using `convert' (I think). The `imagemagick' process of LaTeX preview uses `pdflatex'to go from TeX to PDF and `convert' to go from PDF to PNG. -- Nick "There are only two hard problems in computer science: cache invalidation, naming things, and off-by-one errors." -Martin Fowler
Re: variable-pitch-mode misaligns org-mode heading tags
I somehow missed this thread. I have a (mostly) working code achieving the same thing in my personal config. The code is below. Hope it can give you some more ideas. I am using font-lock for tag alignment. (add-hook 'org-mode-hook (lambda () (font-lock-add-keywords 'org-mode '(yant/org-align-tags) t)) 100) (add-hook 'org-mode-hook (lambda () (add-to-list 'font-lock-extra-managed-props 'org-tag-aligned))) (defun yant/org-align-tags (limit &optional force) "Align all the tags in org buffer." (save-match-data (when (eq major-mode 'org-mode) (while (re-search-forward "^\\*+ \\(.+?\\)\\([ \t]+\\)\\(:\\(?:[^ \n]+:\\)+\\)$" limit t) (when (and (match-string 2) (or force (not (get-text-property (match-beginning 2) 'org-tag-aligned (with-silent-modifications (put-text-property (match-beginning 2) (match-end 2) 'org-tag-aligned t) (put-text-property (if (>= 2 (- (match-end 2) (match-beginning 2))) (match-beginning 2) ;; multiple whitespaces may mean that we are in process of typing (1+ (match-beginning 2))) (match-end 2) 'display `(space . (:align-to (- right (,(+ 3 ;; no idea, but otherwise it is sometimes not enough (string-display-pixel-width org-ellipsis) (string-display-pixel-width (or (match-string 3) "")) (defun string-display-pixel-width (string &optional mode) "Calculate pixel width of STRING. Optional MODE specifies major mode used for display." (with-temp-buffer (with-silent-modifications (setf (buffer-string) string)) (when (fboundp mode) (funcall mode) (font-lock-fontify-buffer)) (if (get-buffer-window (current-buffer)) (car (window-text-pixel-size nil (line-beginning-position) (point))) (set-window-buffer nil (current-buffer)) (car (window-text-pixel-size nil (line-beginning-position) (point)) Jeff Filipovits writes: > Adam Spiers writes: > >> Hrm, no this isn't good enough. For graphical windows we still >> need >> to set the display text properties to align all tags when the >> buffer >> initially loads. AFAICS there's currently no code to trigger >> this, so >> it would need to be added, and for large files this might >> actually >> cause problems with file loading time unless it was done in the >> background (a bit like fontification can be done). > > > > The upside of this is that it enabled me do to some hacking so now > I can use a variable pitch font in the mu4e headers view and keep > the columns aligned, which makes mu4e much prettier. > > > -- > Jeff Filipovits > Spears & Filipovits, LLC > 1126 Ponce de Leon Avenue > Atlanta, GA 30306 > 678.237.9302 (direct) > j...@civil-rights.law > > All emails confidential to the fullest extent of the law.
Re: Bug: Failed to render org file during first load on buffer emacs 27.1 windows binaries [9.3 (release_9.3 @ c:/ProgramFilesh/emacs-27.1-x86_64/share/emacs/27.1/lisp/org/)]
I tried with the latest stable release org 9.4 along with emacs27.1 windows binaries on windows platform. The issue persists. i shall copy the generated bug report here Emacs : GNU Emacs 27.1 (build 1, x86_64-w64-mingw32) of 2020-08-21 Package: Org mode version 9.4 (9.4-dist @ c:/Home/expemacsd/.emacs.d/orgdir/lisp/) current state: == (setq org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-link-shell-confirm-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-mode-hook '((closure (org--rds reftex-docstruct-symbol org-element-greater-elements org-clock-history org-agenda-current-date org-with-time org-defdecode org-def org-read-date-inactive org-ans2 org-ans1 org-columns-current-fmt-compiled org-clock-current-task org-clock-effort org-agenda-skip-function org-agenda-skip-comment-trees org-agenda-archives-mode org-end-time-was-given org-time-was-given org-log-note-extra org-log-note-purpose org-log-post-message org-last-inserted-timestamp org-last-changed-timestamp org-entry-property-inherited-from org-blocked-by-checkboxes org-state org-agenda-headline-snapshot-before-repeat org-agenda-start-on-weekday org-agenda-buffer-tmp-name org-priority-regexp org-mode-abbrev-table org-mode-syntax-table buffer-face-mode-face org-tbl-menu org-org-menu org-struct-menu org-entities org-last-state org-id-track-globally org-clock-start-time texmathp-why remember-data-file org-agenda-tags-todo-honor-ignore-options iswitchb-temp-buflist calc-embedded-open-mode calc-embedded-open-formula calc-embedded-close-formula align-mode-rules-list org-emphasis-alist org-emphasis-regexp-components org-export-registered-backends org-modules org-babel-load-languages org-id-overriding-file-name org-indent-indentation-per-level org-element-paragraph-separate ffap-url-regexp org-inlinetask-min-level t) nil (add-hook 'change-major-mode-hook 'org-show-all 'append 'local) ) (closure (org-src-window-setup *this* org-babel-confirm-evaluate-answer-no org-babel-tangle-uncomment-comments org-src-preserve-indentation org-src-lang-modes org-edit-src-content-indentation org-babel-library-of-babel t) nil (add-hook 'change-major-mode-hook 'org-babel-show-result-all 'append 'local) ) org-babel-result-hide-spec org-babel-hide-all-hashes) org-archive-hook '(org-attach-archive-delete-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-agenda-before-write-hook '(org-agenda-add-entry-text) org-metaup-hook '(org-babel-load-in-session-maybe) org-bibtex-headline-format-function '(closure (org-id-locations org-agenda-search-view-always-boolean org-agenda-overriding-header t) (entry) (cdr (assq :title entry))) org-babel-pre-tangle-hook '(save-buffer) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-agenda-loop-over-headlines-in-active-region nil org-occur-hook '(org-first-headline-recenter) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-export-before-parsing-hook '(org-attach-expand-links) org-confirm-shell-link-function 'yes-or-no-p org-link-parameters '(("attachment" :follow org-attach-follow :complete org-attach-complete-link) ("id" :follow org-id-open) ("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) ("file+sys") ("file+emacs") ("shell" :follow org-link--open-shell) ("news" :follow (closure ((scheme . "news") (--dolist-tail--) org-ts-regexp org-time-stamp-formats org-src-source-file-name org-outline-regexp-bol org-inhibit-startup org-id-link-to-org-use-id org-highlight-links org-comment-string org-agenda-buffer-name clean-buffer-list-kill-buffer-names t) (url arg) (browse-url (concat scheme ":" url) arg)) ) ("mailto" :follow (closure ((scheme . "mailto") (--dolist-tail--) org-ts-regexp org-time-stamp-formats org-src-source-file-name org-outline-regexp-bol org-inhibit-startup org-id-
Re: [PATCH] Adaptive Org faces in headings?
Ihor Radchenko [2020-09-17, 16:25 +0800]: > The attached patch seems to fix the issue. > Can anyone test? I just tried this using the standard faces of 'emacs -Q' as well as custom themes. In short, the patch fixes the issue on my side. I tested whether faces on the headline would correctly inherit any of the following properties: + :height + :weight + :background + :overline I also tested it with 'variable-pitch' headlines and, again, every construct that does not have a font family explicitly assigned to it will adapt to the underlying heading. Excellent! This is the kind of headline I tried: * TODO [#A] This is a test ~scaling-elements~ =faces-adapt= :good-stuff: Also added links to confirm my findings. Again, all good. -- Protesilaos Stavrou protesilaos.com
Re: [PATCH] Enhance org-html--build-meta-info
On 2020-09-18, TEC wrote: > Jens Lechtenboerger writes: > [...] > I was not aware of org-element-interpret-data, and I can't say I can > really tell what it does. If you'd care to elaborate that would be > helpful. Hi Timothy, I don’t know why that is used. For this test case: #+begin_src org ,#+TITLE: A title with *bold* index_1^2 and characters &ß<" ,#+AUTHOR: An /emphasized/ "anonymous" author_1^2 with [[https://example.org][hyperlink]] and characters &ß<" ,#+DESCRIPTION: A description_1^2 with /emphasis/ and [[https://example.org][hyperlink]] and characters &ß<" Test #+end_src I get this with Org master: #+begin_src html A title with bold index12 and characters &ß<" https://example.org][hyperlink]] and characters &ß<"" /> https://example.org][hyperlink]] and characters &ß<"" #+end_src The title is not valid HTML. I suggest to export it with Org syntax. I cannot see a difference between the handling of author and description. So, for this example, org-element-interpret-data is not necessary for author. I don’t know whether others have author information where a difference would be visible. My suggestion would be to go with the handling of description in all cases, including the title. >> Besides, did you forget keywords or remove them on purpose? > > This is a deliberate omission. My impression is that the value of > keywords in HTML documents has evaporated over the past decade, see: > https://yoast.com/meta-keywords/ I added keywords to my OER presentations because some crawlers use them to extract topics for classification of documents. I’d like to keep that. Best wishes Jens
Re: When will 9.4 be on orgmode/elpa ?
On Fri 18-Sep-2020 at 08:57:15 +02, Detlef Steuer wrote: > Hi all, > > I use https://orgmode.org/elpa/ org-plus-contrib to stay uptodate with > org. > > As it seems GNU elpa has org-9.4. > > Normally I would be more patient, but I'm having very strange movements > of point(!) during folding/unfolding in an old, largish file where > folding always worked. The cursor ends up in a different part of my > file after unfolding some headline. Further I was unable to bisect the > file. When removing headlines to construct a minimal example, the exact > headline where this phenomen happens, changes. Well, I would like to > try 9.4 first before asking for further help. > Hi, I am having exactly the same behaviour and I have also been unable to generate a minimum working example. I have observed that the misbehaviour happens when cycling with , but works OK. Garjola.