summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* rst.el: included Riccardo patch for jit-lockblais2007-02-191-23/+49
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4916 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* rst.el: change to accomodate tramp.elblais2007-01-111-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* renamed testwiemann2006-09-161-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4749 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* headings containing only non-ASCII characters are nowwiemann2006-09-161-2/+2
| | | | | | 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
* (require 'font-lock) in emacs lisp code now, reuleaux2006-09-151-2/+3
| | | | | | | | 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
* installation instructions simplified, just (require 'font-lock)reuleaux2006-09-151-8/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4745 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* (require 'font-lock) added to the installation instructionsreuleaux2006-09-151-0/+8
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4744 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* correction for multiline comments, especially for comments with anreuleaux2006-09-151-1/+1
| | | | | | | | | | | | 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
* Applied patch from Denis Shaposhnikov for Xemacs portability. Thanks Denis.blais2006-08-241-2/+12
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4700 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Updated rst.el with new features for enumerating and bulleting lists of items.blais2006-08-241-41/+91
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4699 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added links to Emacs infogoodger2006-08-141-1/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4680 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Added several features to rst.el and started to checkdoc the sourceblais2006-07-111-238/+452
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4655 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* use $Id$ instead of $Date$ and $Revision$;wiemann2006-05-2112-54/+27
| | | | | | | | 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
* renamed README to README.txt;wiemann2006-05-214-3/+3
| | | | | | set svn properties git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4563 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Corrected funky behaviour of rst-shift-region when something like this ↵blais2006-05-171-1/+1
| | | | | | appears before it: "Word:" git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4560 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Added prefix args to shift region functions in emacs support to disable ↵blais2006-05-161-14/+24
| | | | | | automatic filling git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4558 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Committed fixes for rst.el from Felix commentsblais2006-05-151-14/+36
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4554 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Added an emacs function to easily create and remove line blocks.blais2006-05-131-3/+19
| | | | | | | | 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
* Significantly improved the rst-shift-region-* functions blais2006-05-121-33/+213
| | | | | | | | | | | 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
* typogoodger2006-04-261-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4518 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* improve -V/--version outputgoodger2006-04-261-2/+3
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4517 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Added new rst-straighten-decorations for emacs support, that redos all the ↵blais2006-04-191-14/+52
| | | | | | decorations of a file. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4509 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4371 ↵blais2006-03-031-5/+40
| | | | 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Now loading the 'compile module in rst.elblais2006-03-021-0/+3
| | | | | | | | | 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
* fixed #! linegoodger2006-02-261-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4349 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* updatedgoodger2006-02-031-0/+3
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4334 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* changed to GPLgoodger2006-02-031-27/+18
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4333 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* recognize empty commentswiemann2005-12-271-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4232 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* restored stylesheet-path setting; needed for the web sitegoodger2005-12-121-2/+4
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4181 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* rely on default settingsgoodger2005-12-111-1/+0
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4179 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Converted ``docutils/writers/support/`` into individual writer packages; ↵goodger2005-12-091-1/+1
| | | | | | updated docs & refs. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4163 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* merged branches/s5 changes r4011:4155 into trunk/docutilsgoodger2005-12-081-0/+26
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4156 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* fixed variable namesgoodger2005-11-251-3/+3
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4100 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fixed bug with TOC update when it is at the end of a file.blais2005-11-211-4/+5
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4091 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fixed bug with incorrect comparison of decorations and added comments.blais2005-11-191-26/+39
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4077 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* fixed rst-set-paragraph-separation, added rst-extra-paragraph-separategoodger2005-11-181-2/+6
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4073 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* fixed line wrappinggoodger2005-11-181-23/+41
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4072 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* restored paragraph start for enumerated listsgoodger2005-11-181-3/+3
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4071 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* use rst-set-paragraph-separation function for setting paragraph-start;wiemann2005-11-171-13/+8
| | | | | | | 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 default bindings for rst-compileblais2005-11-141-2/+19
| | | | | | | | - 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
* Added revision field to rst.el since it is likely it will be copied aroundblais2005-11-091-0/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4023 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fixed minor bug in rst-toc.blais2005-11-081-3/+4
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4014 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* - Changed the default bindings due to the explosion of newblais2005-11-071-165/+273
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Updated rst.el with rst-mode.el 0.2.9blais2005-11-011-223/+369
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3994 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* minor edits for consistency, typos, links, etc.goodger2005-10-311-10/+9
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3990 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fixed minor bug with underlining function invoked at the end of the document.blais2005-10-311-1/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3989 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Changed rst-html-compile to be generic and supportblais2005-10-301-578/+593
| | | | | | | | | 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
* Minor changes to comments in rst.el for auto-gen of my web page.blais2005-10-301-23/+45
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3985 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added missing targetwiemann2005-10-301-1/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3983 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* I have cleaned up all the emacs support code for restructured text.blais2005-10-306-1152/+1090
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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