| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4916 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
See email below.
n 1/11/07, Hans Halvorson <hhalvors@princeton.edu> wrote:
> I have been talking with the maintainers of Tramp (remote file editing
> over ssh for Emacs) about how to get rst-compile (in rst.el) to work
> with Tramp's remote compilation capabilities. The results of this
> discussion are pasted in below. Might rst.el be modified to make it
> compatible with Tramp?
>
> Thanks,
> Hans Halvorson
>
> [From Michael Albinus:]
>
> > [From Hans Halvorson:]
> >
> > I have pasted in below the definition of the "rst-compile" in rst.el.
> > > The problem is with the call to "rst-compile-find-conf" in the first
> > > let clause. This function tries to search for a file called
> > > "docutils.conf" in all directories above the directory of the current
> > > buffer. I do not know if that function is strictly incompatible with
> > > Tramp, or whether it just takes a very long time to search on some
> > > remote hosts. But I have waited for up to two minutes after calling
> > > rst-compile before pressing C-g to cancel.
>
> > I've modified the code slightly:
>
> > (let ((file-name "docutils.conf")
> > (buffer-file "/ssh:localhost:~/.emacs"))
> > ;; Move up in the dir hierarchy till we find a change log file.
> > (let ((dir (file-name-directory buffer-file)))
> > (while (and (or (not (string= "/" dir)) (setq dir nil) nil)
> > (not (file-exists-p (concat dir file-name))))
> > (message dir)
> > ;; Move up to the parent dir and try again.
> > (setq dir (expand-file-name (file-name-directory
> > (directory-file-name
> > (file-name-directory dir))))) )
> > (or (and dir (concat dir file-name)) nil)
> > ))
>
> > If you evaluate the code, you'll see something like this in *Messages*:
>
> > Mark set
> > /ssh:albinus@localhost:~/
> > /ssh:albinus@localhost:/home/albinus/
> > /ssh:albinus@localhost:/home/
> > /ssh:albinus@localhost:/ [340 times]
> > Quit
>
> > The point is that the iteration goes via upper directories, and an
> > upper directory is computed as
>
> > (file-name-directory
> > (directory-file-name
> > (file-name-directory dir)))
>
> > That is correct, but for "/ssh:albinus@localhost:/" the upper directory
> > is "/ssh:albinus@localhost:/" again. The stop condition (string= "/" dir)
> > does not match in case of remote files.
>
> > I fear, Tramp cannot solve the problem; rst.el must take remote files
> > into account.
Yes.
> [From Kai Grossjohann]
>
> > rst.el could stop when X and (directory-file-name (file-name-directory
> > (directory-file-name X))) are equal. That would work whether the
> > "root" directory is "/" or "C:/" (say) or "/ssh:foo:/".
>
> > What do people think?
I think Kai is a genius, as always.
Yes.
I've made the change, see path below, can you test with tramp?
thx
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4879 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4749 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
| |
recognized by rst-toc (thanks to zengjie) and rst-adjust
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4747 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
| |
not just as an installation instruction
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4746 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4745 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4744 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
|
|
| |
empty first line, like this one:
..
multi line comment
(first line empty)
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4743 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4700 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4699 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4680 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4655 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
| |
collapsed Author and Contact fields;
use canonical email addresses for David and Felix;
(I have reviewed the diff)
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4564 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
| |
set svn properties
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4563 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
| |
appears before it: "Word:"
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4560 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
| |
automatic filling
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4558 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4554 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
| |
Updated documentation correspondingly.
Try it with ``C-c p e``.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4545 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
|
| |
to take into account the preceding lines in order to figure
out what the appropriate indentation is, depending on
the presence of bulleted lists or enumerated list items or
rest directives.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4536 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4518 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4517 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
| |
decorations of a file.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4509 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
| |
Some of the variables we depend on for rst-compile
are defined in it, and some people who did not
require 'compile were having problems.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4366 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4349 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4334 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4333 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4232 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4181 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4179 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
| |
updated docs & refs.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4163 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4156 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4100 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4091 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4077 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4073 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4072 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4071 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
| |
removed stuff for filling quoted text -- it breaks for trailing
quote signs and after all that's what message-mode is for
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4069 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
| |
- Added constants for paragraph-{start,separate}
- Fixed bug with rst-toc when the file was empty.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4050 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4023 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4014 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
feature: we now have a prefix-map, which is bound to 'C-c p',
so the 'C-x p XXXX' commands are all for the rst.el file
functions. I left a few bindings:
* C-= is still there, because it is the single most useful
command and it should be invoked with one key (you can get to
it with 'C-c p a' too).
* I moved 'C-M-{' to 'C-c n' or 'C-c p n' and did the same for
the forward movement commands.
* 'C-c C-l' and 'C-c C-r' have been kept, since they have a
similar role than those bindings have in progmodes.
- I removed all the bindings from 'C-x ...' prefix map, since we
should be using the mode-specific map, which is 'C-c ...'. I'm
also now using the mode-prefix-map variable, so people who have
rebound theirs will get the benefits of their customization.
- Started defining some abbrevs, e.g. 'con' for ''.. contents::'
- Changed a lot of 'if's to 'when' and 'unless' clauses.
- I added a function to find the node within the section subtree
where the cursor lives. This function is used to compute the
desired location of point in the toc table, which fixes a bug
with the cursor being off when there were missing nodes.
- The toc insertion now uses the insertion point to determine
where to start rendering the TOC. This fixes a problem with
guessing the titles and subtitles and heuristically removing
them, simplifies the rst-toc-insert function and this new
choices automatically supports local tocs.
- Fixed the shifting functions to use markers, so that they can
be used repeatedly with my repeat-repeatable-command advice.
This just makes the functions more robust.
- Added an option to automatically fill on shifting a region left
or right (this needs more work).
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4004 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3994 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3990 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3989 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
| |
multiple toolsets. The group now starts with
rst-compile and the function rst-compile replaces
rst-html-compile.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3988 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3985 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3983 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If you are using it, this will most certainly affect you, here are
the list of changes:
1. I moved the contents of restructuredtext.el, rst-mode.el and
rst-html.el into a single file, named rst.el, and removed the old
files. You can remove the old files from your load-path and
replace them with rst.el, the old files are to be considered
OBSOLETE from now (2005-10-30). All new contents will go to
rst.el.
2. All the rest-* function names from restructuredtext.el have been
RENAMED to rst-* (to be consistent with the code that was in
rst-mode.el). Almost all the contents of rst.el now start with
rst-.
3. rst-text-mode-hook has been renamed to rst-text-mode-bindings.
Because it is not a hook, but rather a function to be bound to a
hook. This was confusing and is now following the general emacs
conventions. This will affect you if you were enabling the
adjusting and toc functions.
4. I removed the rst-html-stylesheet and the simpler rst-html-compile
function. It was replaced by the implementation of
rst-html-html-comple-with-conf, which is more generic, and which
now also uses the rst-html-options.
In addition, I wrote a document that describes how to use all the
features included in rst.el, because many emacs users I meet are not
aware of them. You will be able to find it under
docs/user/emacs.txt. I linked to it from the index page.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3981 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|