[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[emacs-wiki-discuss] Re: Planner hyperlinks _anywhere!_
From: |
Sacha Chua |
Subject: |
[emacs-wiki-discuss] Re: Planner hyperlinks _anywhere!_ |
Date: |
Sat, 18 Jun 2005 10:22:02 +0800 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) |
Sacha Chua <address@hidden> writes:
> (defun planner-action-lock-follow-name-at-point (&optional other-window)
...
> (when refresh-buffer
> (when make-link-p
> (emacs-wiki-insert-backlink parent-name parent-backlink))
> ;; todo: is with-current-buffer necessary here?
> (with-current-buffer newbuf
> (add-hook 'after-save-hook
> 'emacs-wiki-refresh-buffers-once t t)
> ;; save the new file to avoid another backlink if the
> ;; buffer is visited again before being saved
> (when (or make-link-p
> (and (null file)
> (not parent-allowed-backlink-p)))
> ;; set modified status to t: pages with excluded
> ;; parents may not be modified, but we want to save
> ;; anyway
> (set-buffer-modified-p t)
> (save-buffer))))))))))
Whoops, probably shouldn't have refresh-buffer any more. Please remove
that segment. =) You can find the updated version on
http://sacha.free.net.ph/notebook/wiki/2005.06.18.php
--
Sacha Chua <address@hidden> - open source geekette
http://sacha.free.net.ph/ - PGP Key ID: 0xE7FDF77C
interests: emacs, gnu/linux, personal information management, CS ed
sachac on irc.freenode.net#emacs . YM: sachachua83