Commit Graph

77 Commits

Author SHA1 Message Date
ReneSchmelzer ef4eecefae Rsch/indentation/multiple start regexs (#88)
* fix version

* split indentation rexgexs

Split the regexs as a preparation for improvement and enhancement.
No explicit enhancement was intended, although the
`plantuml-indent-regexp-block-start' covers more blocks now.

* enhance and test regexs for groups

Changed `plantuml-indent-regexp-group-start' to cover all cases
mentioned on sequence diagram page of the plantuml website. Added
tests for all elements-with and without label (text following the
keyword).

* add support and test for box/end box blocks

* indentation test for a nested interface block

* correction of () at end of file

* indentation test for deployment diagram

* file “Cask”: added dependency to dash

* indentation tests for diagram commons

* add indentation tests for component diagrams

* regex corrections and added indentation tests for class diagrams

correct indentation regexs found by tests for class diagrams

* add indentation tests for object diagrams

* add indentation tests for state diagrams

* enhance indentation class diagram test: abstract class and interface

* move indentation tests to diagram test files

* mv test/plantuml-indentation-test.el -> test/plantuml-indentation-basics-test.el

* add indentation sequence diagram tests and mv basics tests to diagram tests

* add indentation for ref-groups

* improved indentation for ref-groups

* support indentation for activity diagrams - current/old style

* indentation support for notes

* rm not used regexs

* indentation support for plantuml macros

* correction: … → etc.
2019-03-16 10:53:17 +01:00
Carlo Sciolla 366ecb605a
Support block indentation for abstract classes
Fixes #83
2019-01-08 23:06:58 +01:00
Carlo Sciolla de5d9b3dd7
Keep docu for new changes 2019-01-08 22:51:24 +01:00
Carlo Sciolla 56d668c54e
Added extra keywords to the indentation block start regex
Keywords added:
- `folder`
- `frame`
- `cloud`

Fixes #78
2019-01-08 22:47:51 +01:00
Carlo Sciolla 0374482cf7
Added new version note 2019-01-07 22:25:02 +01:00
ReneSchmelzer ae97b806bc Rsch/indentation/fix and enhance (#85)
* fixed indentation code and added de-/activate to indentation

* added tests for indentation changes

* changed indentation code and tests

- more changes to plantuml-indent-regexs
- added more test
- changed function to determine indentation level and tests accordingly
- changed plantuml-indent-line and tests accordingly
- changed test names and doc strings to be more consistent

* more indentation tests, corrected regex for par block

- the par block usually does not have any label
- added database to start regex and added a test
- added block tests
2019-01-07 21:23:04 +01:00
niklascarlsson 49f707b20c Rewrite start-process to remove eval-and-compile (#82)
Wrapping the defcustoms in eval-and-compile made the code compileable
but not customizable for the user.

Rewriting the start-process into a function instead of a macro makes it
possible to remove the eval-and-compiles.
2019-01-07 21:15:41 +01:00
Carlo Sciolla 82ab084c86
Proper changelog needs to include indentation support 2018-08-16 12:12:47 +02:00
Alpha TAN f416fe76f2
1) Fixed the comiling error when installing with melpa, surround the `defcustom-list` with `(eval-and-compile ...)` block ; 2) update the version number to 1.2.7 ; 2018-08-16 12:03:29 +02:00
Carlo Sciolla 7d09b36773
Remove all compilation warnings 2018-08-16 12:02:30 +02:00
Carlo Sciolla 6c0455b5e2
Make indentation work 2018-08-16 11:32:44 +02:00
Raymond Huang da2c301c1a Add autoindent support (#75)
Add indent-line implementation
2018-08-14 23:08:29 +02:00
Carlo Sciolla 3df9bf31a7
Remove support for emacs 24 2018-08-14 21:59:34 +02:00
Alpha TAN 2c1d5a33a6 1) Introduced custom variable `plantuml-jar-args' to control which arguments are passed to PlantUML jar ; 2) Fix the warning of failing to specify types of 'defcustom' variables ; 2018-07-17 15:03:32 +08:00
Carlo Sciolla 5a2e8d0dd2
Merged with develop 2017-08-19 19:33:36 +02:00
Carlo Sciolla 445d853211
Extra docs for latest releases 2017-08-19 19:31:30 +02:00
Carlo Sciolla 3e017a1a3a
Merge branch 'fix/51' into develop 2017-08-19 19:23:25 +02:00
Carlo Sciolla da9d39c947
#51 Evaluate the `plantuml-java-args` defcustom at compile time
`defcustom`s are not executed at byte-compile time. Wrapping the
`defcustom` in an `eval-and-compile` form does the trick.
2017-08-19 19:20:04 +02:00
Carlo Sciolla 4ba8359045
#60 Upgrading license to GPLv3+ 2017-08-18 12:17:57 +02:00
Carlo Sciolla ecb4428218
#60 Upgrading license to GPLv3+ 2017-08-18 12:16:12 +02:00
Carlo Sciolla 6a210b7bb1
Try to test the install process 2017-07-08 11:35:40 +02:00
Carlo Sciolla d24e464877
Prepare for release v1.2.3 2016-12-25 21:15:52 +01:00
Carlo Sciolla 4bdff5676d
#50 use UTF-8 in `start-process`; test against a txt file generated by PlantUML instead of a hand-made one 2016-12-25 21:12:58 +01:00
Carlo Sciolla 2e9dc3acc1
prepare for v1.2.2 2016-12-25 21:10:59 +01:00
Carlo Sciolla 4931a52522
prepare for v1.2.1 2016-12-25 21:10:59 +01:00
Carlo Sciolla 7c7e620810
Prepping for v1.2.0 2016-12-25 21:10:59 +01:00
Carlo Sciolla 1db264f540
Prepare for v1.1.1 2016-12-25 21:10:59 +01:00
Carlo Sciolla 73442f1222 Merge pull request #47 from 7mamu4/add-interactive-parameter-for-region
plantuml-preview-region: add interactive parameter for region
2016-12-25 21:03:29 +01:00
Carlo Sciolla eb380bac56
Prepare for release v1.2.3 2016-12-25 20:42:24 +01:00
Carlo Sciolla b5e880790b
#50 use UTF-8 in `start-process`; test against a txt file generated by PlantUML instead of a hand-made one 2016-12-25 19:31:01 +01:00
Matthias Müller e140eba7b1 plantuml-preview-region: add interactive parameter for region
plantuml-preview-region:
Add the begin and end of the region to the parameters of function
This allows using the function programatically
without modification of the mark.

plantuml-preview:
Adjust plantuml-preview-region function call.
2016-11-12 01:48:47 +01:00
Carlo Sciolla 87417ad75b
prepare for v1.2.2 2016-11-11 11:05:24 +01:00
Carlo Sciolla 676f4b6040
Merge branch 'develop' 2016-11-11 11:03:54 +01:00
Carlo Sciolla 5cb8d2336a
merged with current develop branch 2016-11-11 11:03:04 +01:00
Carlo Sciolla ba7420b587
prepare for v1.2.1 2016-11-11 09:19:47 +01:00
Carlo Sciolla 76a96af6e8
merged develop 2016-11-11 09:17:16 +01:00
Carlo Sciolla 673e524443
Expand file names before any `shell-quote-argument` happens to support ~ in paths 2016-11-11 09:12:58 +01:00
Carlo Sciolla 64af0f1cc3
Untabified 2016-11-11 08:53:52 +01:00
Carlo Sciolla 2716f27034 Prepping for v1.2.0 2016-11-09 12:21:12 +01:00
Carlo Sciolla 408ea2d48b Merge branch 'pr/42' into develop 2016-11-09 12:19:48 +01:00
Carlo Sciolla f796d9d73b Prepare for v1.1.1 2016-11-08 12:33:24 +01:00
Your Name 5629fe1ce7 Fixed regexp match pattern to truely match suffixes .plantuml .pum .plu. 2016-11-08 08:26:06 +01:00
Matthias Müller 9c509f879d Add plantuml-preview-current-block
Add a function that allows to preview the current block.
The current block is defined to be the region beginning
at previous "@startuml" and ending at "@enduml".
The prefix argument is handled according to the existing
prview functions.
2016-10-26 01:03:37 +02:00
Your Name 6f25902e84 Merge remote-tracking branch 'upstream/develop' into cygwin-native-java 2016-10-23 07:33:43 -05:00
Your Name 47c7e7c67d Merge remote-tracking branch 'upstream/develop' into windows 2016-10-23 07:31:11 -05:00
Your Name 9c50cd7103 Replaced shell-command with call-process. this fixes a couple issues: (1) when the mode is first loaded and plantuml-init is executed, Emacs window is split into two, which is not necessary. (2) under cygwin emacs and windows native Java combination, shell-quote-argument is cauisng file path format change and making Java unable to load jar file. file-exists-p is also skipped if cygwin emacs is running. 2016-10-22 14:15:22 -05:00
Your Name a4a017008b Fixed regexp match pattern to truely match suffixes .plantuml .pum .plu. 2016-10-22 09:13:52 -05:00
Your Name bfdf6ba04a Removed shell-quote-argument for Windows native Emacs to load jar file properly. 2016-10-22 09:06:15 -05:00
Carlo Sciolla 2b7d796886 Fixed plantuml invocation 2016-10-18 19:25:15 +02:00
Carlo Sciolla 0011cae6a4 Fix new version number in preamble 2016-10-18 17:01:46 +02:00