1. 27 Jan, 2018 1 commit
    • Noam Postavsky's avatar
      Raise limit of regexp repetition (Bug#24914) · 559f1606
      Noam Postavsky authored
      * src/regex.h (RE_DUP_MAX): Raise limit to 2^16-1.
      * etc/NEWS: Announce it.
      * doc/lispref/searching.texi (Regexp Backslash): Document it.
      * test/src/regex-tests.el (regex-repeat-limit): Test it.
      * src/regex.h (reg_errcode_t): Add REG_ESIZEBR code.
      * src/regex.c (re_error_msgid): Add corresponding entry.
      (GET_INTERVAL_COUNT): Return it instead of the more generic REG_EBADBR
      when encountering a repetition greater than RE_DUP_MAX.
      * lisp/isearch.el (isearch-search): Don't convert errors starting with
      "Invalid" into "incomplete".  Such errors are not incomplete, in the
      sense that they cannot be corrected by appending more characters to
      the end of the regexp.  The affected error messages are:
      - REG_BADPAT "Invalid regular expression"
        - \\(?X:\\) where X is not a legal group number
        - \\_X where X is not < or >
      - REG_ECOLLATE "Invalid collation character"
        - There is no code to throw this.
      - REG_ECTYPE "Invalid character class name"
        - [[:foo:] where foo is not a valid class name
      - REG_ESUBREG "Invalid back reference"
        - \N where N is referenced before matching group N
      - REG_BADBR "Invalid content of \\{\\}"
        - \\{N,M\\} where N < 0, M < N, M or N larger than max
        - \\{NX where X is not a digit or backslash
        - \\{N\\X where X is not a }
      - REG_ERANGE "Invalid range end"
        - There is no code to throw this.
      - REG_BADRPT "Invalid preceding regular expression"
        - We never throw this.  It would usually indicate a "*" with no
          preceding regexp text, but Emacs allows that to match a literal
  2. 23 Jan, 2018 1 commit
  3. 22 Jan, 2018 1 commit
    • Rasmus's avatar
      Update Org to v9.1.6 · bb396a36
      Rasmus authored
      Please note this is a bugfix release. See etc/ORG-NEWS for details.
  4. 21 Jan, 2018 1 commit
    • Juri Linkov's avatar
      New function read-answer (bug#30073) · afba4ccb
      Juri Linkov authored
      * lisp/emacs-lisp/map-ynp.el (read-answer): New function.
      (read-answer-short): New defcustom.
      * lisp/dired.el (dired-delete-file): Use read-answer.
      (dired--yes-no-all-quit-help): Remove function.
      (dired-delete-help): Remove defconst.
      * lisp/subr.el (assoc-delete-all): New function.
  5. 18 Jan, 2018 1 commit
    • Martin Rudalics's avatar
      Fix some tooltip related problems · e462308f
      Martin Rudalics authored
      Replace 'tooltip' frame parameter with a 'tooltip' member in
      the frame structure.  For GTK+ builds use 'tip_last_frame' to
      find the frame for which the currently visible tooltip was
      made.  For modeline help-echoing have tooltips show applicable
      actions only.
      * lisp/bindings.el (mode-line-default-help-echo): New function
      as default value of homonymous option.
      * src/dispextern.h (tip_frame, tip_window): Remove
      * src/frame.c (make_frame): Initialize new frame structure
      member 'tooltip'.
      (Fframe_list, other_frames): Rewrite with new macro
      * src/frame.h (struct frame): New member 'tooltip'.
      (FRAME_TOOLTIP_P): New macro.
      * src/gtkutil.c (xg_prepare_tooltip, xg_hide_tooltip): Rewrite
      using boolean return values.
      * src/nsfns.m (tip_frame): Remove declaration.
      * src/w32fns.c (w32_display_monitor_attributes_list)
      (w32_display_monitor_attributes_list_fallback): Rewrite with
      new macro FRAME_TOOLTIP_P.
      (tip_last_string, tip_last_frame, tip_last_parms): New Lisp
      scalars replacing Lisp vector last_show_tip_args.
      (x_create_tip_frame): Set new frame's 'tooltip' structure
      member to true.
      (x_hide_tip): Additionally test tip_frame for liveness.
      (Fx_show_tip): Handle last_show_tip_args to tip_last_frame,
      tip_last_string and tip_last_parms conversion.
      (syms_of_w32fns): staticpro tip_last_frame, tip_last_string
      and tip_last_parms instead of last_show_tip_args.
      * src/w32term.c (w32_read_socket, x_new_font): Rewrite with
      new macro FRAME_TOOLTIP_P.
      * src/w32term.h (tip_window): Add external declaration.
      * src/xdisp.c (x_consider_frame_title, prepare_menu_bars)
      (should_produce_line_number): Rewrite with new macro
      (note_mode_line_or_margin_highlight): If
      `mode-line-default-help-echo' specifies a function, call it to
      produce help echo string.
      * src/xfns.c (x_make_monitor_attribute_list)
      (Fx_display_monitor_attributes_list): Rewrite with
      new macro FRAME_TOOLTIP_P.
      (tip_last_string, tip_last_frame, tip_last_parms): New Lisp
      scalars replacing Lisp vector last_show_tip_args.
      (x_create_tip_frame): Set new frame's 'tooltip' structure
      member to true.
      (x_hide_tip): Rewrite with additional tests of frames for
      liveness and taking into account that for GTK+ tips the
      reference frame is now stored in tip_last_frame instead of
      (Fx_show_tip): Handle last_show_tip_args to tip_last_frame,
      tip_last_string and tip_last_parms conversion.  For GTK+ store
      FRAME argument in tip_last-frame.
      (syms_of_xfns): staticpro tip_last_frame, tip_last_string
      and tip_last_parms instead of last_show_tip_args.
      * src/xterm.c (x_update_begin, handle_one_xevent, x_new_font)
      (x_set_window_size): Rewrite with new macro FRAME_TOOLTIP_P.
      * src/xterm.h (tip_window): Add external declaration.
      * etc/NEWS: Mention new modeline tooltips behavior.
  6. 17 Jan, 2018 2 commits
  7. 16 Jan, 2018 1 commit
  8. 15 Jan, 2018 2 commits
  9. 13 Jan, 2018 3 commits
    • NicolasPetton's avatar
      Update etc/AUTHORS · 8f705ba4
      NicolasPetton authored
    • Ken Brown's avatar
      Add battery support to all Cygwin builds · 5af5df1f
      Ken Brown authored
      It already exists in the Cygwin-w32 build.
      * src/w32fns.c (Fw32_battery_status): Move to...
      * src/w32cygwinx: New file, to be used for functions common to
      the MS Windows and Cygwin builds.
      (syms_of_w32cygwinx): New function.
      * src/lisp.h: Add prototype of syms_of_w32cygwinx.
      * src/emacs.c (main) [HAVE_NTGUI or CYGWIN]: Call syms_of_w32cygwinx.
      * src/Makefile.in (SOME_MACHINE_OBJECTS):
      * configure.ac (W32_OBJ) [HAVE_W32]: Add w32cygwinx.o.
      (W32_LIBS) [CYGWIN]: Set equal to "-lkernel32" in non-w32 build.
      (W32_OBJ) [CYGWIN]: Set equal to "w32cygwinx.o" in non-w32 build.
      * etc/NEWS: Document the new battery support.
    • Eli Zaretskii's avatar
  10. 12 Jan, 2018 1 commit
    • NicolasPetton's avatar
      Update authors · 4387bb44
      NicolasPetton authored
      * admin/authors.el (authors-aliases, authors-valid-file-names): Additions.
      * etc/AUTHORS: Update AUTHORS file.
  11. 11 Jan, 2018 1 commit
    • Stefan Monnier's avatar
      * lisp/mail/smtpmail.el: Use lexical-binding and cl-generic · ccedc679
      Stefan Monnier authored
      (smtpmail-auth-supported): Mark it as non-constant.
      (smtpmail-try-auth-methods): Remove unused var 'ret'.
      Test non-nullness of mech user and password before calling
      (smtpmail-try-auth-method): Make it into a generic function.
      (smtpmail-via-smtp): Remove unused var 'response-code'.
  12. 07 Jan, 2018 3 commits
  13. 05 Jan, 2018 1 commit
    • Michael Albinus's avatar
      Add new Tramp connection method "owncloud" · b74fdf44
      Michael Albinus authored
      * doc/misc/tramp.texi (all): Use @acronym{GNOME} thoroughly.
      (Using GNOME Online Accounts based methods): Rename from
      "Using Google Drive".  Add `owncloud'.
      (GVFS based methods): Add `owncloud'.
      * etc/NEWS: Add Tramp connection method "owncloud".
      * lisp/net/tramp-gvfs.el (tramp-gvfs-methods): Add "owncloud".
      Remove goa methods if not supported.
      (tramp-goa-methods, tramp-goa-service, tramp-goa-path)
      (tramp-goa-path-accounts, tramp-goa-interface-documents)
      (tramp-goa-interface-printers, tramp-goa-interface-files)
      (tramp-goa-interface-contacts, tramp-goa-interface-calendar)
      (tramp-goa-interface-account, tramp-goa-identity-regexp)
      (tramp-goa-interface-mail, tramp-goa-interface-chat)
      (tramp-goa-interface-photos, tramp-goa-path-manager)
      (tramp-gvfs-owncloud-default-prefix-regexp): New defconst.
      (tramp-goa-name): New defstruct.
      (tramp-gvfs-stringify-dbus-message): Handle all consp messages.
      (tramp-dbus-function, tramp-gvfs-get-remote-prefix)
      (tramp-get-goa-accounts): New defun.
      (with-tramp-dbus-call-method): Use it.
      (with-tramp-dbus-get-all-properties): New defmacro.
      (tramp-gvfs-connection-mounted-p, tramp-gvfs-mount-spec):
      Map between "owncloud" and "davs".
      (tramp-gvfs-maybe-open-connection): Set "vector" connection property.
      * test/lisp/net/tramp-tests.el (tramp-gvfs-handler-askquestion):
      Suppress run in tests.
      (tramp--test-owncloud-p): New defun.
      (tramp-test11-copy-file, tramp-test12-rename-file): Use it.
  14. 04 Jan, 2018 1 commit
  15. 01 Jan, 2018 6 commits
  16. 31 Dec, 2017 1 commit
  17. 25 Dec, 2017 1 commit
  18. 23 Dec, 2017 1 commit
    • Boruch Baum's avatar
      * lisp/mail/footnote.el (footnote-align-to-fn-text): New config var · c7a50740
      Boruch Baum authored
      (footnote-mode): Declare.
      (Footnote--get-area-point-min): Fix last change to use 'car` instead of
      the undefined 'first'.
      (Footnote--calc-fn-alignment-column, Footnote--fill-prefix-string)
      (Footnote--adaptive-fill-function): New functions.
      (footnote-mode): Use them.
  19. 22 Dec, 2017 5 commits
  20. 20 Dec, 2017 1 commit
  21. 18 Dec, 2017 1 commit
    • Paul Eggert's avatar
      Default CHECK_LISP_OBJECT_TYPE to "no" · 5959b48e
      Paul Eggert authored
      * configure.ac: Go back to not defining CHECK_LISP_OBJECT_TYPE by
      default for developer builds, since it is no longer that useful.
      We can make it a no-op entirely later, if in practice it's not
      that helpful to enable it.
  22. 17 Dec, 2017 2 commits
    • Simen Heggestøyl's avatar
      Add command for cycling between CSS color formats · bd9e8b31
      Simen Heggestøyl authored
      * lisp/textmodes/css-mode.el (css-mode-map): Add keybinding for
      (css--rgb-color): Add support for extracting alpha component.
      (css--hex-alpha, css--color-to-4-dpc, css--named-color-to-hex)
      (css--format-rgba-alpha, css--hex-to-rgb)
      (css--rgb-to-named-color-or-hex): New functions.
      (css-cycle-color-format): New command for cycling between color
      * test/lisp/textmodes/css-mode-tests.el (css-test-color-to-4-dpc):
      (css-test-named-color-to-hex, css-test-format-rgba-alpha)
      (css-test-hex-to-rgb, css-test-rgb-to-named-color-or-hex)
      (css-test-cycle-color-format, css-test-hex-alpha): New tests for the
      changes mentioned above.
      * etc/NEWS: Mention the new command.
    • Glenn Morris's avatar
  23. 15 Dec, 2017 2 commits
    • Allen Li's avatar
      Add option to configure comint TERM · 8ed529f0
      Allen Li authored
      * lisp/comint.el (comint-terminfo-terminal): New defcustom.
      (comint-term-environment): New function for setting terminal options
      (comint-exec-1): Use comint-term-environment.  (Bug#29583)
      * lisp/progmodes/compile.el (compilation-start): Use comint-term-environment.
      * etc/NEWS:
      * doc/emacs/misc.texi (Shell Options): Document the new option.
    • Eli Zaretskii's avatar
      ; * etc/NEWS: Fix last change. · ffb50eac
      Eli Zaretskii authored