1. 04 May, 2011 10 commits
    • Juanma Barranquero's avatar
      Implement dynamic loading of GnuTLS on Windows. · 0898ca10
      Juanma Barranquero authored
      * lisp/term/w32-win.el (dynamic-library-alist): Add `gnutls'.
      
      * nt/INSTALL: Clarify GnuTLS support.
      
      * src/callproc.c, src/emacs.c: Include lisp.h before src/w32.h, not after.
      
      * src/gnutls.c (Qgnutls_dll): Define.
        (DEF_GNUTLS_FN, LOAD_GNUTLS_FN): New macros.
        (gnutls_*): Declare function pointers.
        (init_gnutls_functions): New function to initialize function pointers.
        (emacs_gnutls_handshake, Fgnutls_error_string, Fgnutls_deinit)
        (emacs_gnutls_global_init, Fgnutls_bye): Use function pointers.
        (emacs_gnutls_record_check_pending, emacs_gnutls_transport_set_errno):
        Wrappers for gnutls_record_check_pending and gnutls_transport_set_errno.
        (emacs_gnutls_write, emacs_gnutls_read)
        (emacs_gnutls_handle_error, Fgnutls_error_fatalp)
        (Fgnutls_available_p): New function.
        (Fgnutls_boot): Call Fgnutls_available_p.  Use function pointers.
        (syms_of_gnutls) <Qgnutls_dll>: Initialize and staticpro it.
        (syms_of_gnutls) <Sgnutls_available_p>: defsubr it.
      
      * src/gnutls.h (GNUTLS_EMACS_ERROR_NOT_LOADED): New macro.
        (emacs_gnutls_write, emacs_gnutls_read): Mark as extern.
        (emacs_gnutls_record_check_pending, emacs_gnutls_transport_set_errno):
        Declare.
      
      * src/w32.c (QCloaded_from, Vlibrary_cache): Define.
        (w32_delayed_load): Move from image.c.  When loading a library, record
        its filename in the :loaded-from property of the library id.
        (globals_of_w32) <QCloaded_from, Vlibrary_cache>:
        Initialize and staticpro them.
        (emacs_gnutls_pull, emacs_gnutls_push): Call emacs_gnutls_* functions.
      
      * src/image.c: Include w32.h.
        (Vimage_type_cache): Delete.
        (syms_of_image) <Vimage_type_cache>: Don't initialize and staticpro it.
        (CACHE_IMAGE_TYPE, Finit_image_library): Use Vlibrary_cache instead.
        (w32_delayed_load): Move to w32.c.
      
      * src/process.c: Include lisp.h before src/w32.h, not after.
        (wait_reading_process_output): Call emacs_gnutls_record_check_pending
        instead of gnutls_record_check_pending.
      
      * src/w32.h (VlibraryCache, QCloaded_from, w32_delayed_load): Declare.
      0898ca10
    • Ted Zlatanov's avatar
      67a2aecd
    • Glenn Morris's avatar
      Small diary-lib.el font-locking fix. · f330b642
      Glenn Morris authored
      * lisp/calendar/diary-lib.el (diary-fancy-date-pattern):
      Turn it into a function, so it follows changes in calendar-date-style.
      (diary-fancy-date-matcher): New function.
      (diary-fancy-font-lock-keywords): Use diary-fancy-date-matcher.
      (diary-fancy-font-lock-fontify-region-function):
      Use diary-fancy-date-pattern as a function.
      f330b642
    • Glenn Morris's avatar
      diary-lib.el fix for bug#8583. · 31dfb76c
      Glenn Morris authored
      * lisp/calendar/diary-lib.el (diary-fancy-date-pattern):
      Do not use non-numbers for `year' etc pseudo-variables.
      31dfb76c
    • Glenn Morris's avatar
      Comment fix. · dd19b5fb
      Glenn Morris authored
      dd19b5fb
    • Glenn Morris's avatar
      Mark tiny change. · a7111a62
      Glenn Morris authored
      a7111a62
    • Ted Zlatanov's avatar
      Support :keylist and :crlfiles options to `gnutls-boot' and use them. · ff4de4aa
      Ted Zlatanov authored
      * src/gnutls.c (Fgnutls_boot): Support :keylist and :crlfiles options
      instead of :keyfiles.  Give GnuTLS the keylist and the CRL lists
      as passed in.
      ff4de4aa
    • Ted Zlatanov's avatar
      Use CL-style keyword arguments for `gnutls-negotiate' and allow :keylist and :crlfiles arguments. · 48e79d6a
      Ted Zlatanov authored
      * lisp/net/gnutls.el (gnutls-negotiate): Use CL-style keyword arguments
      instead of positional arguments.  Allow :keylist and :crlfiles
      arguments.
      (open-gnutls-stream): Call it.
      
      * lisp/net/network-stream.el (network-stream-open-starttls): Adjust to
      call `gnutls-negotiate' with :process and :hostname arguments.
      48e79d6a
    • Stefan Monnier's avatar
      * lisp/minibuffer.el (completion--message): New function. · ef80fc09
      Stefan Monnier authored
      (completion--do-completion, minibuffer-complete)
      (minibuffer-force-complete, minibuffer-complete-word): Use it.
      (completion--do-completion): Don't ignore completion-auto-help when in
      icomplete-mode.
      ef80fc09
    • Stefan Monnier's avatar
      * lisp/whitespace.el (whitespace-trailing-regexp): Don't rely on the · dd5a5ee0
      Stefan Monnier authored
      internal encoding (e.g. tibetan zero is not whitespace).
      (global-whitespace-mode): Prefer save-current-buffer.
      (whitespace-trailing-regexp): Remove useless save-match-data.
      (whitespace-empty-at-bob-regexp): Minor simplification.
      dd5a5ee0
  2. 03 May, 2011 13 commits
  3. 02 May, 2011 14 commits
  4. 01 May, 2011 3 commits