1. 25 Mar, 2015 3 commits
    • Stefan Monnier's avatar
      `save-excursion' does not save&restore the mark any more · 599ca626
      Stefan Monnier authored
      * src/editfns.c (save_excursion_save): Don't save the mark.
      (save_excursion_restore): Don't restore the mark.
      (Fsave_excursion): Fix docstring accordingly.
      
      * doc/lispintro/emacs-lisp-intro.texi:
      * doc/lispref/positions.texi (Excursions, Narrowing): `save-excursion' does
      not save&restore the mark any more.
      599ca626
    • Glenn Morris's avatar
      browse-url: mark some of the more obsolete stuff as such · f314d481
      Glenn Morris authored
      * lisp/net/browse-url.el (browse-url-browser-function)
      (browse-url-default-browser):
      Remove obsolete items from the explicit listing.
      (browse-url-new-window-flag, browse-url-of-file-hook): Doc fixes.
      (browse-url-netscape-program, browse-url-netscape-arguments)
      (browse-url-netscape-startup-arguments)
      (browse-url-galeon-program, browse-url-galeon-arguments)
      (browse-url-galeon-startup-arguments)
      (browse-url-gnome-moz-program, browse-url-gnome-moz-arguments)
      (browse-url-galeon-new-window-is-tab)
      (browse-url-netscape-new-window-is-tab)
      (browse-url-mosaic-program, browse-url-mosaic-arguments)
      (browse-url-mosaic-pidfile, browse-url-CCI-port)
      (browse-url-CCI-host, browse-url-netscape-version)
      (browse-url-netscape, browse-url-netscape-sentinel)
      (browse-url-netscape-reload, browse-url-netscape-send)
      (browse-url-galeon, browse-url-galeon-sentinel)
      (browse-url-gnome-moz, browse-url-mosaic, browse-url-cci)
      (browse-url-w3-gnudoit): Make obsolete.
      
      * etc/NEWS: Men...
      f314d481
    • Olaf Rogalsky's avatar
      * lisp/xt-mouse.el: Add mouse-tracking support. · c2385c6f
      Olaf Rogalsky authored
      Fixes: debbugs:19416
      
      * lisp/xt-mouse.el: Add mouse-tracking support.
      (xterm-mouse-translate-1): Handle mouse-movement events.
      (xterm-mouse--read-event-sequence-1000)
      (xterm-mouse--read-event-sequence-1006): Delete functions.
      (xterm-mouse--read-event-sequence): New function that handles both at
      the same time.  Handle mouse-movements.
      (xterm-mouse--read-utf8-char, xterm-mouse--read-number-from-terminal):
      New functions.
      (xterm-mouse-event): Simplify.
      (xterm-mouse-tracking-enable-sequence)
      (xterm-mouse-tracking-disable-sequence): Enable mouse tracking.
      
      * lisp/mouse.el (mouse-drag-line): Also ignore `vertical-line' prefix events.
      c2385c6f
  2. 24 Mar, 2015 1 commit
  3. 23 Mar, 2015 2 commits
    • Stefan Monnier's avatar
      Add new `cl-struct' and `eieio' pcase patterns. · ae277259
      Stefan Monnier authored
      * lisp/emacs-lisp/cl-macs.el (cl-struct): New pcase pattern.
      * lisp/emacs-lisp/eieio.el (eieio-pcase-slot-index-table)
      (eieio-pcase-slot-index-from-index-table): New functions.
      (eieio): New pcase pattern.
      * lisp/emacs-lisp/pcase.el (pcase--make-docstring): New function.
      (pcase): Use it to build the docstring.
      (pcase-defmacro): Make sure the macro is lazy-loaded.
      (\`): Move its docstring from `pcase'.
      ae277259
    • Daiki Ueno's avatar
      Generalize start-process with keyword args · 47e0e319
      Daiki Ueno authored
      * src/process.c (Fmake_process): New function.
      (create_process, create_pty): Check p->pty_flag instead of
      Vprocess_connection_type.
      (syms_of_process): Register QCcommand, QCconnection_type, Qpty,
      Qpipe, and Smake_process.  Unregister Sstart_process.
      
      * lisp/subr.el (start-process): New function, ported from the C
      implementation.
      
      * doc/lispref/processes.texi (Asynchronous Processes): Mention
      `make-process'.
      
      * etc/NEWS: Mention `make-process'.
      47e0e319
  4. 21 Mar, 2015 1 commit
    • Titus von der Malsburg's avatar
      Add new functions for computing default font dimensions · 4a50af93
      Titus von der Malsburg authored
       lisp/window.el (window-font-width, window-font-height)
       (window-max-chars-per-line): New functions.
       lisp/simple.el (default-font-height): Doc fix.
       (default-font-width): New function.
      
       etc/NEWS: Mention `default-font-width', `window-font-height',
       `window-font-width', and `window-max-chars-per-line'.
      4a50af93
  5. 16 Mar, 2015 3 commits
    • Stefan Monnier's avatar
      Add `predicate' arg to `read-buffer' and use it for erc-iswitchb · f925fc93
      Stefan Monnier authored
      Fixes: debbugs:20116
      
      * src/minibuf.c (Fread_buffer): Add `predicate' argument.
      * src/callint.c (Fcall_interactively): Adjust calls accordingly.
      
      * lisp/erc/erc.el (erc-switch-to-buffer): Rename from erc-iswitchb and rewrite
      using read-buffer.
      (erc--buffer-p): New function, extracted from erc-buffer-filter.
      (erc-buffer-filter): Use it.
      (erc-with-all-buffers-of-server): Silence compile warning if the return
      value is unused.
      (erc-is-valid-nick-p, erc-common-server-suffixes, erc-get-arglist)
      (erc-command-name, erc-popup-input-buffer): Use \` and \' to match
      beg/end of string.
      
      * lisp/obsolete/iswitchb.el (iswitchb-read-buffer): Add `predicate' arg.
      * lisp/isearchb.el (isearchb-iswitchb): Adjust accordingly.
      * lisp/ido.el (ido-read-buffer): Add `predicate' argument.
      * lisp/misearch.el (unload-function-defs-list): Declare before use.
      f925fc93
    • Vibhav Pant's avatar
      Fixes: debbugs:19335 · 43a847c0
      Vibhav Pant authored
      * net/browse-url.el (browse-url-browser-function): Add "Conkeror".
      (browse-url-conkeror-program, browse-url-conkeror-arguments)
      (browse-url-conkeror-new-window-is-buffer): New defcustoms.
      (browse-url-default-browser): Check for `browse-url-conkeror'
      and call `browse-url-conkeror-program'.
      (browse-url-conkeror): New command.
      (bug#19863)
      
      * etc/NEWS: Mention added support for Conkeror.
      43a847c0
    • Vibhav Pant's avatar
      Add 'clear' functionality to eshell. · ab4e4cc9
      Vibhav Pant authored
      * eshell/esh-mode.el (eshell/clear): New function.
      
      * etc/NEWS: Mention new built-in command.
      ab4e4cc9
  6. 10 Mar, 2015 2 commits
    • Paul Eggert's avatar
      Prefer "initialize" to "initialise" · 2a1be9eb
      Paul Eggert authored
      * lisp/progmodes/js.el (js-indent-first-init):
      Rename from js-indent-first-initialiser, to avoid worrying about
      American vs British spelling.  All uses changed.
      * test/indent/js-indent-init-t.js: Rename from
      indent/js-indent-first-initialiser-t.js.
      * test/indent/js-indent-init-dynamic.js: Rename from
      test/indent/js-indent-first-initialiser-dynamic.js.
      2a1be9eb
    • Glenn Morris's avatar
      * lisp/progmodes/js.el (js-indent-first-initialiser): Fix doc, type, version. · 6c9681af
      Glenn Morris authored
      First line of the doc string should be a complete sentence.
      
      * etc/NEWS: Mention new option.
      
      # Fix associated ChangeLog entries.
      6c9681af
  7. 02 Mar, 2015 2 commits
    • Daniel Colascione's avatar
      Add support for generators · f6b5db6c
      Daniel Colascione authored
      diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
      index 78f7e34..e7d79d5 100644
      --- a/doc/lispref/ChangeLog
      +++ b/doc/lispref/ChangeLog
      @@ -1,3 +1,8 @@
      +2015-03-02  Daniel Colascione  <dancol@dancol.org>
      +
      +	* control.texi (Generators): New section
      +	* elisp.text: Reference new section.
      +
       2015-02-28  Eli Zaretskii  <eliz@gnu.org>
      
       	* searching.texi (Char Classes): Update the documentation of
      diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
      index 448c7f2..4e9c119 100644
      --- a/doc/misc/ChangeLog
      +++ b/doc/misc/ChangeLog
      @@ -1,3 +1,7 @@
      +2015-03-02  Daniel Colascione  <dancol@dancol.org>
      +
      +	* cl.texi (Iteration Clauses): Mention iterator support.
      +
       2015-02-25  Tassilo Horn  <tsdh@gnu.org>
      
       	* reftex.texi (Multifile Documents): Document
      diff --git a/lisp/ChangeLog b/lisp/ChangeLog
      index 7ce2e81..4ab4406 100644
      --- a/lisp/ChangeLog
      +++ b/lisp/ChangeLog
      @@ -1,6 +1,8 @@
       2015-03-02  Daniel Colascione  <dancol@dancol.org>
      
      -	* vc/vc.el (vc-responsible-backend): Add autoload cooking for
      +	* emacs-lisp/generator.el: New file.
      +
      +	* vc/vc.el (vc-responsible-backend): Add autoload cookie for
       	`vc-responsible-backend'.
      
       2015-03-01  Michael Albinus  <michael.albinus@gmx.de>
      diff --git a/test/ChangeLog b/test/ChangeLog
      index 684e98f..64ad851 100644
      --- a/test/ChangeLog
      +++ b/test/ChangeLog
      @@ -1,5 +1,7 @@
       2015-03-02  Daniel Colascione  <dancol@dancol.org>
      
      +	* automated/generator-tests.el: New tests
      +
       	* automated/finalizer-tests.el (finalizer-basic)
       	(finalizer-circular-reference, finalizer-cross-reference)
       	(finalizer-error): New tests.
      f6b5db6c
    • Daniel Colascione's avatar
      Add support for finalizers · 9d8d0658
      Daniel Colascione authored
      +2015-03-02  Daniel Colascione  <dancol@dancol.org>
      +
      +	* NEWS: Mention finalizers.
      +
       2015-02-09  Gareth Rees  <gdr@garethrees.org>  (tiny change)
      
       	* NEWS.24: Fix typo (bug#19820)
      diff --git a/src/ChangeLog b/src/ChangeLog
      index 4aa64c1..2f04d0b 100644
      --- a/src/ChangeLog
      +++ b/src/ChangeLog
      @@ -1,3 +1,21 @@
      +2015-03-02  Daniel Colascione  <dancol@dancol.org>
      +
      +	* print.c (print_object): Print finalizers.
      +
      +	* alloc.c:
      +	(finalizers, doomed_finalizers): New variables.
      +	(init_finalizer_list, finalizer_insert, unchain_finalizer)
      +	(mark_finalizer_list, queue_doomed_finalizers)
      +	(run_finalizer_handler, run_finalizer_function, run_finalizers):
      +	New functions.
      +	(garbage_collect_1, mark_object, sweep_misc)
      +	(init_alloc_once, syms_of_alloc): Support finalizers.
      +	(gc-precise-p): New Lisp variable.
      +
      +	* lisp.h (Lisp_Misc_Type): New value Lisp_Misc_Finalizer.
      +	(FINALIZERP, XFINALIZER): New functions.
      +	(Lisp_Finalizer): New structure.
      +
       2015-02-28  Paul Eggert  <eggert@cs.ucla.edu>
      
       	* character.c (alphabeticp, decimalnump): Avoid undefined behavior
      diff --git a/test/ChangeLog b/test/ChangeLog
      index cf1b2c1..684e98f 100644
      --- a/test/ChangeLog
      +++ b/test/ChangeLog
      @@ -1,3 +1,9 @@
      +2015-03-02  Daniel Colascione  <dancol@dancol.org>
      +
      +	* automated/finalizer-tests.el (finalizer-basic)
      +	(finalizer-circular-reference, finalizer-cross-reference)
      +	(finalizer-error): New tests.
      +
       2015-03-01  Michael Albinus  <michael.albinus@gmx.de>
      
       	* automated/vc-tests.el (vc-test--create-repo): Add check for
      9d8d0658
  8. 28 Feb, 2015 1 commit
    • Eli Zaretskii's avatar
      Improve [:alpha:] and [:alnum:] for multibyte characters (Bug#19878) · 1a50945f
      Eli Zaretskii authored
       src/character.c (alphabeticp, decimalnump): New functions.
       src/character.h (alphabeticp, decimalnump): Add prototypes.
       src/regex.c (ISALNUM, ISALPHA): Check Unicode character properties
       for multibyte characters by calling alphabeticp and decimalnump.
       (BIT_ALPHA, BIT_ALNUM): New bit masks.
       (re_wctype_to_bit): Return them when the class is RECC_ALPHA or
       RECC_ALNUM.
       (re_match_2_internal): Call ISALPHA and ISALNUM when appropriate.
      
       doc/lispref/searching.texi (Char Classes): Update the documentation of
       [:alpha:] and [:alnum:].
      
       etc/NEWS: Mention the changes in [:alpha:] and [:alnum:].
      1a50945f
  9. 27 Feb, 2015 1 commit
  10. 24 Feb, 2015 1 commit
  11. 21 Feb, 2015 2 commits
    • Michael Albinus's avatar
    • Reto Zimmermann's avatar
      Sync with upstream vhdl mode v3.37.1. Add VHDL'08 support. · 80e67e43
      Reto Zimmermann authored
      * lisp/progmodes/vhdl-mode.el (vhdl-version, vhdl-time-stamp)
      (vhdl-doc-release-notes): Update.
      (vhdl-standard): Add VHDL'08 option.
      (vhdl-sensitivity-list-all): New option.
      (vhdl-directive-keywords): Add psl.
      (vhdl-offsets-alist-default, vhdl-mode-abbrev-table-init)
      (vhdl-template-construct-alist-init, vhdl-create-mode-menu):
      (vhdl-imenu-generic-expression): Add context, directive.
      (vhdl-offsets-alist, vhdl-mode, vhdl-doc-keywords): Doc fixes.
      (vhdl-template-map-init): Add vhdl-template-context.
      (vhdl-mode-syntax-table): Support VHDL'08 block comments.
      (vhdl-create-mode-menu): Add some entries.
      (vhdl-08-keywords, vhdl-08-types, vhdl-08-attributes)
      (vhdl-08-functions, vhdl-08-packages, vhdl-08-directives): New constants.
      (vhdl-directives): New variable.
      (vhdl-words-init, vhdl-template-process)
      (vhdl-template-replace-header-keywords): Support VHDL'08.
      (vhdl-abbrev-list-init): Add vhdl-directives.
      (vhdl-in-comment-p, vhdl-in-literal, vhdl-win-il)
      (vhdl-forward-syntactic-ws, vhdl-get-syntactic-context)
      (vhdl-lineup-comment): Handle block comments and directives.
      (vhdl-beginning-of-directive, vhdl-template-context)
      (vhdl-template-context-hook): New functions.
      (vhdl-libunit-re, vhdl-defun-re, vhdl-begin-p)
      (vhdl-corresponding-begin, vhdl-get-library-unit, vhdl-regress-line)
      (vhdl-align-declarations, vhdl-beginning-of-block, vhdl-end-of-block)
      (vhdl-font-lock-keywords-2, vhdl-get-end-of-unit)
      (vhdl-scan-context-clause): Add context.
      
      * etc/NEWS: Mention this.
      80e67e43
  12. 18 Feb, 2015 2 commits
  13. 13 Feb, 2015 1 commit
  14. 12 Feb, 2015 1 commit
  15. 11 Feb, 2015 1 commit
  16. 10 Feb, 2015 1 commit
  17. 08 Feb, 2015 2 commits
  18. 07 Feb, 2015 1 commit
    • Eli Zaretskii's avatar
      Complete the remaining documentation updates for 24.5 · eca7da10
      Eli Zaretskii authored
       doc/lispref/processes.texi (Synchronous Processes): Update documentation of
       call-process-shell-command and process-file-shell-command.
      
       etc/NEWS: Mark the entry for changed calling sequence of
       call-process-shell-command and process-file-shell-command as documented.
      eca7da10
  19. 05 Feb, 2015 1 commit
    • Stefan Monnier's avatar
      Add (:documentation <form>) for dynamically-generated docstrings · ad5a7c86
      Stefan Monnier authored
      * lisp/emacs-lisp/bytecomp.el:
      (byte-compile-initial-macro-environment): Use macroexp-progn.
      (byte-compile-cl-warn): Don't silence use of cl-macroexpand-all.
      (byte-compile-file-form-defvar-function): Rename from
      byte-compile-file-form-define-abbrev-table.
      (defvaralias, byte-compile-file-form-custom-declare-variable): Use it.
      (byte-compile): Use byte-compile-top-level rather than
      byte-compile-lambda so we can compile non-values.
      (byte-compile-form): Add warnings for failed uses of lexical vars via
      quoted symbols.
      (byte-compile-unfold-bcf): Improve message for failed inlining.
      (byte-compile-make-closure): Handle new format of internal-make-closure
      for dynamically-generated docstrings.
      
      * lisp/emacs-lisp/cconv.el (cconv--convert-function):
      Add `docstring' argument.
      (cconv-convert): Use it to handle the new (:documentation ...) form.
      (cconv-analyze-form): Handle the new (:documentation ...) form.
      
      * src/eval.c (Ffunction): Handle the new (:documentation ...) form.
      (syms_of_eval): Declare `:documentation'.
      ad5a7c86
  20. 03 Feb, 2015 1 commit
  21. 01 Feb, 2015 2 commits
  22. 27 Jan, 2015 2 commits
    • Ivan Shmakov's avatar
      Allow for adding new members to Tar archives. · a56eab82
      Ivan Shmakov authored
      * lisp/tar-mode.el: Allow for adding new archive members.
      (tar-new-regular-file-header, tar--pad-to, tar--put-at)
      (tar-header-serialize): New functions.
      (tar-current-position): Split from tar-current-descriptor.
      (tar-current-descriptor): Use it.
      (tar-new-entry): New command.
      (tar-mode-map): Bind it.
      * doc/emacs/files.texi (File Archives): Document "I" for tar-new-entry.
      * etc/NEWS: Mention the new tar-new-entry command.
      
      Fixes: debbugs:19274
      a56eab82
    • Thomas Fitzsimmons's avatar
      etc/NEWS: Document EUDC improvements · c7effd7c
      Thomas Fitzsimmons authored
      c7effd7c
  23. 25 Jan, 2015 1 commit
    • Paul Eggert's avatar
      Use gnustep-config if available · f6ef8365
      Paul Eggert authored
      * configure.ac (--with-gnustep): Document this.
      (NS_GNUSTEP_CONFIG): New variable, set if gnustep-config works.
      If gnustep-config works, use 'gnustep-config --objc-flags' and
      'gnustep-config --gui-libs' to compute GNUstep configuration
      variables, instead of attempting to infer them individually.
      * etc/NEWS: Document this.
      * src/emacs.c [NS_IMPL_GNUSTEP]: Don't include <GNUstepBase/GSConfig.h>.
      It doesn't appear to be needed, and the inclusion breaks on
      Ubuntu 14.10 when 'configure' uses 'gnustep-config'.
      Fixes: bug#19507
      f6ef8365
  24. 22 Jan, 2015 1 commit
    • Paul Eggert's avatar
      Don't downcase system diagnostics' first letters · 8dd58a2d
      Paul Eggert authored
      * etc/NEWS: Document this.
      * lisp/emacs-lisp/bytecomp.el (byte-compile-file):
      * lisp/ffap.el (find-file-at-point):
      * lisp/files.el (insert-file-1):
      * lisp/net/ange-ftp.el (ange-ftp-barf-if-not-directory)
      (ange-ftp-copy-file-internal):
      * lisp/progmodes/etags.el (visit-tags-table):
      * lisp/url/url-dav.el (url-dav-delete-directory, url-dav-delete-file)
      (url-dav-directory-files):
      Keep diagnostics consistent with system's.
      * lisp/erc/erc-dcc.el (erc-dcc-server):
      * lisp/ffap.el (ffap-machine-p):
      Ignore case while comparing diagnostics.
      * src/fileio.c (report_file_errno): Don't downcase, and simplify.
      Fixes: bug#19642
      8dd58a2d
  25. 21 Jan, 2015 1 commit
    • Ulrich Müller's avatar
      Allow update-game-score to run sgid instead of suid. · 20f66485
      Ulrich Müller authored
      * configure.ac (gamegroup): New AC_SUBST.
      (--with-gameuser): Allow to specify a group instead of a user.
      In the default case, check at configure time if a 'games' user
      exists.
      * lib-src/update-game-score.c: Allow the program to run sgid
      instead of suid, in order to match common practice for most games.
      (main): Check if we are running sgid.  Pass appropriate file
      permission bits to 'write_scores'.
      (write_scores): New 'mode' argument, instead of hardcoding 0644.
      (get_prefix): Update error message.
      * lib-src/Makefile.in (gamegroup): New variable, set by configure.
      ($(DESTDIR)${archlibdir}): Handle both suid or sgid when
      installing the 'update-game-score' program.
      * lisp/play/gamegrid.el (gamegrid-add-score-with-update-game-score):
      Allow the 'update-game-score' helper program to run suid or sgid.
      20f66485
  26. 20 Jan, 2015 3 commits
    • Stefan Monnier's avatar
      lisp/emacs-lisp/eieio*.el: Rewrite our generics on top of cl-generic · 3a8312d0
      Stefan Monnier authored
      * lisp/emacs-lisp/eieio-generic.el: Remove.
      (defgeneric, defmethod): Move to eieio-compat.el.  Mark obsolete.
      * lisp/emacs-lisp/eieio-compat.el: New file.
      * lisp/emacs-lisp/eieio.el: Don't require eieio-generic any more.
      * lisp/emacs-lisp/eieio-core.el (eieio--slot-originating-class-p):
      Remove unused function.
      (eieio-defclass): Move to eieio-compat.el.
      * lisp/emacs-lisp/macroexp.el (macroexp-macroexpand): New function.
      (macroexp--expand-all): Use it.
      * lisp/emacs-lisp/bytecomp.el (byte-compile-recurse-toplevel): Here too.
      3a8312d0
    • Michal Nazarewicz's avatar
      descr-text: add `describe-char-eldoc' describing character at point · 81681ed9
      Michal Nazarewicz authored
      * lisp/descr-text.el (describe-char-eldoc): New function returning
      basic Unicode codepoint information (e.g. name) about character
      at point.  It is meant to be used as a default value of the
      `eldoc-documentation-function' variable.
      (describe-char-eldoc--format, describe-char-eldoc--truncate):
      New helper functions for `describe-char-eldoc' function.
      
      * tests/automated/descr-text-test.el: New file with tests for
      `describe-char-eldoc--truncate', `describe-char-eldoc--format',
      and `describe-char-eldoc'.
      81681ed9
    • Michal Nazarewicz's avatar
      tildify: add `tildify-space' and `tildify-mode' · 571441fc
      Michal Nazarewicz authored
      * lisp/textmodes/tildify.el (tildify-space): A new function
      which can be used as a `post-self-insert-hook' to automatically
      convert spaces into hard spaces.
      (tildify-space-pattern): A new variable specifying pattern where
      `tildify-space' should take effect.
      (tildify-space-predicates): A new variable specifying list of
      predicate functions that all must return non-nil for
      `tildify-space' to take effect.
      (tildify-space-region-predicate): A new functions meant to be
      used as a predicate in `tildify-space-predicates' list.
      (tildify-mode): A new minor mode enabling `tildify-space' as a
      `post-self-insert-hook'
      
      * tests/automated/tildify-tests.el (tildify-space-test--test):
      A new helper function for testing `tildify-space' function.
      (tildify-space-test-html, tildify-space-test-html-nbsp)
      (tildify-space-test-xml, tildify-space-test-tex): New tests for
      `tildify-space' function.
      571441fc