1. 18 Nov, 2014 9 commits
    • Rüdiger Sonderfeld's avatar
      lisp/ChangeLog: Fix bug#11386. · cb4f666a
      Rüdiger Sonderfeld authored
      cb4f666a
    • Rüdiger Sonderfeld's avatar
      lisp/ChangeLog: add bug#13871. · b2c4e6c8
      Rüdiger Sonderfeld authored
      There was a similar patch in bug#13871.
      b2c4e6c8
    • Leo Liu's avatar
      New macro define-advice · 1148d375
      Leo Liu authored
      * doc/lispref/functions.texi (Advising Named Functions): Document
      define-advice.
      
      * lisp/emacs-lisp/nadvice.el (define-advice): New macro.
      * lisp/emacs-lisp/lisp-mode.el (lisp-imenu-generic-expression): Add
      define-advice.
      (lisp-font-lock-keywords-1): Add define-advice.
      1148d375
    • Daiki Ueno's avatar
      epg: Support key editing · 9e8da9d2
      Daiki Ueno authored
      * epg.el (epg-context): New slot EDIT-CALLBACK.
      (epg--process-filter): Call EDIT-CALLBACK when editing a key.
      (epg-reset): Reset EDIT-CALLBACK of the context.
      (epg-start-edit-key): New function.
      (epg-edit-key): New function.
      9e8da9d2
    • Paul Eggert's avatar
      Port new time stamp handling to Emacs 23.2. · b3cb91e0
      Paul Eggert authored
      This fix is for Gnus.  Problem reported by Katsumi Yamaoka.
      * calendar/time-date.el (time-add, time-subtract, time-less-p):
      Use eval-and-compile, not eval-when-compile.
      b3cb91e0
    • Daiki Ueno's avatar
      epg: Fix callback argument type check · 5c249e2a
      Daiki Ueno authored
      * epg.el (epg-context-set-passphrase-callback)
      (epg-context-set-progress-callback): Check if the CALLBACK
      argument is a function, instead of a cons.
      5c249e2a
    • Daiki Ueno's avatar
      epg: Simplify epa-pinentry-mode handling · 5224be2f
      Daiki Ueno authored
      * epa-file.el (epa-file-insert-file-contents)
      (epa-file-write-region): Remove redundant check of
      epa-pinentry-mode.
      * epa.el (epa-sign-file, epa-encrypt-file, epa-decrypt-region)
      (epa-sign-region, epa-encrypt-region): Remove redundant check of
      epa-pinentry-mode.
      5224be2f
    • Daiki Ueno's avatar
      epg: Don't show "*Error*" buffer when visiting a new file · b12bb4dc
      Daiki Ueno authored
      * epa-file.el (epa-file-insert-file-contents): Don't show
      "*Error*" buffer if input file does not exist.
      Reported by Herbert J. Skuhra.
      b12bb4dc
    • Paul Pogonyshev's avatar
      progmodes/cc-langs.el: Support some of the new keywords in C++11. · 0b37f903
      Paul Pogonyshev authored
      (c-operators): Add "alignof".
      (c-primitive-type-kwds): Add "char16_t", "char32_t".
      (c-type-modifier-kwds): Add "constexpr", "noexcept".
      (c-modifier-kwds): Add "thread_local".
      (c-constant-kwds): Add "nullptr".
      
      Original patch by Paul Pogonyshev <pogonyshev@gmail.com> and updated
      by Rüdiger Sonderfeld  <ruediger@c-plusplus.net>.
      0b37f903
  2. 17 Nov, 2014 12 commits
    • Michal Nazarewicz's avatar
      tildify.el: introduce a `tildify-foreach-region-function' variable · 1901029f
      Michal Nazarewicz authored
      * textmodes/tildify.el (tildify-foreach-region-function): New
      variable specifying a function determining portions of buffer that
      should be tildified.  It allows major modes to create a filtering
      function more elaborate than a set of regular expressions.
      Initialised to `tildify--deprecated-ignore-evironments' by default
      to handle now deprecated `tildify-ignored-environments-alist'
      variable.
      (tildify--foreach-region): A new function that takes
      `tildify-foreach-region-function' into account and calls callback
      for regions of the buffer that should be tildified.
      (tildify-foreach-ignore-environments): A new function which can be
      partially applied and used as `tildify-foreach-region-function'.
      (tildify-ignored-environments-alist, tildify--pick-alist-entry):
      Mark as obsolete.
      (tildify--find-env): Rename from `tildify-find-env' and mark as
      obsolete.
      (tildify--deprecated-ignore-evironments): New function,
      immediately marked as obsolete, used to handle deprecated
      `tildify-ignored-environments-alist'.
      
      * textmodes/tex-mode.el (tex-common-initialization): Set
      `tildify-foreach-region-function' variable in all variants of TeX
      mode since `tildify-ignored-environments-alist' variable is now
      empty by default.
      
      * nxml/nxml-mode.el (nxml-mode): Ditto in `nxml-mode'.
      
      * textmodes/sgml-mode.el (sgml-mode): Ditto in `sgml-mode'.
      1901029f
    • Michal Nazarewicz's avatar
      tildify.el: introduce a `tildify-pattern' variable · d5ec102b
      Michal Nazarewicz authored
      * textmodes/tildify.el (tildify-pattern): New variable for
      defining tildifying pattern.  Being a buffer-local variable it is
      much easier to handle than `tildify-pattern-alist' that has been
      used so far.  It also works better with derived modes.
      (tildify-pattern-alist): Mark as obsolete.
      d5ec102b
    • Michal Nazarewicz's avatar
      tildify.el: introduce a `tildify-space-string' variable · b8104090
      Michal Nazarewicz authored
      * textmodes/tildify.el (tildify-space-string): New variable for
      specifying representation of a hard space -- a no-break space by
      default.  Being a buffer-local variable it is much easier to
      handle than `tildify-string-alist' that has been used so far.  It
      also works better with derived modes.
      (tildify-string-alist): Mark as obsolete.
      
      * textmodes/tex-mode.el (tex-common-initialization): Set
      `tildify-space-string' variable in all variants of TeX mode since
      `tildify-string-alist' is now empty by default.
      
      * nxml/nxml-mode.el (nxml-mode): Ditto in `nxml-mode'.  If
      encoding supports it use no-break space instead of character
      entity; this changes previous default which used a numeric
      reference.
      
      * textmodes/sgml-mode.el (sgml-mode): ditto in `sgml-mode'.  If
      encoding does not support no-break space, use numeric reference;
      this changes previous default which used named entity (“&nbsp;”)
      in HTML mode.
      b8104090
    • Ulf Jasper's avatar
      Fix bug#5433. · 07556b02
      Ulf Jasper authored
      07556b02
    • Ulf Jasper's avatar
      New option `icalendar-export-alarms'. · 16b5f507
      Ulf Jasper authored
      16b5f507
    • Lars Magne Ingebrigtsen's avatar
      0eaf98e8
    • Lars Magne Ingebrigtsen's avatar
    • Ulf Jasper's avatar
      intermediate commit · b7cce56d
      Ulf Jasper authored
      b7cce56d
    • Albert Krewinkel's avatar
    • Paul Eggert's avatar
      Port new time stamp handling to old Emacs and to XEmacs. · ed7b5051
      Paul Eggert authored
      This is needed for Gnus, which copies time-date.el and which
      runs on older Emacs implementations.
      * calendar/time-date.el (with-decoded-time-value):
      Handle 'nil' and floating-point arg more compatibly with new Emacs.
      (encode-time-value, with-decoded-time-value):
      Obsolete only if new Emacs.
      (time-add, time-subtract, time-less-p): Define if not new Emacs.
      ed7b5051
    • Paul Eggert's avatar
      Spelling fixes. · 1c7b6b3e
      Paul Eggert authored
      1c7b6b3e
    • Paul Eggert's avatar
      Improve time stamp handling, and be more consistent about it. · 0921dbc3
      Paul Eggert authored
      This implements a suggestion made in:
      http://lists.gnu.org/archive/html/emacs-devel/2014-10/msg00587.html
      Among other things, this means timer.el no longer needs to
      autoload the time-date module.
      * doc/lispref/os.texi (Time of Day, Time Conversion, Time Parsing)
      (Processor Run Time, Time Calculations):
      Document the new behavior, plus be clearer about the old behavior.
      (Idle Timers): Take advantage of new functionality.
      * etc/NEWS: Document the changes.
      * lisp/allout-widgets.el (allout-elapsed-time-seconds): Doc fix.
      * lisp/arc-mode.el (archive-ar-summarize):
      * lisp/calendar/time-date.el (seconds-to-time, days-to-time, time-since):
      * lisp/emacs-lisp/timer.el (timer-relative-time, timer-event-handler)
      (run-at-time, with-timeout-suspend, with-timeout-unsuspend):
      * lisp/net/tramp.el (tramp-time-less-p, tramp-time-subtract):
      * lisp/proced.el (proced-time-lessp):
      * lisp/timezone.el (timezone-time-from-absolute):
      * lisp/type-break.el (type-break-schedule, type-break-time-sum):
      Simplify by using new functionality.
      * lisp/calendar/cal-dst.el (calendar-next-time-zone-transition):
      Do not return time values in obsolete and undocumented (HI . LO)
      format; use (HI LO) instead.
      * lisp/calendar/time-date.el (with-decoded-time-value):
      Treat 'nil' as current time.  This is mostly for XEmacs.
      (encode-time-value, with-decoded-time-value): Obsolete.
      (time-add, time-subtract, time-less-p): Use no-op autoloads, for
      XEmacs.  Define only if XEmacs, as they're now C builtins in Emacs.
      * lisp/ldefs-boot.el: Update to match new time-date.el
      * lisp/proced.el: Do not require time-date.
      * src/editfns.c (invalid_time): New function.
      Use it instead of 'error ("Invalid time specification")'.
      (time_add, time_subtract, time_arith, Ftime_add, Ftime_less_p)
      (decode_float_time, lisp_to_timespec, lisp_time_struct):
      New functions.
      (make_time_tail, make_time): Remove.  All uses changed to use
      new functions or plain list4i.
      (disassemble_lisp_time): Return effective length if successful.
      Check that LOW is an integer, if it's combined with other components.
      (decode_time_components): Decode into struct lisp_time, not
      struct timespec, so that we can support a wide set of times
      regardless of whether time_t is signed.  Decode plain numbers
      as seconds since the Epoch, and nil as the current time.
      (lisp_time_argument, lisp_seconds_argument, Ffloat_time):
      Reimplement in terms of new functions.
      (Fencode_time): Just use list2i.
      (syms_of_editfns): Add time-add, time-subtract, time-less-p.
      * src/keyboard.c (decode_timer): Don't allow the new formats (floating
      point or nil) in timers.
      * src/systime.h (LO_TIME_BITS): New constant.  Use it everywhere in
      place of the magic number '16'.
      (struct lisp_time): New type.
      (decode_time_components): Use it.
      (lisp_to_timespec): New decl.
      0921dbc3
  3. 16 Nov, 2014 16 commits
  4. 15 Nov, 2014 3 commits
    • Andreas Schwab's avatar
      Use git rev-parse to get repository version · 10331478
      Andreas Schwab authored
      * version.el (emacs-repository-get-version): Use git rev-parse
      instead of git log.
      10331478
    • Fabián Ezequiel Gallina's avatar
      Fixes: debbugs:18432 · 92f58578
      Fabián Ezequiel Gallina authored
      * lisp/progmodes/python.el (python-indent-calculate-levels): Fix
      indentation behavior multiline dedenter statement.
      
      * test/automated/python-tests.el (python-indent-dedenters-8): New test
      for Bug#18432.
      92f58578
    • Fabián Ezequiel Gallina's avatar
      Fix region indentation · 89ebffc1
      Fabián Ezequiel Gallina authored
      Fixes: debbugs:18843
      
      * lisp/progmodes/python.el (python-indent-region): Use
      python-indent-line and skip special cases.
      
      * test/automated/python-tests.el (python-indent-region-1)
      (python-indent-region-2, python-indent-region-3)
      (python-indent-region-4, python-indent-region-5): New tests.
      89ebffc1