annotate .dir-locals.el @ 19647:e8e3a89fa370

Fix colormap functions when N is not of class double (bug #44070) * autumn.m, bone.m, cool.m, copper.m, cubehelix.m, gray.m, hsv.m, ocean.m, rainbow.m, spring.m, summer.m, winter.m: cast N to double since in this colormap functions, N is used directly used in the operations and ends up casting colormap to something else. Note that a colormap MUST be of class double. Also, if N is an integer class, all values in colormap end up 0 or 1. Also simplify code for input checking by declaring default on function signature line. * flag.m, gmap40.m, hot.m, jet.m, lines.m, pink.m, prism.m, white.m: simplify input check like the other colormap functions. * test/colormaps.tst: add new test file to test all colormaps at once. * test/Makefile.am: add new test file to build system. used to create the colormap and if less
author Carnë Draug <carandraug@octave.org>
date Fri, 23 Jan 2015 15:37:56 +0000
parents 9ff04de067ce
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
13105
3d7a4a2d9cef Make .h files open in c++-mode in Emacs; make sure gnu style is set for C mode
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 9966
diff changeset
1 ((nil .
3d7a4a2d9cef Make .h files open in c++-mode in Emacs; make sure gnu style is set for C mode
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 9966
diff changeset
2 ((c-file-style . "gnu")
3d7a4a2d9cef Make .h files open in c++-mode in Emacs; make sure gnu style is set for C mode
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 9966
diff changeset
3 (indent-tabs-mode . nil)
3d7a4a2d9cef Make .h files open in c++-mode in Emacs; make sure gnu style is set for C mode
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 9966
diff changeset
4 (fill-column . 72)
17588
9ff04de067ce improve .dir-locals.el
Rüdiger Sonderfeld <ruediger@c-plusplus.de>
parents: 13114
diff changeset
5 (eval . (when (and (buffer-file-name)
9ff04de067ce improve .dir-locals.el
Rüdiger Sonderfeld <ruediger@c-plusplus.de>
parents: 13114
diff changeset
6 (string-match-p "\\.h\\'" (buffer-file-name))
9ff04de067ce improve .dir-locals.el
Rüdiger Sonderfeld <ruediger@c-plusplus.de>
parents: 13114
diff changeset
7 (not (string-match-p "/gnulib/" (buffer-file-name))))
9ff04de067ce improve .dir-locals.el
Rüdiger Sonderfeld <ruediger@c-plusplus.de>
parents: 13114
diff changeset
8 (c++-mode)
9ff04de067ce improve .dir-locals.el
Rüdiger Sonderfeld <ruediger@c-plusplus.de>
parents: 13114
diff changeset
9 (c-set-style "gnu")))))
9966
d4dab9605c49 correctly set indent-tabs-mode for ChangeLogs and Makefiles in .dir-locals.el
John W. Eaton <jwe@octave.org>
parents: 9933
diff changeset
10 (change-log-mode . ((indent-tabs-mode . t)))
d4dab9605c49 correctly set indent-tabs-mode for ChangeLogs and Makefiles in .dir-locals.el
John W. Eaton <jwe@octave.org>
parents: 9933
diff changeset
11 (makefile-mode . ((indent-tabs-mode . t))))