+2015-04-05 Eli Zaretskii <eliz@gnu.org>
+
+ * ses.el (ses-sym-rowcol): Move up, before the first use, to avoid
+ byte-compiler warnings.
+
2015-04-05 Alan Mackenzie <acm@muc.de>
* jit-lock.el (jit-lock-after-change): Widen the buffer only
(declare (debug t))
`(ses-cell--references ,(if col `(ses-get-cell ,row ,col) row)))
+(defmacro ses-sym-rowcol (sym)
+ "From a cell-symbol SYM, gets the cons (row . col). A1 => (0 . 0). Result
+is nil if SYM is not a symbol that names a cell."
+ `(let ((rc (and (symbolp ,sym) (get ,sym 'ses-cell))))
+ (if (eq rc :ses-named)
+ (gethash ,sym ses--named-cell-hashmap)
+ rc)))
+
(defun ses-cell-p (cell)
"Return non-nil if CELL is a cell of current buffer."
(and (vectorp cell)
"Return the default printer for column COL."
`(aref ses--col-printers ,col))
-(defmacro ses-sym-rowcol (sym)
- "From a cell-symbol SYM, gets the cons (row . col). A1 => (0 . 0). Result
-is nil if SYM is not a symbol that names a cell."
- `(let ((rc (and (symbolp ,sym) (get ,sym 'ses-cell))))
- (if (eq rc :ses-named)
- (gethash ,sym ses--named-cell-hashmap)
- rc)))
-
(defun ses-is-cell-sym-p (sym)
"Check whether SYM point at a cell of this spread sheet."
(let ((rowcol (get sym 'ses-cell)))