1. 03 Oct, 2014 5 commits
    • Dmitry Antipov's avatar
      Consistently use min and max macros from lisp.h. · 6846b003
      Dmitry Antipov authored
      * coding.c (min, max):
      * font.c (MAX):
      * unexhp9k800.c (min):
      * unexw32.c (min, max): Use definitions from lisp.h.
      * regex.c (MAX, MIN) [!emacs]: Define own max and min as such.
      Adjust users.
      * gmalloc.c (min): Tiny style change.
    • Paul Eggert's avatar
      Fix x-focus-frame bug with "Not an in-range integer". · 11bd10a7
      Paul Eggert authored
      * xselect.c (X_SHRT_MAX, X_SHRT_MIN, X_LONG_MAX, X_LONG_MIN)
      (X_ULONG_MAX): Move these macros to xterm.h.
      (x_fill_property_data): Be more generous about allowing either
      signed or unsigned data of the appropriate width.
      * xterm.h (x_display_set_last_user_time): New function.
      All setters of last_user_time changd to use this function.
      If ENABLE_CHECKING, check that the times are in range.
      Fixes: debbugs:18586
    • Stefan Monnier's avatar
    • Stefan Monnier's avatar
      New gui-selection-value consolidating x-selection-value. · d6f8fef3
      Stefan Monnier authored
      * lisp/select.el (gui-selection-value-alist): New method.
      (gui-selection-value): New function.
      (x-selection-value): Make it an obsolete alias.
      * lisp/simple.el (interprogram-paste-function): Default to gui-selection-value.
      * lisp/w32-common-fns.el (w32-get-selection-value): Simplify.
      (x-selection-value): Remove alias.
      (interprogram-paste-function): Don't set.
      (gui-selection-value): Define for w32.
      * lisp/term/x-win.el (gui-selection-value): Define for x.
      (x--selection-value): Rename from x--selection-value.
      (interprogram-paste-function): Don't set.
      * lisp/term/pc-win.el (w16-get-selection-value): Simplify.
      (msdos-initialize-window-system): Don't set interprogram-paste-function.
      (gui-selection-value): Define for pc.
      * lisp/term/ns-win.el (x-selection-value): Remove.
      (gui-selection-value): Define for ns, instead.
      * lisp/term/common-win.el (x-setup-function-keys): Don't set
      * lisp/obsolete/mouse-sel.el (mouse-sel-get-selection-function):
      Use gui-selection-value.
    • David Raynes's avatar
      * lisp/term/ns-win.el: Add functions to ns frame, not x frame. · f0da11bd
      David Raynes authored
      Fixes: debbugs:18614
  2. 02 Oct, 2014 16 commits
  3. 01 Oct, 2014 19 commits
    • Glenn Morris's avatar
      * package.el (package-import-keyring): Create gnupg directory private. · c8ea4b9f
      Glenn Morris authored
      See bug#17625#155.
    • Glenn Morris's avatar
    • Glenn Morris's avatar
      package-test tweaks for hydra · e694e2a9
      Glenn Morris authored
      * test/automated/package-test.el (with-package-test, package-test-signed):
      Also set HOME to a temp value, in case the real one is absent (e.g.
      hydra) or read-only. 
      (package-test-signed): Use skip-unless rather than expected-result.
      Fixes: debbugs:18575
    • Stefan Monnier's avatar
      Commit forgotten ChangeLog files · 850fe806
      Stefan Monnier authored
    • Stefan Monnier's avatar
      Consolidate x-select-text. · a8b36b95
      Stefan Monnier authored
      * lisp/frame.el (gui-method, gui-method-define, gui-method-declare)
      (gui-call): New macros.
      (gui-method--name): New function.
      (frame-creation-function-alist): Use gui-method-declare.
      (make-frame): Use gui-method.
      * lisp/select.el (gui-select-enable-clipboard): Rename from
      x-select-enable-clipboard and move here.
      (x-select-enable-clipboard): Define as obsolete alias.
      (gui-last-selected-text): New var, to replace x-last-selected-text.
      (gui-select-text): New GUI method.
      (gui-select-text): New function.
      (x-select-text): Define as obsolete alias.
      * lisp/term/common-win.el (x-select-enable-clipboard, x-select-text):
      Move to select.el.
      * lisp/simple.el (interprogram-cut-function): Change default to
      (interprogram-paste-function): Change default to `ignore'.
      * lisp/w32-common-fns.el (interprogram-cut-function): Don't modify.
      * lisp/term/x-win.el (interprogram-cut-function): Don't modify.
      (gui-select-text): Add method for x.
      * lisp/term/w32-win.el (gui-select-text): Add method for w32.
      * lisp/term/pc-win.el (x-last-selected-text): Remove, use
      gui-last-selected-text instead.
      (msdos-initialize-window-system): Don't set interprogram-cut-function.
      (gui-select-text): Add method for pc.
      * lisp/term/ns-win.el (ns-last-selected-text): Remove, use
      gui-last-selected-text instead.
      (gui-select-text): Add method for ns.
      (x-setup-function-keys): Don't change interprogram-cut-function.
      * lisp/loadup.el ("startup"): Load after "frame".
      * lisp/subr.el (package--builtin-versions, package--description-file):
      Move from startup.el.
      * lisp/startup.el (package--builtin-versions, package--description-file):
      Move to subr.el.
      (handle-args-function-alist, window-system-initialization-alist):
      Use gui-method-declare.
      (command-line): Use gui-method.
      * src/xselect.c (selection-converter-alist): Fix docstring.
    • Paul Eggert's avatar
      Improve doc for use of 'int', and discuss 'ssize_t'. · c59ef5ef
      Paul Eggert authored
      * internals.texi (C Integer Types): Mention 'int' for other
      randomish values that lie in 'int' range.  Mention 'ssize_t'.  See:
    • Jan Djärv's avatar
    • Jan Djärv's avatar
      * xfaces.c (Finternal_set_lisp_face_attribute): Don't try to · e2e773b9
      Jan Djärv authored
      make a font_object from a tty frame.
      Fixes: debbugs:18573
    • Stefan Monnier's avatar
      * lisp/subr.el (alist-get): New accessor. · a57fa964
      Stefan Monnier authored
      * lisp/emacs-lisp/gv.el (alist-get): Provide expander.
      * lisp/winner.el (winner-remember):
      * lisp/tempo.el (tempo-use-tag-list):
      * lisp/progmodes/gud.el (minor-mode-map-alist):
      * lisp/international/mule-cmds.el (define-char-code-property):
      * lisp/frameset.el (frameset-filter-params):
      * lisp/files.el (dir-locals-set-class-variables):
      * lisp/register.el (get-register, set-register):
      * lisp/calc/calc-yank.el (calc-set-register): Use it.
      * lisp/ps-print.el (ps-get, ps-put, ps-del): Mark as obsolete.
      * lisp/tooltip.el (tooltip-set-param): Mark as obsolete.
      (tooltip-show): Use alist-get instead.
      * lisp/ses.el (ses--alist-get): Remove.  Use alist-get instead.
      * admin/unidata/unidata-gen.el (unidata-gen-table-word-list): Use alist-get
      and cl-incf.
    • Ulf Jasper's avatar
      Newsticker: Use libxml instead of `xml-parse-region'. Fix some glitches. Clean up. · 34912c0a
      Ulf Jasper authored
      * lisp/net/newst-backend.el: Remove Time-stamp.  Rename variable
      `newsticker--download-logos' to `newsticker-download-logos' and
      make it customizable.
      (newsticker--sentinel-work): Move xml-workarounds to function
      `newsticker--do-xml-workarounds', call unless libxml-parser is
      used.  Allow single quote in regexp for encoding.  Use
      libxml-parser if available, else fall back to `xml-parse-region'.
      Take care of possibly missing namespace prefixes (like "RDF"
      instead of "rdf:RDF") when checking xml nodes and attributes (as
      libxml correctly removes the prefixes).  Always use Atom 1.0 as
      fallback feed type.  Rename `newsticker--download-logos' to
      (newsticker--unxml, newsticker--unxml-node)
      (newsticker--unxml-attribute): New.
      (newsticker--parse-atom-1.0): Call `unxml' in case that embedded
      HTML code has become part of the xml parse tree.
      (newsticker--parse-rss-1.0, newsticker--parse-rss-2.0): Take care
      of possibly missing namespace prefixes.
      (newsticker--parse-generic-items): Code formatting. Typo.
      (newsticker--images-dir): Add trailing slash.
      (newsticker--image-get): Fix error message.
      * lisp/net/newst-plainview.el: Remove Time-stamp.
      * lisp/net/newst-reader.el: Remove Time-stamp.
      (newsticker-download-logos): Rename variable
      `newsticker--download-logos' to `newsticker-download-logos' and
      make it customizable.
      (newsticker--print-extra-elements): Add optional parameter
      'htmlish for using html markup.  Amend list of ignored elements.
      (newsticker--do-print-extra-element): Add parameter 'htmlish for
      using html markup.
      * lisp/net/newst-ticker.el: Remove Time-stamp.
      * lisp/net/newst-treeview.el (newsticker--treeview-item-show): Use html
      for formatting extra elements.
      * lisp/net/newsticker.el:  Remove Time-stamp, Version.
      (newsticker-version): Make obsolete.
    • Eli Zaretskii's avatar
      Don't modify the process's command name passed to start-process on MS-Windows. · f94ec2f3
      Eli Zaretskii authored
       src/w32proc.c (sys_spawnve): Avoid modification of the CMDNAME
       argument passed by the caller, when we mirror all slashes into
    • Eli Zaretskii's avatar
    • Dmitry Antipov's avatar
      * gtkutil.c (xg_set_toolkit_horizontal_scroll_bar_thumb): · a5bc0a27
      Dmitry Antipov authored
      Resurrect old code and fix compilation with GTK < 2.13.6.
    • Glenn Morris's avatar
      Auto-commit of loaddefs files. · 24e1e655
      Glenn Morris authored
    • Glenn Morris's avatar
      Auto-commit of loaddefs files. · 8a8c62a1
      Glenn Morris authored
    • Paul Eggert's avatar
      Use AUTO_CONS instead of SCOPED_CONS, etc. · 27900ac7
      Paul Eggert authored
      * doc/lispref/internals.texi (Stack-allocated Objects):
      Adjust to match the revised, less error-prone macros.
      * src/frame.h (AUTO_FRAME_ARG): Rename from FRAME_PARAMETER.
      * src/lisp.h (AUTO_CONS): Rename from scoped_cons.
      (AUTO_LIST1): Rename from scoped_list1.
      (AUTO_LIST2): Rename from scoped_list2.
      (AUTO_LIST3): Rename from scoped_list3.
      (AUTO_LIST4): Rename from scoped_list4.
      (AUTO_STRING): Rename from SCOPED_STRING.
      * src/frame.h (AUTO_FRAME_ARG):
      * src/lisp.h (AUTO_CONS, AUTO_LIST1, AUTO_LIST2, AUTO_LIST3)
      Prepend a new argument 'name'.
      Declare a variable instead of yielding a value.
      All uses changed.
      * src/lisp.h (STACK_CONS, AUTO_CONS_EXPR): New internal macros.
    • Paul Eggert's avatar
      * dispnew.c (adjust_decode_mode_spec_buffer): Prefer ptrdiff_t · cebe0e68
      Paul Eggert authored
      to ssize_t since we're not using ssize_t-related syscalls here.
    • Daiki Ueno's avatar
      mml: Signal error on invalid <#secure> tag · c8145320
      Daiki Ueno authored
      * mml.el (mml-parse-1): Error out if unknown mode is specified in
      <#secure> tag (bug#18513).
    • Stefan Monnier's avatar
      * lisp/progmodes/python.el (python-shell-completion-get-completions): · 85ee81a0
      Stefan Monnier authored
      Use python-shell--prompt-calculated-input-regexp from the
      process buffer.
      Don't assume that `line' comes from the process buffer.
      Fixes: debbugs:18582