1. 15 Jun, 2014 5 commits
    • Stefan Monnier's avatar
      * lisp/ses.el: Miscellaneous cleanups; use lexical-binding; avoid add-to-list. · df5703a0
      Stefan Monnier authored
      (ses-localvars): Remove ses--local-printer-list, unused.
      (ses--metaprogramming): New macro.  Use it to defvar variables.
      (ses-set-localvars): Simplify.
      (ses--locprn, ses-cell): Use defstruct.  Change ses-cell's
      property-list into an alist.
      (ses-locprn-get-compiled, ses-locprn-compiled-aset)
      (ses-locprn-get-def, ses-locprn-def-aset, ses-locprn-get-number):
      Remove; use defstruct accessors/setters instead.
      (ses-cell-formula-aset, ses-cell-printer-aset)
      (ses-cell-references-aset): Remove, use setf instead.
      (ses--alist-get): New function.
      (ses-cell-property): Rename from ses-cell-property-get and rewrite.
      Use an alist instead of a plist and don't do move-to-front since the
      list is always short.
      (ses-cell-property-get-fun, ses-cell-property-delq-fun)
      (ses-cell-property-set-fun, ses-cell-property-set)
      (ses-cell-property-pop-fun, ses-cell-property-get-handle)
      (ses-cell-property-handle-car, ses-cell-property-handle-setcar): Remove.
      (ses--letref): New macro.
      (ses-cell-property-pop): Rewrite.
      (ses--cell): Rename from ses-cell and make it into a function.
      Make `formula' fallback on `value' if nil.
      (ses--local-printer): Rename from ses-local-printer and make it into
      a function.
      (ses-set-cell): Turn it into a macro so finding the accessor from the
      field name is done at compile time.
      (ses-repair-cell-reference-all): Test presence of `sym' rather than
      `ref' before adding `sym' to :ses-repair-reference.
      (ses-calculate-cell): Use ses--letref rather than
      (ses-write-cells): Use a single prin1-to-string.
      (ses-setter-with-undo): New function.
      (ses-aset-with-undo, ses-set-with-undo): Rewrite using it.
      (ses-unset-with-undo): Remove.
      (ses-load): Prefer apply' over `eval'.
      (ses-read-printer, ses-set-column-width): Use standard "(default
      foo)" format.
    • Glenn Morris's avatar
    • Glenn Morris's avatar
      Use `make -C' rather than `cd && make' · 0d9f8137
      Glenn Morris authored
      * Makefile.in: Use `make -C' rather than `cd && make' throughout.
      * lib-src/Makefile.in (../lib/libgnu.a): Use `make -C' rather than `cd && make'.
      * lisp/Makefile.in (leim, semantic): Use `make -C' rather than `cd && make'.
      * lwlib/Makefile.in ($(globals_h)): Use `make -C' rather than `cd && make'.
      * src/Makefile.in: Use `make -C' rather than `cd && make' throughout.
    • Glenn Morris's avatar
      Parallelize clean rules using GNU make features · 0e6929ec
      Glenn Morris authored
      * Makefile.in: (submake_template): New definition.
      (mostlyclean_dirs, clean_dirs, distclean_dirs, maintainer_clean_dirs):
      New variables.
      (mostlyclean, clean, distclean, bootstrap-clean, maintainer-clean)
      (extraclean): Define using each subdirectory as a prequisite.
      * lib/Makefile.am (bootstrap-clean):
      * doc/emacs/Makefile.in (bootstrap-clean):
      * doc/lispintro/Makefile.in (bootstrap-clean):
      * doc/lispref/Makefile.in (bootstrap-clean):
      * doc/misc/Makefile.in (bootstrap-clean):
      * lib-src/Makefile.in (bootstrap-clean):
      * lwlib/Makefile.in (bootstrap-clean):
      * nextstep/Makefile.in (bootstrap-clean):
      * nt/Makefile.in (bootstrap-clean):
      * oldXMenu/Makefile.in (bootstrap-clean):
      New rules, for symmetry/simplicity.
      * lwlib/Makefile.in (mostlyclean, clean, distclean, maintainer-clean):
      * oldXMenu/Makefile.in (mostlyclean, clean, distclean, maintainer-clean, tags):
      Declare as PHONY.
    • Glenn Morris's avatar
  2. 14 Jun, 2014 8 commits
  3. 13 Jun, 2014 13 commits
  4. 12 Jun, 2014 13 commits
  5. 11 Jun, 2014 1 commit
    • Stefan Monnier's avatar
      * lisp/rect.el: Make it possible to move bounds past EOL or into TABs. · 7e74ad02
      Stefan Monnier authored
      (operate-on-rectangle): Use apply-on-rectangle.
      (rectangle--mark-crutches): New var.
      (rectangle--pos-cols, rectangle--col-pos, rectangle--point-col)
      (rectangle--crutches, rectangle--reset-crutches): New functions.
      (apply-on-rectangle): Obey crutches.  Avoid setq.
      Fix missing final iteration if end is at EOB&BOL.
      (rectangle-mark-mode-map): Add remap bindings for
      exchange-point-and-mark and char/line movements.
      (rectangle--*-char): New function.
      (rectangle-exchange-point-and-mark, rectangle-right-char)
      (rectangle-left-char, rectangle-forward-char)
      (rectangle-backward-char, rectangle-next-line)
      (rectangle-previous-line): New commands.
      (rectangle--place-cursor): New function.
      (rectangle--highlight-for-redisplay): Use it.  Use apply-on-rectangle.