93af0ec925
Magnus Henoch writes: > This patch has been sitting in my tree for a while... It's a fix to > org-map-dblocks, to make it use save-excursion instead of remembering > position values. I need this since I have a dblock function that > asynchronously updates dblocks from HTTP responses, and some dblocks > ended up getting updated twice or thrice. [...] > My dblock-write function calls url-retrieve, to asynchronously retrieve an > HTML page. The callback function I pass to url-retrieve will then fill > in the information I need into the dynamic block. > > So in the following case: > > * Find start of dblock 1, store as pos > * Make HTTP request for dblock 1 > * Go back to pos > * Find end of dblock 1 > * Find start of dblock 2, store as pos > * Make HTTP request for dblock 2 > * Asynchronous event: HTTP response for dblock 1 arrives, insert lots of > data in dblock 1 > * Go back to pos > * Find end of dblock 2 > > the last step will actually find the end of dblock 1, if the amount of > data inserted in dblock 1 is great enough that pos suddenly points > inside it. (Then it will of course find dblock 2 again, request its HTML > page again, and thus insert the data twice.) > > An equivalent fix would be to make pos a marker instead. |
||
---|---|---|
BUGFIXING | ||
EXPERIMENTAL | ||
ORGWEBPAGE | ||
UTILITIES | ||
contrib | ||
doc | ||
lisp | ||
xemacs | ||
.dir-settings.el | ||
.gitignore | ||
ChangeLog | ||
Makefile | ||
README | ||
README_DIST | ||
README_GIT | ||
request-assign-future.txt |
README
This is the Emacs Org project, an emacs subsystem for organizing your life The homepage of Org is at http://orgmode.org This distribution contains: README This file. README_DIST The README file for the distribution (zip and tar files) README_GIT Information about the git repository and how to contribute to Org-mode development. lisp/ Directory with all the Emacs Lisp files that make up Org. doc/ The documentation files. org.texi is the source of the documentation, org.html and org.pdf are formatted versions of it. xemacs/ The xemacs directory contains special code for XEmacs users, in particular a port of the GNU Emacs outline.el to XEmacs. Org-mode does not work under XEmacs without this file installed. It did until version 4.37, but no longer. contrib/ A directory with third-party additions for Org. Some really cool stuff is in there. ORGWEBPAGE/ Directory with the source files for the orgmode.org web page. ChangeLog The standard ChangeLog file. Makefile The makefile to compile and install Org, and also for maintenance tasks. request-assign-future.txt The form that contributors have to sign and get processed with the FSF before contributed changes can be integrated into the Org core. All files in this distribution except the CONTRIB directory have copyright assigned to the FSF. EXPERIMENTAL Experimental code, not necessarily FSF copyright.