view .dir-locals.el @ 18899:3d9e503aea2c

Update image "x/ydata" when "cdata" is changed (bug #42121) * graphics.in.h (image::properties): add two hidden properties "xdatamode" and "ydatamode" * graphics.in.h (image::properties): modify properties "xdata" and "ydata" so that their respective *mode is updated * graphics.in.h (image::properties::update_cdata): setting "cdata" updates "x/ydata" when "x/ydatamode" is "auto" * graphics.in.h (image::properties::update_x/ydata): setting "x/ydata" to empty matrix updates "x/ydata" to [1 npix] and changes "x/ydatamode" to "auto" * graphics.in.h (image::properties::auto_xdata (void), image::properties::auto_ydata (void)): new functions to compute auto x/ydata * image.m (__img__): don't replace empty "x/ydata" in order to use new behavior * image.m: add test for bug #42121
author Pantxo Diribarne <pantxo.diribarne@gmail.com>
date Mon, 14 Apr 2014 22:53:44 +0200
parents 9ff04de067ce
children
line wrap: on
line source

((nil .
      ((c-file-style . "gnu")
       (indent-tabs-mode . nil)
       (fill-column . 72)
       (eval . (when (and (buffer-file-name)
                          (string-match-p "\\.h\\'" (buffer-file-name))
                          (not (string-match-p "/gnulib/" (buffer-file-name))))
                 (c++-mode)
                 (c-set-style "gnu")))))
 (change-log-mode . ((indent-tabs-mode . t)))
 (makefile-mode . ((indent-tabs-mode . t))))