summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Avoid add-to-list on local variablesStefan Monnier2017-01-0412-183/+186
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/gnus/nnir.el: Use lexical-binding and cl-lib. (nnir-retrieve-headers): Use pcase. (nnir-search-thread): Avoid add-to-list on local variables. * lisp/gnus/smime.el: Use lexical-binding and cl-lib. (smime-verify-region): Avoid add-to-list on local variables. * lisp/mail/undigest.el: Use lexical-binding and cl-lib. (rmail-digest-parse-mime, rmail-digest-rfc1153) (rmail-digest-parse-rfc934): Avoid add-to-list on local variable. * lisp/net/ldap.el (ldap-search): Move init into declaration. * lisp/net/newst-backend.el (newsticker--cache-add): Avoid add-to-list on local variables; Simplify code with `assq'. * lisp/net/zeroconf.el: Use lexical-binding and cl-lib. (dbus-debug): Remove declaration, unused. (zeroconf-service-add-hook, zeroconf-service-remove-hook) (zeroconf-service-browser-handler, zeroconf-publish-service): Avoid add-to-list and *-hook on local variables. * lisp/org/org-archive.el (org-all-archive-files): * lisp/org/org-agenda.el (org-agenda-get-restriction-and-command): Avoid add-to-list on local variables. * lisp/org/ox-publish.el (org-publish--run-functions): New function. (org-publish-projects): Use it to avoid run-hooks on a local variable. (org-publish-cache-file-needs-publishing): Avoid add-to-list on local variables. * lisp/progmodes/ada-prj.el: Use setq instead of (set '...). (ada-prj-load-from-file): Avoid add-to-list on local variables. * lisp/progmodes/ada-xref.el (ada-initialize-runtime-library): Simplify. (ada-gnat-parse-gpr, ada-parse-prj-file-1) (ada-xref-find-in-modified-ali): Avoid add-to-list on local variables. * lisp/progmodes/idlw-shell.el (idlwave-shell-update-bp-overlays): Avoid add-to-list on local variables.
* Turn on lexical-binding in md4.elMark Oteiza2017-01-032-1/+62
| | | | | * lisp/md4.el: Turn on lexical-binding. * test/lisp/md4-tests.el: New file.
* Lots of refactorings and a few minor improvements.Stefan Merten2017-01-031-1560/+1593
| | | | | | | | | | | | | | | | | User visible improvements and changes: * Improve and debug `rst-forward-section` and `rst-backward-section`. * Auto-enumeration may be used with all styles for list insertion. * Improve and debug `rst-toc-insert`. * Adapt change in Emacs to use customization group `text` instead of `wp`. * Bind `n` and `p` in `rst-toc-mode`. * `z` in `toc-mode` returns to the previous window configuration. * Require Emacs version >= 24.1. Lots of refactorings including: * Silence byte compiler. * Use lexical binding. * Use `cl-lib`. * Add tests and raise test coverage.
* (cl-defstruct): Improve error message for slots w/o value (bug#25312)Stefan Monnier2017-01-031-1/+17
| | | | | | * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Don't signal an error but emit a warning for those coders who forgot to put a default value in their slot.
* Small patch for ffap.elPhilipp Stephani2017-01-031-1/+4
| | | | | * lisp/ffap.el (ffap-alist): Document that ffap sets the match data while walking 'ffap-alist'.
* Generate nt/gnulib.mk from lib/gnulib.mkEli Zaretskii2017-01-039-1154/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | This was proposed by Paul Eggert <eggert@cs.ucla.edu>, with the purpose of avoiding manual maintenance of nt/gnulib.mk. * nt/gnulib-modules-to-delete.cfg: New file. * nt/Makefile.in (AM_V_GEN, am__v_GEN_, am__v_GEN_0) (am__v_GEN_1): New variables. (${srcdir}/gnulib.mk): Rules to generate gnulib.mk from lib/gnulib.mk and list of modules in gnulib-modules-to-delete.cfg. * make-dist (nt): Add gnulib-modules-to-delete.cfg to the list of files to link. * configure.ac (GNULIB_MK): Compute the value according to $opsys. * autogen.sh: Create nt/gnulib.mk if it doesn't exist, before running autoreconf. * Makefile.in (gnulib_mk): New variable. ($(srcdir)/nt/gnulib.mk): Rule to produce it. (AUTOMAKE_INPUTS): Use $(gnulib_mk) instead of a literal file name. * .gitignore: Add nt/gnulib.mk. * src/w32.c (acl_errno_valid): Implement it here, as we no longer build the acl-permissions module from Gnulib.
* Handle multibyte chars spanning chunks in term.elNoam Postavsky2017-01-031-8/+31
| | | | | | | | | * lisp/term.el (term-terminal-undecoded-bytes): New variable. (term-mode): Make it buffer local. Don't make `term-terminal-parameter' buffer-local twice. (term-emulate-terminal): Check for bytes of incompletely decoded characters, and save them until the next call when they can be fully decoded (Bug#25288).
* Finish work on filenotify-tests.elMichael Albinus2017-01-031-14/+70
| | | | | | | | | | | | * test/lisp/filenotify-tests.el (file-notify--test-monitors): New variable. (file-notify--test-cleanup, file-notify--test-monitor): Use it. (file-notify--test-read-event, file-notify-test02-events) (file-notify-test04-file-validity): Handle "gvfs-monitor-dir.exe". (file-notify-test03-autorevert) (file-notify-test08-watched-file-in-watched-dir): Set `file-notify--test-desc' for proper work of `file-notify--test-monitor'. (Bug#21804)
* Check also for "gvfs-monitor-dir.exe" in TrampMichael Albinus2017-01-021-2/+7
| | | | | * lisp/net/tramp-sh.el (tramp-get-remote-gvfs-monitor-dir): Check also for "gvfs-monitor-dir.exe".
* Fix compilation --without-xEli Zaretskii2017-01-021-2/+3
| | | | | * src/composite.c (autocmp_chars) [HAVE_WINDOW_SYSTEM]: Call font_range only if it is compiled in. (Bug#25334)
* Fix RefTeX to show table of contents for dtx files (tiny change)Sašo Živanović2017-01-022-3/+6
| | | | | | | | | * lisp/textmodes/reftex.el (reftex-compile-variables): Change the section regexp so that it accepts lines starting with the comment character. (tiny change) * lisp/textmodes/reftex-parse.el (reftex-parse-from-file): Filter gathered toc entries, accepting a commented entry if and only if the source file is a ".dtx" file. (tiny change)
* Remove mistakenly-added filesPaul Eggert2017-01-0114-4363/+0
| | | | | | | | | | | | | Problem reported by Glenn Morris in: http://lists.gnu.org/archive/html/emacs-devel/2017-01/msg00008.html * lisp/gnus/gnus-ems.el, lisp/gnus/gnus-sync.el: * lisp/gnus/messcompat.el, lisp/nxml/nxml-glyph.el: * lisp/nxml/nxml-uchnm.el, lisp/obsolete/awk-mode.el: * lisp/obsolete/iso-acc.el, lisp/obsolete/iso-insert.el: * lisp/obsolete/iso-swed.el, lisp/obsolete/resume.el: * lisp/obsolete/scribe.el, lisp/obsolete/spell.el: * lisp/obsolete/swedish.el, lisp/obsolete/sym-comp.el: Remove files that were added by mistake during a merge.
* Warn about incomplete untarring of link filesNoam Postavsky2017-01-011-11/+20
| | | | | | | | | | The current tar-mode doesn't really support unpacking symlinks, it simply creates an empty file of the same name. * lisp/tar-mode.el (tar--describe-as-link): New function extracted from `tar--check-descriptor'. (tar-untar-buffer): Use it to warn about imperfectly untarred link files.
* Remove sh-mode's skeleton-end-hookNoam Postavsky2017-01-011-2/+0
| | | | | | * lisp/progmodes/sh-script.el (sh-mode): Remove local setting of `skeleton-end-hook', `skeleton-insert' already does `newline-and-indent' and also respects `skeleton-end-newline' (Bug#16634).
* * nt/gnulib.mk (stdint.h): Update to match lib/gnulib.mk here.Paul Eggert2017-01-011-0/+1
|
* Add term/tmux.elMark Oteiza2017-01-011-0/+25
| | | | | | | Since tmux version 2.1, new tmux terminfos are shipped due to oddities with xterm and screen terminfos. This is simply a duplication of term/screen.el with screen -> tmux. * lisp/term/tmux.el: New file.
* Fix encoding of JSON surrogate pairsPhilipp Stephani2017-01-012-0/+18
| | | | | | | | | | | | JSON requires that such pairs be treated as UTF-16 surrogate pairs, not individual code points; cf. Bug #24784. * lisp/json.el (json-read-escaped-char): Fix decoding of surrogate pairs. (json--decode-utf-16-surrogates): New defun. * test/lisp/json-tests.el (test-json-read-string): Add test for surrogate pairs.
* Remove tramp-gw.el, which was synced from emacs-25 by accidentMichael Albinus2017-01-011-336/+0
|
* ; Fix typoMichael Albinus2017-01-011-1/+1
| | | | * src/gfilenotify.c:
* Do not use Gnulib’s m4/wint_t.m4.Paul Eggert2017-01-013-63/+5
| | | | | | | * admin/merge-gnulib: Remove m4/wint_t.m4 when merging. Fix typo so that warn-on-use.m4 is removed too. * configure.ac (gt_TYPE_WINT_T): New macro, replacing Gnulib’s. * m4/wint_t.m4: Remove.
* Merge from gnulib, continuedPaul Eggert2017-01-011-0/+62
| | | | * m4/wint_t.m4: New file, copied from gnulib.
* Update copyright year to 2017 in masterPaul Eggert2017-01-0162-62/+62
| | | | | | Run admin/update-copyright in the master branch. This fixes files that were not already fixed in the emacs-25 branch before it was merged here.
* Remove test/automated detritus from mergePaul Eggert2017-01-019-3124/+0
|
* Merge from gnulibPaul Eggert2017-01-0179-145/+154
| | | | | | | | | | | | | | | This incorporates: 2016-12-19 stdint: Fix WINT_MAX to match wint_t on mingw 2016-12-18 getopt: Fix link error for users of getopt() in <unistd.h> 2016-12-17 getlogin: Port to newer mingw 2016-12-17 stdint: Fix WINT_MAX to match wint_t on MSVC 2016-12-17 Avoid redefinition errors on MSVC * lib/getopt.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/unistd.in.h: * m4/stdint.m4, m4/unistd_h.m4: Copy from gnulib. * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate. Plus, this commit updates the indenting on copyright notices to match that of gnulib.
* Merge from origin/emacs-25Paul Eggert2017-01-012494-2526/+10381
|\ | | | | | | | | 2e2a806 Fix copyright years by hand 5badc81 Update copyright year to 2017
| * Fix copyright years by handPaul Eggert2017-01-0194-105/+105
| | | | | | | | | | These are dates that admin/update-copyright did not update, or updated incorrectly.
| * Update copyright year to 2017Paul Eggert2016-12-312426-2454/+2487
| | | | | | | | Run admin/update-copyright.
* | ; Merge from origin/emacs-25Paul Eggert2017-01-010-0/+0
|\ \ | |/ | | | | | | | | The following commit was skipped: e092f08 Bump Emacs version to 25.1.91
| * Bump Emacs version to 25.1.91emacs-25.1.91Nicolas Petton2016-12-305-1119/+1112
| | | | | | | | | | | | | | | | * README: * configure.ac: * msdos/sed2v2.inp: * nt/README.W32: Bump Emacs version. * lisp/ldefs-boot.el: Update.
* | Merge from origin/emacs-25Paul Eggert2017-01-012-3/+308
|\ \ | |/ | | | | | | | | | | 665be69 ; Update ChangeLog.2 and AUTHORS files # Conflicts: # etc/AUTHORS
| * ; Update ChangeLog.2 and AUTHORS filesNicolas Petton2016-12-302-55/+363
| |
* | ; Merge from origin/emacs-25Paul Eggert2017-01-010-0/+0
|\ \ | |/ | | | | | | | | | | The following commits were skipped: e8f0d7d Backport: Remove an ambiguity from defvar's doc string. Fixe... af1b102 * lisp/emacs-lisp/inline.el: Fix apply-conversion (bug#25280)
| * Backport: Remove an ambiguity from defvar's doc string. Fixes bug #25292.Alan Mackenzie2016-12-301-4/+5
| | | | | | | | | | | | | | | | | | The ambiguity was whether INITVALUE is evaluated when it's not going to be used to set SYMBOL's value. * src/eval.c (defvar): Rewrite a paragraph of the doc string. (cherry picked from commit 8295e97f18490a535d1188a3daf0b0fd1bf4fa0d)
| * * lisp/emacs-lisp/inline.el: Fix apply-conversion (bug#25280)Stefan Monnier2016-12-281-3/+3
| | | | | | | | | | (inline--dont-quote): Quote the function with #' when passing it to `apply'. Cherry picked from commit e6161f648903d821865b9610b3b6aa0f82a5dcb7.
* | Merge from origin/emacs-25Paul Eggert2017-01-0112-28/+119
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 697167b ; Improve wording of previous change in variables.texi d7973e8 Document 'default-toplevel-value' and 'set-default-toplevel-v... 8b71826 Don't modify minibuffer variables globally 5b5e036 Revert to pre-25.1 behavior in ffap 19994a1 * lisp/ffap.el: Fix obsolete comment referencing ffap-bug. 3ace730 Attempt to fix 64-bit AIX build f69bd79 Clarify usage of 'ediff-cleanup-hook' (Bug#24675) c04ac8a Document that variable binding order is unspecified 272554a * lisp/desktop.el (desktop-buffers-not-to-save): Doc fix. 08de101 Fix M-x hints on Mac port 86a297a Work around reporting a dpi change in apply_xft_settings cf1f985 ; lisp/skeleton.el (skeleton-insert): Fix typo in last change 9e1209d Amend the version number of CC Mode 5.33 -> 5.32.99. Don't m... 88cdf14 Improve skeleton docstrings
| * ; Improve wording of previous change in variables.texiEli Zaretskii2016-12-271-6/+7
| | | | | | | | | | * doc/lispref/variables.texi (Default Value): Improve wording of last change.
| * Document 'default-toplevel-value' and 'set-default-toplevel-value'Eli Zaretskii2016-12-261-0/+38
| | | | | | | | | | * doc/lispref/variables.texi (Default Value): Document 'default-toplevel-value' and 'set-default-toplevel-value'.
| * Don't modify minibuffer variables globallyLeo Liu2016-12-251-7/+7
| | | | | | | | * lisp/files.el (cd): Use setq-local instead. (Bug#25260)
| * Revert to pre-25.1 behavior in ffapEli Zaretskii2016-12-241-2/+6
| | | | | | | | | | | | * lisp/ffap.el (ffap-lax-url): Change the default to t, to produce the same behavior as in Emacs 24.x. (Bug#25264) Explain the trade-offs of customizing this in the doc string.
| * * lisp/ffap.el: Fix obsolete comment referencing ffap-bug.Noam Postavsky2016-12-241-1/+1
| |
| * Attempt to fix 64-bit AIX buildEli Zaretskii2016-12-231-5/+5
| | | | | | | | | | * src/unexaix.c (make_hdr, copy_text_and_data, write_segment): Fix type-casts that assumed 32-bit pointers. (Bug#25141)
| * Clarify usage of 'ediff-cleanup-hook' (Bug#24675)Philipp Stephani2016-12-231-3/+8
| | | | | | | | * doc/misc/ediff.texi (Hooks): Clarify usage of 'ediff-cleanup-hook'
| * Document that variable binding order is unspecifiedPhilipp Stephani2016-12-232-0/+17
| | | | | | | | | | | | * doc/lispref/variables.texi (Local Variables): * cl.texi (Modify Macros): Document that binding order in 'let' and 'cl-letf' is unspecified.
| * * lisp/desktop.el (desktop-buffers-not-to-save): Doc fix.Eli Zaretskii2016-12-231-1/+4
| |
| * Fix M-x hints on Mac portStefan Monnier2016-12-231-0/+1
| | | | | | | | | | | | * lisp/simple.el (execute-extended-command--shorter): Call input-pending-p to trigger input processing on some systems, such as Mac port. (Bug#23002)
| * Work around reporting a dpi change in apply_xft_settingsMartin Rudalics2016-12-221-2/+17
| | | | | | | | | | * src/xsettings.c (apply_xft_settings): Don't report a change when dpi settings do not differ substantially.
| * ; lisp/skeleton.el (skeleton-insert): Fix typo in last changeNoam Postavsky2016-12-201-2/+2
| |
| * Amend the version number of CC Mode 5.33 -> 5.32.99. Don't merge to trunk.Alan Mackenzie2016-12-202-1/+8
| | | | | | | | | | lisp/progmodes/cc-defs.el: Amend the version number. etc/NEWS: Add an item explaining the change.
| * Improve skeleton docstringsNoam Postavsky2016-12-191-6/+6
| | | | | | | | | | | | | | * lisp/skeleton.el (skeleton-end-newline): Remove mention of `skeleton-end-hook', its default code was moved into `skeleton-insert'. (skeleton-insert): Mention `skeleton-end-newline' and move reference to `skeleton-end-hook' above the explanation of skeleton syntax.
* | ; Merge from origin/emacs-25Paul Eggert2017-01-010-0/+0
|\ \ | |/ | | | | | | | | The following commit was skipped: ce55382 ; Auto-commit of loaddefs file.