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:
parent
ac9d73bb13
commit
c7e078eeaa
|
@ -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.
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue