1. 20 Nov, 2018 2 commits
    • Stefan Monnier's avatar
      * lisp/calc/calc-alg.el: Use lexical-binding and silence warnings · e1b2c21b
      Stefan Monnier authored
      * lisp/calc/calc-alg.el: Use lexical-binding and silence warnings.
      (math-defsimplify): Let-bind 'expr' instead of math-simplify-expr.
      Adjust all users.
      (math-simplify-expr): Don't declare any more.
      (math--simplify-divide-expr): New dynbound var.
      (math-simplify-divide): Bind it when needed.
      (math-simplify-divisor): Use it instead of math-simplify-expr.
      (math-simplify-divisor): Only bind math-simplify-divisor-[nd]over
      around the calls to math-simplify-one-divisor.
      (math-expr-subst, math-is-polynomial): Don't use dynbound vars as
      formal arguments.
      (math-polynomial-base): Move binding of math-poly-base-pred.
      Don't bind math-poly-base-top-expr any more...
      * lisp/calc/calc-poly.el (math-total-polynomial-base): Bind it here instead!
      
      * lisp/calc/calc-units.el: Use lexical-binding and silence warnings.
      Adjust to the new 'expr' name in math-defsimplify.
      (math-find-base-units, math-to-standard-units, math-convert-units):
      Don't use dynbound vars as formal arguments.
      (math-simplify-expr): Don't declare any more.
      e1b2c21b
    • Robert Pluim's avatar
      Remove space from end of coding cookie · 5007c23a
      Robert Pluim authored
      * lisp/bookmark.el (bookmark-insert-file-format-version-stamp):
      Remove unnecessary space from end of coding cookie.
      5007c23a
  2. 19 Nov, 2018 12 commits
    • Eli Zaretskii's avatar
      Fix last change · 008bc1cb
      Eli Zaretskii authored
      * lib-src/emacsclient.c (start_daemon_and_retry_set_socket)
      [!WINDOWSNT]: Condition usage of socket_name on
      NO_SOCKETS_IN_FILE_SYSTEM being undefined.
      008bc1cb
    • Eli Zaretskii's avatar
      Avoid compiler warning in emacsclient.c · 57d5c14d
      Eli Zaretskii authored
      * lib-src/emacsclient.c (socket_name): Define only if
      NO_SOCKETS_IN_FILE_SYSTEM is not defined, to avoid a compiler
      warning.
      57d5c14d
    • Paul Eggert's avatar
      emacsclient.c: file name component fixes · 0e3b2458
      Paul Eggert authored
      * lib-src/emacsclient.c: Include <dosname.h>.
      (file_name_absolute_p): Remove, as a code duplicate.
      All uses replaced by IS_ABSOLUTE_FILE_NAME.
      (set_local_socket): Don’t treat \ as a file name separator
      on GNU and POSIX hosts.
      0e3b2458
    • Paul Eggert's avatar
      emacsclient.c: reindent to fit in 80 · 736f1b36
      Paul Eggert authored
      * lib-src/emacsclient.c: Reindent slightly.
      736f1b36
    • Paul Eggert's avatar
      emacsclient.c: use C99 better · b944e886
      Paul Eggert authored
      * lib-src/emacsclient.c (get_current_dir_name)
      (send_to_emacs, set_tcp_socket, set_local_socket, main):
      Take advantage of C99 stmt before decl.
      b944e886
    • Paul Eggert's avatar
      emacsclient.c: use STDOUT_FILENO · 95ea5c25
      Paul Eggert authored
      * lib-src/emacsclient.c (find_tty, handle_sigcont, main):
      Use STDOUT_FILENO instead of fileno (stdout) or magic 1.
      95ea5c25
    • Paul Eggert's avatar
      emacsclient.c: use bool for boolean · 51f9c5a6
      Paul Eggert authored
      * lib-src/emacsclient.c (nowait, quiet, suppress_output, eval, tty)
      (decode_options, file_name_absolute_p, get_server_config)
      (strprefix, find_tty, set_socket, main):
      Use bool for boolean.
      (create_frame): New static var, replacing the old current_frame
      and with inverted sense, as this is clearer.
      51f9c5a6
    • Paul Eggert's avatar
      emacsclient.c: make identifiers more local · 9f47bb22
      Paul Eggert authored
      * lib-src/emacsclient.c (progname, main_argc, main_argv):
      (nowait, quiet, suppress_output, eval, current_frame, display):
      (alt_display, parent_id, tty, alternate_editor, socket_name):
      (server_file, tramp_prefix, emacs_pid, frame_parameters):
      (longopts, xstrdup, send_bufffer, sblen, emacs_socket):
      Now static.
      (SEND_BUFFER_SIZE, send_buffer, sblen):
      Now local to send_to_emacs.
      9f47bb22
    • Paul Eggert's avatar
      emacsclient.c: clean up preprocessing directives · 4a5034d8
      Paul Eggert authored
      * lib-src/emacsclient.c [WINDOWSNT]: Omit duplicate stdlib.h include.
      Include min-max.h.
      (EXIT_SUCCESS, EXIT_FAILURE, min): Remove; no longer needed.
      (AUTH_KEY_LENGTH, SEND_BUFFER_SIZE): Now constants instead of macros.
      4a5034d8
    • Ulrich Müller's avatar
      Update the calc units table · d3b1d5d2
      Ulrich Müller authored
      On 2018-11-16, the 26th meeting of the General Conference on Weights
      and Measures (CGPM) has redefined the International System of Units by
      adopting fixed values for the Planck constant, the elementary charge,
      the Boltzmann constant, and the Avogadro constant:
      https://www.bipm.org/utils/en/pdf/CGPM/Draft-Resolution-A-EN.pdf
      * lisp/calc/calc-units.el (math-standard-units): Update according
      to redefinition of the SI in 2018.
      d3b1d5d2
    • Stefan Monnier's avatar
      ca0f86e6
    • Stefan Monnier's avatar
      Remove uses of obsolete 'CUA' symbol property · 450beba3
      Stefan Monnier authored
      * lisp/emulation/cua-base.el (cua-scroll-up, cua-scroll-down):
      * lisp/progmodes/subword.el (subword-forward, subword-backward):
      * lisp/obsolete/crisp.el (crisp-home, crisp-end):
      Remove 'CUA' prop; not used any more.
      450beba3
  3. 17 Nov, 2018 3 commits
  4. 16 Nov, 2018 9 commits
  5. 15 Nov, 2018 5 commits
  6. 14 Nov, 2018 9 commits
    • Juri Linkov's avatar
      Isearch hit count. (Bug#29321) · 35a88c80
      Juri Linkov authored
      * lisp/isearch.el (isearch-lazy-count): New defcustom.
      (lazy-count): New defgroup.
      (lazy-count-prefix-format, lazy-count-suffix-format): New defcustom.
      (isearch-lazy-count-format): New function.
      (isearch-message-prefix, isearch-message-suffix): Use it.
      (isearch-lazy-highlight-window-start-changed)
      (isearch-lazy-highlight-window-end-changed)
      (isearch-lazy-count-current, isearch-lazy-count-total)
      (isearch-lazy-count-hash): New variables.
      (isearch-lazy-highlight-new-loop): Reset isearch-lazy-count-total
      and update isearch-lazy-count-current for isearch-message.
      (isearch-lazy-highlight-update): Run full-buffer loop for
      isearch-lazy-count.
      (isearch-lazy-highlight-buffer-update): Count isearch-lazy-count-total.
      Set isearch-lazy-count-current at the end.
      35a88c80
    • Eli Zaretskii's avatar
      Minor copyedits in documentation of HOME handling · 5fe81ebb
      Eli Zaretskii authored
      * etc/NEWS: Reword the recent entry regarding the change in
      how relative file names are interpreted in $HOME.
      
      * doc/emacs/cmdargs.texi (General Variables): Advise against
      using relative directory names in $HOME.
      5fe81ebb
    • Paul Eggert's avatar
      Fix probing for pre-1970 DST · b1bb7917
      Paul Eggert authored
      * lisp/calendar/cal-dst.el (calendar-next-time-zone-transition):
      Fix recently-introduced rounding bug when probing for DST
      transitions before 1970 (Bug#33380).
      b1bb7917
    • Paul Eggert's avatar
      Document recent change to HOME handling · 454f7923
      Paul Eggert authored
      * doc/emacs/cmdargs.texi (General Variables):
      * doc/emacs/custom.texi (Find Init):
      * doc/lispref/files.texi (File Name Expansion):
      * etc/NEWS: Document behavior when HOME is a relative file name.
      454f7923
    • Markus Triska's avatar
      Small documentation correction. · edcd6b72
      Markus Triska authored
      * doc/lispref/windows.texi (Textual Scrolling): In the description of
      scroll-up-aggressively, refer to scroll-down-aggressively instead of
      a recursive reference to scroll-up-aggressively.  (Bug#33369)
      edcd6b72
    • Eli Zaretskii's avatar
    • Eli Zaretskii's avatar
      Fix a thinko in fileio.c · fb2514f3
      Eli Zaretskii authored
      * src/fileio.c (get_homedir): Fix last change.  Suggested by
      Paul Eggert <eggert@cs.ucla.edu>.
      fb2514f3
    • Michael Albinus's avatar
      Fix Bug#33364 · 3287a7c0
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-parse-sconfig-group): Support also
      "Host host1 host2 ..." syntax.  (Bug#33364)
      3287a7c0
    • Juri Linkov's avatar
      New option vc-find-revision-no-save to not write revision to file · f561c6a1
      Juri Linkov authored
      * lisp/vc/vc.el (vc-find-revision-no-save): New defcustom (bug#33319).
      (vc-find-revision): Depending on vc-find-revision-no-save,
      call either vc-find-revision-no-save or vc-find-revision-save.
      (vc-find-revision-save): Rename from vc-find-revision.
      (vc-find-revision-no-save): New function.
      
      * lisp/vc/diff-mode.el (diff-find-source-location):
      Let-bind vc-find-revision-no-save to t.
      f561c6a1