emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kepa <gnu.cognition199@slmails.com>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: emacs-orgmode@gnu.org
Subject: RE: Issue opening files with accented words, using org-attach-open
Date: Sat, 10 Aug 2024 17:51:04 +0000	[thread overview]
Message-ID: <172331227309.6.1638653457721037075.402597068@slmails.com> (raw)
In-Reply-To: <87frrc32nu.fsf@localhost>

> -----Original Message-----
> From: yantar92 at posteo.net
> <yantar92_at_posteo_net_bkabf@simplelogin.co>
> Sent: Saturday, August 10, 2024 3:53 PM
> To: Kepa <gnu.cognition199@slmails.com>
> Cc: emacs-orgmode at gnu.org <emacs-
> orgmode_at_gnu_org_kqcgkjat@simplelogin.co>
> Subject: RE: Issue opening files with accented words, using org-attach-open
> 
> Kepa <gnu.cognition199@slmails.com> writes:
> 
> > I get not output with w32-shell-execute,
> 
> Did you customize `org-file-apps'?
> 

THAT'S IT!
I had added:

(when (eq system-type 'windows-nt)
  (setq org-file-apps
        '(("\\.\\(docx\\|doc\\)\\'" . (lambda (file link) (shell-command (concat "start \"\" \"" file "\""))))
          ("\\.\\(xlsx\\|xls\\)\\'" . (lambda (file link) (shell-command (concat "start \"\" \"" file "\""))))
          ("\\.\\(pdf\\)\\'" . (lambda (file link) (shell-command (concat "start \"\" \"" file "\""))))
          ("\\.\\(pptx\\|ppt\\)\\'" . (lambda (file link) (shell-command (concat "start \"\" \"" file "\""))))

          (auto-mode . emacs))))

After commenting those lines, I can open files with accentuated names through org-attach. 

What should I customize to open links with the default software of the OS?

Best regards

  reply	other threads:[~2024-08-10 17:52 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-04 20:37 Issue opening files with accented words, using org-attach-open Kepa
2024-08-05  4:33 ` tomas
2024-08-05  9:04   ` Kepa
2024-08-05  9:28     ` tomas
2024-08-05 18:53 ` Ihor Radchenko
2024-08-05 20:24   ` Kepa
2024-08-05 20:44     ` Kepa
2024-08-06  4:28       ` tomas
2024-08-06 17:23     ` Ihor Radchenko
2024-08-06 19:37       ` Kepa
2024-08-10 13:53         ` Ihor Radchenko
2024-08-10 17:51           ` Kepa [this message]
2024-08-11 16:31             ` Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=172331227309.6.1638653457721037075.402597068@slmails.com \
    --to=gnu.cognition199@slmails.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=yantar92@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).