0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-08-20 09:18:41 +00:00

Links: Use buffer name as link description in w3-mode buffers

This commit is contained in:
Carsten Dominik 2009-03-26 05:05:42 +01:00
parent ac9d73bb13
commit c7e078eeaa
2 changed files with 8 additions and 2 deletions

View file

@ -1,5 +1,8 @@
2009-03-26 Carsten Dominik <carsten.dominik@gmail.com>
* org.el (org-store-link): Use buffer name as link description in
w3-mode buffers.
* org-remember.el (org-remember-apply-template): Set local
variable `auto-save-visited-file-name' instead of global one.

View file

@ -6775,8 +6775,11 @@ For file links, arg negates `org-context-in-file-links'."
(org-store-link-props :type "calendar" :date cd)))
((eq major-mode 'w3-mode)
(setq cpltxt (url-view-url t)
link (org-make-link cpltxt))
(setq cpltxt (if (and (buffer-name)
(not (string-match "Untitled" (buffer-name))))
(buffer-name)
(url-view-url t))
link (org-make-link (url-view-url t)))
(org-store-link-props :type "w3" :url (url-view-url t)))
((eq major-mode 'w3m-mode)