Mercurial > hg > octave-nkf
annotate scripts/miscellaneous/version.m @ 20296:23fb65b45d8c
do not call custom editor at startup and when debugging (bug #44701)
* file-editor.cc (call_custom_editor): return with true but without opening
a file;
(empty_script): do not open an empty script in the cutom editor
at startup
author | Torsten <ttl@justmail.de> |
---|---|
date | Fri, 17 Apr 2015 19:55:24 +0200 |
parents | 4197fc428c7d |
children |
rev | line source |
---|---|
19898
4197fc428c7d
maint: Update copyright notices for 2015.
John W. Eaton <jwe@octave.org>
parents:
19379
diff
changeset
|
1 ## Copyright (C) 1994-2015 John W. Eaton |
2313 | 2 ## |
3 ## This file is part of Octave. | |
4 ## | |
5 ## Octave is free software; you can redistribute it and/or modify it | |
6 ## under the terms of the GNU General Public License as published by | |
7016 | 7 ## the Free Software Foundation; either version 3 of the License, or (at |
8 ## your option) any later version. | |
2313 | 9 ## |
10 ## Octave is distributed in the hope that it will be useful, but | |
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 ## General Public License for more details. | |
14 ## | |
15 ## You should have received a copy of the GNU General Public License | |
7016 | 16 ## along with Octave; see the file COPYING. If not, see |
17 ## <http://www.gnu.org/licenses/>. | |
861 | 18 |
3301 | 19 ## -*- texinfo -*- |
20 ## @deftypefn {Function File} {} version () | |
19379 | 21 ## Return the version number of Octave as a string. |
12208
9611014e7cf1
Add function compare_versions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
22 ## |
13929
9cae456085c2
Grammarcheck of documentation before 3.6.0 release.
Rik <octave@nomad.inbox5.com>
parents:
12345
diff
changeset
|
23 ## This is an alias for the function @w{@env{OCTAVE_VERSION}} provided for |
16806
ab0454713ded
doc: Remove trailing characters after @seealso macro in version.m (bug #39307).
Rik <rik@octave.org>
parents:
14363
diff
changeset
|
24 ## compatibility. |
19379 | 25 ## @seealso{OCTAVE_VERSION, ver} |
3301 | 26 ## @end deftypefn |
861 | 27 |
2314 | 28 ## Author: jwe |
29 | |
2311 | 30 function vs = version () |
861 | 31 |
32 if (nargin != 0) | |
904 | 33 warning ("version: ignoring extra arguments"); |
861 | 34 endif |
35 | |
36 vs = OCTAVE_VERSION; | |
37 | |
38 endfunction | |
7411 | 39 |
14363
f3d52523cde1
Use Octave coding conventions in all m-file %!test blocks
Rik <octave@nomad.inbox5.com>
parents:
14138
diff
changeset
|
40 |
f3d52523cde1
Use Octave coding conventions in all m-file %!test blocks
Rik <octave@nomad.inbox5.com>
parents:
14138
diff
changeset
|
41 %!assert (ischar (version ())) |
f3d52523cde1
Use Octave coding conventions in all m-file %!test blocks
Rik <octave@nomad.inbox5.com>
parents:
14138
diff
changeset
|
42 %!assert (version (), OCTAVE_VERSION) |
7411 | 43 |
44 %!warning version (1); | |
45 |