]> git.eshelyaron.com Git - emacs.git/log
emacs.git
7 years agoAugment Flymake API for third-party extensions scratch/flymake-augment-api
João Távora [Thu, 19 Oct 2017 11:33:20 +0000 (12:33 +0100)]
Augment Flymake API for third-party extensions

See
https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00619.html

* doc/misc/flymake.texi (Flymake error types): Rewrite
example.
(Flymake utility functions): Augment with new API.

* lisp/progmodes/flymake.el (flymake-diagnostics): New function.
(flymake--diag-accessor): New helper macro.
(flymake-diagnostic-buffer, flymake-diagnostic-text)
(flymake-diagnostic-beg, flymake-diagnostic-end)
(flymake-diagnostic-backend): Accessors for diagnostic objects.
(flymake--overlays): Use flymake-diagnostic property.
(flymake--highlight-line): Simplify.  Only set
flymake-diagnostic property.
(flymake--handle-report, flymake-goto-next-error): Use
flymake-diagnostic property.
(flymake-show-diagnostic): Use diagnostic object.
(flymake--diagnostics-buffer-entries): Use
flymake-diagnostics.

7 years agoOn Windows default a frame's border width to zero (Bug#28873)
Martin Rudalics [Thu, 19 Oct 2017 07:51:12 +0000 (09:51 +0200)]
On Windows default a frame's border width to zero (Bug#28873)

* src/w32fns.c (Fx_create_frame): Default `border-width' to zero
as everywhere else, see Bug#28873.

7 years agoSpelling fixes
Paul Eggert [Thu, 19 Oct 2017 01:43:00 +0000 (18:43 -0700)]
Spelling fixes

* lisp/cedet/semantic/analyze/refs.el:
(semantic-analyze-proto-impl-toggle): Fix recently-introduced
misspelling of pop-to-buffer-same-window.

7 years agoUse pop-to-buffer-same-window instead of switch-to-buffer
Bastian Beischer [Wed, 18 Oct 2017 23:44:46 +0000 (02:44 +0300)]
Use pop-to-buffer-same-window instead of switch-to-buffer

* lisp/cedet/semantic/decorate/include.el
(semantic-decoration-include-visit):
Use pop-to-buffer-same-window instead of switch-to-buffer
(bug#28645).

* lisp/cedet/semantic/analyze/refs.el
(semantic-analyze-proto-impl-toggle): Same.

* lisp/cedet/semantic/senator.el (senator-go-to-up-reference):
Same.

* lisp/cedet/semantic/mru-bookmark.el (semantic-mrub-visit):
Same.

* lisp/cedet/semantic/complete.el (semantic-complete-jump):
Same.

Copyright-paperwork-exempt: yes

7 years agoFix the MSDOS build.
Eli Zaretskii [Wed, 18 Oct 2017 17:21:25 +0000 (20:21 +0300)]
Fix the MSDOS build.

* msdos/sed1v2.inp (GETADDRINFO_A_LIBS, LIBLCMS2, XDBE_LIBS)
(XDBE_FLAGS, HYBRID_MALLOC, LIBSYSTEMD_CFLAGS)
(LIBSYSTEMD_LIBS): Edit to empty.
(LIBRESOLV, DEPFLAGS, MKDEPDIR, YMF_PASS_LDFLAGS)
(PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS): Remove editing.
Remove editing of lines that are no longer present in
src/Makefile.in.
* msdos/sed2v2.inp (NEED_MKTIME_INTERNAL)
(NEED_MKTIME_WORKING): Define to 1.
(HAVE_STRUCT_DIRENT_D_TYPE): Define to 1 for
DJGPP >= 2.05.
(HAVE_STRUCT_ATTRIBUTE_ALIGNED): Define to 1.
Define PACKAGE_VERSION, not VERSION.
(FLEXIBLE_ARRAY_MEMBER): Define to empty.
(HAVE_DECL_*_UNLOCKED): Define to 0.
(HAVE___BUILTIN_FRAME_ADDRESS): Define to 1.
(PENDING_*): Don't define, as Gnulib no longer supports that.
Instead, define _IOERR as it is in libc/file.h.
* msdos/sed3v2.inp: Use $(CURDIR) instead of $(shell cd) to
determine the current directory.
(UPDATE_MANIFEST, UTILITIES): Don't edit.
* msdos/sedlisp.inp (FIND_DELETE): Edit to "-delete".
* msdos/sedlibmk.inp (AUTO_DEPEND): Define to yes.
(HYBRID_MALLOC): Edit to empty.
(am__cd): Don't edit.
(../config.status): Replaces $(top_builddir)/config.status.
Define OMIT_GNULIB_MODULE_foo = true for modules not built for
MS-DOS.  Convert GL_GENERATE_xxx_H_TRUE and
GL_GENERATE_xxx_H_FALSE into values of GL_GENERATE_xxx_H.
* msdos/mainmake.v2 (src): Use 'compile-one-process', and make
the command line shorter to fit into 126-char limit of
command.com.
* config.bat: Generate src/deps/*.d files.  Rename more files
like djtar on plain DOS would.
Don't rename src/dir.h: it is long gone.  Edit
lib/gnulib.mk.in using the same scripts as for
lib/Makefile.in.
* msdos/depfiles.bat: Create *.d files, not *.Po.

* src/thread.c (Fmake_thread) [!THREADS_ENABLED]: Improve the
error message.
* src/thread.h [MSDOS]: Include <signal.h>.
* src/sysselect.h (select) [MSDOS]: Undefine, to avoid
compilation errors.
* src/sysdep.c (block_interrupt_signal, restore_signal_mask):
Expose to MSDOS build.
* src/process.c (update_processes_for_thread_death)
[!subprocess]: No-op implementation.
[HAVE_SETRLIMIT]: Move inclusion of sys/resource.h and
declaration of nofile_limit outside "#ifdef subprocesses", as
it's needed for MSDOS.
* src/msdos.c (faccessat): Declare fullname[].
* src/msdos.h (ENOTSUP): Define to be identical to ENOSYS.
Include termhooks.h.
* src/conf_post.h [WINDOWSNT]: Include ms-w32.h only on
WINDOWSNT, not DOS_NT.

* admin/admin.el (set-version): Set version on PACKAGE_VERSION.

7 years agoFix line number display after 'widen'
Eli Zaretskii [Wed, 18 Oct 2017 16:16:16 +0000 (19:16 +0300)]
Fix line number display after 'widen'

* src/xdisp.c (maybe_produce_line_number): Don't use data cached
by line-number-mode on the first redisplay after the buffer is
widened.  (Bug#28879)

7 years agoRemove resizable attribute on macOS undecorated frames (bug#28512)
Alan Third [Tue, 17 Oct 2017 09:51:03 +0000 (10:51 +0100)]
Remove resizable attribute on macOS undecorated frames (bug#28512)

* src/nsterm.m (FRAME_DECORATED_FLAGS): Remove Cocoa specific #define.
(initFrameFromEmacs): Remove Cocoa specific window style attributes.

7 years agoFix handling of `border-width' in `frameset--restore-frame' (Bug#28873)
Martin Rudalics [Wed, 18 Oct 2017 08:04:40 +0000 (10:04 +0200)]
Fix handling of `border-width' in `frameset--restore-frame' (Bug#28873)

* lisp/frameset.el (frameset--restore-frame): Don't process
`border-width' parameter via ‘modify-frame-parameters’
(Bug#28873).

7 years agoMention how to send CC to > 1 address in a bug report
Tino Calancha [Wed, 18 Oct 2017 03:12:39 +0000 (12:12 +0900)]
Mention how to send CC to > 1 address in a bug report

* admin/notes/bugtracker (* More detailed information):
mention how to CC to more than 1 address (Bug#28833).

7 years agoImprove format-time-string doc
Paul Eggert [Wed, 18 Oct 2017 01:25:18 +0000 (18:25 -0700)]
Improve format-time-string doc

* doc/lispref/os.texi (Time Parsing): Fix some errors in the
documentation for format-time-string.  Document ^, #, %s, and %z
with colons.  Say that unrecognized sequences are output as-is.
* src/editfns.c (Fformat_time_string): %S can stand for 60.
Also mention unrecognized sequences.

7 years agoImprove documentation of 'line-number-display-width'
Eli Zaretskii [Tue, 17 Oct 2017 16:17:22 +0000 (19:17 +0300)]
Improve documentation of 'line-number-display-width'

* doc/lispref/display.texi (Size of Displayed Text): Document the
additional 2 columns used for line-number display.

* src/indent.c (Fline_number_display_width): Doc fix.  (Bug#28248)

7 years agoImplement vc-default-dir-extra-headers for vc-rcs
İ. Göktuğ Kayaalp [Mon, 9 Oct 2017 22:43:30 +0000 (01:43 +0300)]
Implement vc-default-dir-extra-headers for vc-rcs

Add a do-nothing implementation for vc-rcs to suppress the message which
the default function adds to the vc-dir buffer (Bug#28570).
* lisp/vc/vc-rcs.el (vc-rcs-dir-extra-headers): New function.

7 years agoIn NEWS give advice on use of `switch-to-buffer' (Bug#28645)
Martin Rudalics [Tue, 17 Oct 2017 08:24:54 +0000 (10:24 +0200)]
In NEWS give advice on use of `switch-to-buffer' (Bug#28645)

* etc/NEWS: Mention that applications should prefer
`pop-to-buffer-same-window' to `switch-to-buffer'.  (Bug#28645)

7 years agoDont update primary selection with winner-undo
Tino Calancha [Tue, 17 Oct 2017 07:20:08 +0000 (16:20 +0900)]
Dont update primary selection with winner-undo

* lisp/winner.el (winner-set):
Dont update primary selection when select-enable-primary
is non-nil (Bug#28631).

Co-authored-by: Noam Postavsky <npostavs@gmail.com>
7 years agoWork around ImageMagick bug 825
Paul Eggert [Tue, 17 Oct 2017 06:44:32 +0000 (23:44 -0700)]
Work around ImageMagick bug 825

This should fix several bugs reported recently against Emacs
(Bug#28518, Bug#28626, Bug#28632, Bug#28633, Bug#28770).
* src/image.c (imagemagick_load_image):
Do not call MagickWandTerminus.

7 years agoDocument rectangle-preview option more (Bug#27974)
Noam Postavsky [Sun, 15 Oct 2017 21:09:09 +0000 (17:09 -0400)]
Document rectangle-preview option more (Bug#27974)

* lisp/rect.el (string-rectangle):
* etc/NEWS.25: Mention `rectangle-preview'.

7 years agoDo not reject https://gnu.org in commit messages
Paul Eggert [Mon, 16 Oct 2017 22:54:06 +0000 (15:54 -0700)]
Do not reject https://gnu.org in commit messages

* build-aux/git-hooks/commit-msg: Do not reject commit messages
containing http: or ftp: URLs to gnu.org or fsf.org.  Instead,
rewrite the messages to use https: URLs.

7 years agoFix Edebug spec for cl-defun (bug#24255)
Gemini Lasswell [Mon, 16 Oct 2017 18:09:29 +0000 (11:09 -0700)]
Fix Edebug spec for cl-defun (bug#24255)

* lisp/emacs-lisp/cl-macs.el: Modify the Edebug spec for
`cl-lambda-list' to support destructuring argument lists.
(cl-defun, cl-defmacro): Fix spelling errors in docstrings.
* lisp/textmodes/rst.el: Remove alternate version of Edebug
specs for `cl-lambda-list' and `cl-type-spec'.

7 years agoFix errors in kmacro.el post-command-hook
Eli Zaretskii [Mon, 16 Oct 2017 16:36:06 +0000 (19:36 +0300)]
Fix errors in kmacro.el post-command-hook

* lisp/kmacro.el (kmacro-step-edit-active): Initialize to nil to
avoid 'void-variable' errors.  (Bug#28818)
* test/lisp/kmacro-tests.el
(kmacro-tests-step-edit-cleans-up-hook): Now succeeds.  (Bug#18708)

7 years agoFix range-error in image-dired.el
Eli Zaretskii [Mon, 16 Oct 2017 16:25:01 +0000 (19:25 +0300)]
Fix range-error in image-dired.el

* lisp/image-dired.el (image-dired-create-thumb-1): Avoid
overflowing an Emacs integer on 32-bit hosts.  (Bug#28809)

7 years agoFix 'line-number-display-width' in hscrolled windows
Eli Zaretskii [Mon, 16 Oct 2017 15:51:32 +0000 (18:51 +0300)]
Fix 'line-number-display-width' in hscrolled windows

* src/indent.c (line_number_display_width): Make sure a line
number is generated even when the first line of the window is
completely hscrolled out of view.  (Bug#28854)

7 years agoFix error in tramp-smb-handle-insert-directory
Michael Albinus [Mon, 16 Oct 2017 09:35:02 +0000 (11:35 +0200)]
Fix error in tramp-smb-handle-insert-directory

* lisp/net/tramp-smb.el (tramp-smb-handle-insert-directory):
Insert size information only when FULL-DIRECTORY-P is non-nil.

7 years agoDon't reject PBM header whitespace unnecessarily
Andy Moreton [Mon, 16 Oct 2017 08:23:32 +0000 (01:23 -0700)]
Don't reject PBM header whitespace unnecessarily

* lisp/image.el (image-type-header-regexps):
Allow two or more CRs or LFs in initial whitespace sequences.  See:
http://netpbm.sourceforge.net/doc/pbm.html

7 years agoFix regression in display of PPM images
Paul Eggert [Mon, 16 Oct 2017 08:14:58 +0000 (01:14 -0700)]
Fix regression in display of PPM images

Problem reported by Roland Winkler (Bug#28824#35).
Based on a patch proposed by Andy Moreton (Bug#28824#38).
* src/image.c (pbm_scan_index): New function.
(pbm_load): Use it to decode raw data correctly when its top bit
is set.

7 years agoRequire subr-x when compiling nnimap.el
Eric Abrahamsen [Mon, 16 Oct 2017 03:21:35 +0000 (20:21 -0700)]
Require subr-x when compiling nnimap.el

* lisp/gnus/nnimap.el (require): For the when-let* macro.

7 years agoFix ert-test finding by symbol (Bug#28849)
Noam Postavsky [Sun, 15 Oct 2017 15:38:21 +0000 (11:38 -0400)]
Fix ert-test finding by symbol (Bug#28849)

In 2017-07-28 "* lisp/subr.el (define-symbol-prop): New function", the
symbol used for ert tests in load-history was changed from
`ert-deftest' to `ert--test', but a couple of other places were not
updated accordingly.
* lisp/emacs-lisp/ert.el (ert-find-test-other-window): Pass
`ert--test' as the TYPE to `find-function-do-it'.
(top-level): Use `ert--test' as the key to the
`find-function-regexp-alist' entry.

7 years agoDon't remember old debugger window (Bug#17882)
Noam Postavsky [Fri, 13 Oct 2017 02:59:53 +0000 (22:59 -0400)]
Don't remember old debugger window (Bug#17882)

* lisp/emacs-lisp/debug.el (debug): Unset debugger-previous-window
when `debugger-will-be-back' is nil.

7 years agoDisable python native completion on w32 (Bug#28580)
Noam Postavsky [Fri, 13 Oct 2017 03:25:13 +0000 (23:25 -0400)]
Disable python native completion on w32 (Bug#28580)

* lisp/progmodes/python.el
(python-shell-completion-native-disabled-interpreters): For windows-nt
systems, put an empty string to match interpreters.

7 years agoLet select-frame-by-name choose any frame when called from lisp (Bug#25521)
Noam Postavsky [Fri, 1 Sep 2017 13:38:55 +0000 (09:38 -0400)]
Let select-frame-by-name choose any frame when called from lisp (Bug#25521)

* lisp/frame.el (select-frame-by-name): Choose from the whole list of
frames in the non-interactive part, if not found on the current
display.

7 years ago* lisp/dired-aux.el (dired-create-directory): Doc fix.
Eli Zaretskii [Sun, 15 Oct 2017 16:36:58 +0000 (19:36 +0300)]
* lisp/dired-aux.el (dired-create-directory): Doc fix.

7 years agoAvoid compilation warnings in optimized builds
Eli Zaretskii [Sun, 15 Oct 2017 16:20:58 +0000 (19:20 +0300)]
Avoid compilation warnings in optimized builds

* src/process.c (Fmake_network_process):
* src/image.c (xbm_scan, gif_load):
* src/fileio.c (Frename_file):
* src/data.c (Fmake_local_variable):
* src/buffer.c (fix_start_end_in_overlays):
* lib-src/etags.c (process_file_name): Mark variables with UNINIT
to avoid compiler warnings in optimized builds.

7 years ago; * src/composite.c (Fclear_composition_cache): Fix last change.
Eli Zaretskii [Sun, 15 Oct 2017 16:13:34 +0000 (19:13 +0300)]
; * src/composite.c (Fclear_composition_cache): Fix last change.

7 years agoImprove customization of arabic-shaper-ZWNJ-handling.
K. Handa [Sun, 15 Oct 2017 14:15:47 +0000 (23:15 +0900)]
Improve customization of arabic-shaper-ZWNJ-handling.

Make the effect of customizing arabic-shaper-ZWNJ-handling appear
immediately.
* lisp/language/misc-lang.el (arabic-shaper-ZWNJ-handling): Add :set
value.
* src/composite.c (Fclear_composition_cache): New function.
(syms_of_composite): Defsubr it.

7 years agoImprove customization type of 'mouse-drag-and-drop-region'
Charles A. Roelli [Sun, 15 Oct 2017 10:40:34 +0000 (12:40 +0200)]
Improve customization type of 'mouse-drag-and-drop-region'

* lisp/mouse.el (mouse-drag-and-drop-region): Provide a more
precise customization type.

7 years ago; Prefer https: to http: in GNU URLs
Paul Eggert [Sun, 15 Oct 2017 02:18:37 +0000 (19:18 -0700)]
; Prefer https: to http: in GNU URLs

7 years agoEncourage https: in commit messages
Paul Eggert [Sun, 15 Oct 2017 02:16:12 +0000 (19:16 -0700)]
Encourage https: in commit messages

* CONTRIBUTE: Prefer https: when citing.
* build-aux/git-hooks/commit-msg:
Diagnose http: and ftp: URLs to FSF or GNU hosts.

7 years ago; Cleanup of etc/NEWS
Michael Albinus [Sat, 14 Oct 2017 10:52:05 +0000 (12:52 +0200)]
; Cleanup of etc/NEWS

7 years agoFix wording in Elisp manual's child frames section (Bug#28819)
Martin Rudalics [Sat, 14 Oct 2017 08:30:09 +0000 (10:30 +0200)]
Fix wording in Elisp manual's child frames section (Bug#28819)

* doc/lispref/frames.texi (Child Frames): Fix wording (Bug#28819).

7 years agoAnother fix for C mode fontification of w32 source files
Eli Zaretskii [Sat, 14 Oct 2017 08:19:56 +0000 (11:19 +0300)]
Another fix for C mode fontification of w32 source files

* .dir-locals.el (c-mode) <c-noise-macro-names>: Add
"CALLBACK", to correctly fontify functions with this attribute.

7 years agoFix fontification of ALIGN_STACK functions
Eli Zaretskii [Sat, 14 Oct 2017 08:17:34 +0000 (11:17 +0300)]
Fix fontification of ALIGN_STACK functions

* .dir-locals.el (c-mode) <c-noise-macro-names>: Add
"ALIGN_STACK", to correctly fontify functions with this attribute.

7 years agoMake sure thread stack is properly aligned on MS-Windows
Eli Zaretskii [Sat, 14 Oct 2017 08:13:47 +0000 (11:13 +0300)]
Make sure thread stack is properly aligned on MS-Windows

* src/systhread.c: Include w32term.h instead of windows.h.
(w32_beginthread_wrapper): Add ALIGN_STACK attribute, to ensure
the thread's stack is correctly aligned.
* src/w32term.h (ALIGN_STACK): Update commentary.

7 years agoDo not under-align pseudovectors
Paul Eggert [Sat, 14 Oct 2017 07:55:25 +0000 (00:55 -0700)]
Do not under-align pseudovectors

Problem reported by Fabrice Popineau in:
https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00357.html
Also see diagnosis by Eli Zaretskii in:
https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00476.html
* src/alloc.c (vector_alignment):
Now a multiple of alignof (max_align_t).

7 years agoFix indentation bug in multi-line CSS selectors
Simen Heggestøyl [Fri, 13 Oct 2017 19:48:12 +0000 (21:48 +0200)]
Fix indentation bug in multi-line CSS selectors

* lisp/textmodes/css-mode.el (css--colon-inside-selector-p): Fix
indentation of multi-line CSS selectors that include both a
pseudo-class and parenthesis.

* test/manual/indent/css-mode.css: Add test for the above change.

7 years ago; * etc/NEWS: Grammar and spelling fixes
Charles A. Roelli [Fri, 13 Oct 2017 18:51:13 +0000 (20:51 +0200)]
; * etc/NEWS: Grammar and spelling fixes

* etc/NEWS (Changes in Specialized Modes and Packages in Emacs 26.1)
(Lisp Changes in Emacs 26.1): Fix the grammar and spelling of some
entries.

7 years agognutls_mac_get_nonce_size has been added in gnutls 3.3
Andreas Schwab [Fri, 13 Oct 2017 09:47:29 +0000 (11:47 +0200)]
gnutls_mac_get_nonce_size has been added in gnutls 3.3

* src/gnutls.c (HAVE_GNUTLS_MAC_GET_NONCE_SIZE)
[GNUTLS_VERSION_NUMBER >= 0x030300]: Define.
(gnutls_mac_get_nonce_size): Depend on
HAVE_GNUTLS_MAC_GET_NONCE_SIZE.
(Fgnutls_macs): Use 0 for :mac-algorithm-noncesize if
!HAVE_GNUTLS_MAC_GET_NONCE_SIZE.

7 years ago; * CONTRIBUTE: More suggestions for using US English.
Eli Zaretskii [Fri, 13 Oct 2017 09:04:40 +0000 (12:04 +0300)]
; * CONTRIBUTE: More suggestions for using US English.

7 years ago* CONTRIBUTE: Suggest American English.
Paul Eggert [Fri, 13 Oct 2017 05:38:28 +0000 (22:38 -0700)]
* CONTRIBUTE: Suggest American English.

7 years agoFix this-command-keys for "M-x foo" commands
Eli Zaretskii [Thu, 12 Oct 2017 20:38:48 +0000 (23:38 +0300)]
Fix this-command-keys for "M-x foo" commands

* src/keyboard.c (Fset__this_command_keys): Don't assume KEYS is a
unibyte string.  (Bug#28798)

7 years agoLet rename-file rename dirs across filesystems
Paul Eggert [Thu, 12 Oct 2017 20:08:53 +0000 (13:08 -0700)]
Let rename-file rename dirs across filesystems

Problem diagnosed by Andreas Schwab (Bug#28792#65).
This fixes a bug that I introduced in
2017-09-10T22:39:24@eggert@cs.ucla.edu
"Fix race with rename-file etc. with dir NEWNAME".
* src/fileio.c (Frename_file): Copy a source directory across
file system boundaries even if its name does not end in slash.

7 years agoSimplify Flymake user documentation
João Távora [Thu, 12 Oct 2017 11:11:26 +0000 (12:11 +0100)]
Simplify Flymake user documentation

Fix some confusing parts of Flymake user documentation, like a
repeated listing of situations leading to a syntax check.
Documentation is now divided into three chapters only: "Using
Flymake", "Extending Flymake", and a chapter for the legacy backend.

Obsolete mention of "errors" and "lines" is replaced by
"diagnostics/problems" and "regions" where appropriate.

* doc/misc/flymake.texi (Overview of Flymake): Delete chapter.
(Using Flymake): Merge with chapter "Overview of Flymake".
(Installing Flymake): Delete chapter.
(Flymake mode, Running the syntax check)
(Navigating to error lines): Delete sections.
(Syntax check statuses): Review and augment with x-references.
(Backend exceptions): Mention shortcut in menu.

* lisp/progmodes/flymake.el (flymake-menu): Tweak minor mode
menu to not speak of "errors".
(flymake-goto-next-error, flymake-goto-prev-error): Fix
wording.

7 years ago* etc/NEWS: Mention the new version of Org.
Eli Zaretskii [Thu, 12 Oct 2017 07:52:44 +0000 (10:52 +0300)]
* etc/NEWS: Mention the new version of Org.

7 years agoDon't use (format "%s" ...) for string copying (Bug#28774)
Noam Postavsky [Thu, 12 Oct 2017 00:23:40 +0000 (20:23 -0400)]
Don't use (format "%s" ...) for string copying (Bug#28774)

As of 2017-10-04 'Speed up (format "%s" STRING) and the like', (format
"%s" STRING) no longer produces a new string.
* lisp/ido.el (ido-completions): Use `copy-sequence' to make a new
string, so that we can add text properties to (copies of) symbol
names.

7 years agoMake frame-list-z-order on NS match Windows behaviour (bug#28788)
Alan Third [Wed, 11 Oct 2017 21:17:10 +0000 (22:17 +0100)]
Make frame-list-z-order on NS match Windows behaviour (bug#28788)

* src/nsfns.m (Fns_frame_list_z_order): If terminal isn't a frame,
ignore it rather than returning nil.

7 years ago; * Update ldefs-boot.el emacs-26.0.90
Nicolas Petton [Wed, 11 Oct 2017 20:55:13 +0000 (22:55 +0200)]
; * Update ldefs-boot.el

7 years agoBump Emacs version to 26.0.90
Nicolas Petton [Wed, 11 Oct 2017 20:39:17 +0000 (22:39 +0200)]
Bump Emacs version to 26.0.90

* README:
* configure.ac:
* msdos/sed2v2.inp:
* nt/README.W32: Bump Emacs version.

7 years agoUpdate authors.el
Nicolas Petton [Wed, 11 Oct 2017 13:12:09 +0000 (15:12 +0200)]
Update authors.el

* admin/authors.el (authors-valid-file-names)
(authors-renamed-files-alist): Additions.

7 years ago* admin/authors.el (authors-aliases): Additions.
Nicolas Petton [Wed, 11 Oct 2017 13:11:14 +0000 (15:11 +0200)]
* admin/authors.el (authors-aliases): Additions.

7 years ago; * ChangeLog.3: ChangeLog fixes.
Nicolas Petton [Wed, 11 Oct 2017 13:10:28 +0000 (15:10 +0200)]
; * ChangeLog.3: ChangeLog fixes.

7 years ago* ChangeLog.3: Update.
Nicolas Petton [Wed, 11 Oct 2017 13:09:02 +0000 (15:09 +0200)]
* ChangeLog.3: Update.

7 years agoFix docstring style for 'functionp'
Radon Rosborough [Wed, 11 Oct 2017 13:08:18 +0000 (16:08 +0300)]
Fix docstring style for 'functionp'

* src/eval.c (functionp): Make docstring start with verb.
(Bug#28781)

7 years agoFormat shell commands in tramp.texi
Michael Albinus [Wed, 11 Oct 2017 08:57:29 +0000 (10:57 +0200)]
Format shell commands in tramp.texi

* doc/misc/tramp.texi (Obtaining Tramp, Remote shell setup):
Format shell commands better.

7 years agoUnbreak the button in the Flymake diagnostics buffer again
João Távora [Tue, 10 Oct 2017 15:20:51 +0000 (16:20 +0100)]
Unbreak the button in the Flymake diagnostics buffer again

Adding the 'keymap' property enabled RET but broke the mouse-action.

* lisp/progmodes/flymake.el
(flymake--diagnostics-buffer-entries): Use 'action' instead of 'keymap'.

7 years agoAdd mode map to Flymake diagnostic button
Mark Oteiza [Tue, 10 Oct 2017 14:24:45 +0000 (10:24 -0400)]
Add mode map to Flymake diagnostic button

* lisp/progmodes/flymake.el (flymake--diagnostics-buffer-entries): Add
keymap propery.

7 years agoTweak the Flymake diagnostics buffer again
João Távora [Sun, 8 Oct 2017 23:12:48 +0000 (00:12 +0100)]
Tweak the Flymake diagnostics buffer again

* lisp/progmodes/flymake.el
(flymake-diagnostics-buffer-mode-map): Don't bind [mouse-1].
(flymake-show-diagnostic): Rename from
flymake-show-diagnostic-at-point.  Really use another window.
(flymake-goto-diagnostic): Rename from
flymake-goto-diagnostic-at-point.
(flymake--diagnostics-buffer-entries): Use a button just for
the message bit.

7 years agoSimplify Flymake diagnostics buffer UX
Mark Oteiza [Sun, 8 Oct 2017 21:42:31 +0000 (22:42 +0100)]
Simplify Flymake diagnostics buffer UX

Don't create text-buttons unnecessarily, just bind RET and SPC in the
diagnostics buffer to a command that figures out which diagnostic it
was invoked on.

* lisp/progmodes/flymake.el
(flymake--diagnostics-buffer-mode-keymap): Renamed from
flymake--diagnostics-buffer-button-keymap.
(flymake-show-diagnostic-at-point): Don't take a button.
(flymake-goto-diagnostic-at-point): Don't pass button to
flymake-show-diagnostic-at-point.
(flymake--diagnostics-buffer-entries): Simplify.

7 years agoFirst stab at a Flymake diagnostics buffer
João Távora [Sat, 7 Oct 2017 15:52:45 +0000 (16:52 +0100)]
First stab at a Flymake diagnostics buffer

The diagnostics buffer summarizes the diagnostics of a buffer in a
tabulated list and is permanently updated after each Flymake check.

* lisp/progmodes/flymake.el (flymake--handle-report): Call
flymake-show-diagnostics-buffer under certain conditions.
(flymake-menu, flymake--diagnostics-buffer-source)
(flymake--diagnostics-buffer-button-keymap)
(flymake-show-diagnostic-at-point)
(flymake-goto-diagnostic-at-point)
(flymake--diagnostics-buffer-entries)
(flymake-diagnostics-buffer-mode)
(flymake--diagnostics-buffer-name)
(flymake-show-diagnostics-buffer): New definitions.

7 years ago* etc/NEWS (Flymake): Rewrite entry.
João Távora [Tue, 10 Oct 2017 14:57:52 +0000 (15:57 +0100)]
* etc/NEWS (Flymake): Rewrite entry.

7 years agoImprove the Flymake manual
Eli Zaretskii [Tue, 10 Oct 2017 14:08:51 +0000 (17:08 +0300)]
Improve the Flymake manual

* doc/misc/flymake.texi: Add a 'coding' cookie.  Add a
@syncodeindex directive for @vindex.  Use 2 spaces between
sentences.  Lower-case @cindex entries.
(Overview of Flymake): Fix use of @itemize and @pxref.  Fix
punctuation and markup.
(Backend exceptions): Use @emph instead of @dfn.  Add more
indexing.
(Customizable variables, Extending Flymake): Improve wording.
(Flymake error types): Fix usage of @itemize.  Improve wording.
(Backend functions): Fix punctuation.  Fix markup.  Add a
cross-reference to ELisp manual.
(Flymake utility functions): Add a cross-reference to ELisp manual.
(An annotated example backend): Fix punctuation and typos.
(Flymake mode, Running the syntax check)
(Navigating to error lines, Backend exceptions)
(Customizable variables, Flymake error types, Backend functions)
(Flymake utility functions, Proc customization variables)
(Locating a master file, Locating the buildfile)
(Starting the syntax check process, Parsing the output)
(Interaction with other modes): Fix indexing.  Add index entries
for functions, variables, and concepts.

7 years ago; * etc/NEWS: Clarify the description of "---" and "+++".
Eli Zaretskii [Tue, 10 Oct 2017 12:24:09 +0000 (15:24 +0300)]
; * etc/NEWS: Clarify the description of "---" and "+++".

7 years agoFix two Flymake bugs
João Távora [Tue, 10 Oct 2017 11:47:46 +0000 (12:47 +0100)]
Fix two Flymake bugs

* lisp/progmodes/flymake.el (define-fringe-bitmap): Protect
against --without-x.
(flymake--mode-line-format): Ensure mode-line's mouse-4 and mouse-5 work
in their own windows.

7 years agoDon't log "emergencies" in the Flymake legacy backend
João Távora [Tue, 10 Oct 2017 11:30:42 +0000 (12:30 +0100)]
Don't log "emergencies" in the Flymake legacy backend

* lisp/progmodes/flymake-proc.el (flymake-proc--panic)
(flymake-proc-legacy-flymake): Don't log "emergencies"

7 years agoAdd full documentation on new Flymake API
João Távora [Tue, 10 Oct 2017 01:14:46 +0000 (02:14 +0100)]
Add full documentation on new Flymake API

Also, as a minor addition to this API, set flymake-text
on the diagnostic overlay.  This enables a good example in
the section "Customization Flymake annotations".

* doc/misc/flymake.texi (Overview of Flymake)
(Syntax check statuses): Rework.
(Backend exceptions): Rename from "Troubleshooting"
(Customizable variables): Add flymake-start-on-flymake-mode. Rework.
(Extending Flymake): Write chapter.
(Customizing Flymake annotations, Flymake backends)
(Flymake utility functions, An annotated example backend):
New sections and subsections

* lisp/progmodes/flymake.el (flymake-diagnostic-functions)
(flymake-diagnostic-types-alist): Rework docstring.
(flymake--highlight-line): Set and use flymake-text property in overlay.
(flymake-goto-next-error, flymake-goto-prev-error): Fix funny quotes.

7 years agoFix some Flymake docstrings and messages
João Távora [Mon, 9 Oct 2017 20:51:02 +0000 (21:51 +0100)]
Fix some Flymake docstrings and messages

* lisp/progmodes/flymake.el
(flymake-start-on-flymake-mode): fix typo.
(flymake-mode): Add docstring.
(flymake-mode-line-format): Fix help-echo indications. mouse-2
describes flymake-mode.

7 years agoMake three new Flymake commands for debugging common problems
João Távora [Mon, 9 Oct 2017 20:33:09 +0000 (21:33 +0100)]
Make three new Flymake commands for debugging common problems

* lisp/progmodes/flymake.el (flymake-running-backends)
(flymake-disabled-backends)
(flymake-reporting-backends): Make interactive.
(flymake--collect): Take optional arg.

7 years ago; INSTALL.REPO: Add -d to "thorough cleaning" suggestion.
Noam Postavsky [Tue, 10 Oct 2017 09:36:59 +0000 (05:36 -0400)]
; INSTALL.REPO: Add -d to "thorough cleaning" suggestion.

7 years ago; Typo fixes, mostly repeated words
Paul Eggert [Tue, 10 Oct 2017 05:53:19 +0000 (22:53 -0700)]
; Typo fixes, mostly repeated words

7 years ago; Spelling fixes
Paul Eggert [Tue, 10 Oct 2017 00:15:42 +0000 (17:15 -0700)]
; Spelling fixes

7 years ago; * src/lread.c (syms_of_lread) <module-file-suffix>: Fix typo
Alexander Gramiak [Mon, 9 Oct 2017 20:22:58 +0000 (14:22 -0600)]
; * src/lread.c (syms_of_lread) <module-file-suffix>: Fix typo

7 years ago* admin/authors.el (authors-renamed-files-alist): addition.
Nicolas Petton [Mon, 9 Oct 2017 19:50:53 +0000 (21:50 +0200)]
* admin/authors.el (authors-renamed-files-alist): addition.

7 years ago; ChangeLog.3 fixes
Nicolas Petton [Mon, 9 Oct 2017 19:50:44 +0000 (21:50 +0200)]
; ChangeLog.3 fixes

7 years agoFix PWD check on DOS_NT
Paul Eggert [Mon, 9 Oct 2017 17:47:56 +0000 (10:47 -0700)]
Fix PWD check on DOS_NT

* src/sysdep.c (get_current_dir_name_or_unreachable):
Do not consider a file name like "a:b" to be absolute on DOS_NT.

7 years agoFix unlikely overflows with wd length
Paul Eggert [Mon, 9 Oct 2017 17:30:40 +0000 (10:30 -0700)]
Fix unlikely overflows with wd length

* src/sysdep.c (get_current_dir_name_or_unreachable):
Avoid integer overflow if working directory name is absurdly long.
When allocating memory for getcwd, do not exceed MAXPATHLEN.

7 years ago* lisp/gnus/message.el: Improve last commit
Stefan Monnier [Mon, 9 Oct 2017 16:33:07 +0000 (12:33 -0400)]
* lisp/gnus/message.el: Improve last commit

(message-clone-locals): Don't mistakenly match other variables whose
name happens to include "message-default-charset".

7 years agoFix problems when editing raw undecoded message (Bug#28671)
Ken Olum [Mon, 9 Oct 2017 13:54:00 +0000 (16:54 +0300)]
Fix problems when editing raw undecoded message (Bug#28671)

* lisp/mail/rmailedit.el (rmail-cease-edit): If rmail-old-mime-state
is set, meaning that we are editing the raw message, do not
encode it again.  Delete old body after, not before, inserting
new, to avoid moving marker at beginning of next message.

7 years agoAvoid encoding errors in message.el
Eli Zaretskii [Mon, 9 Oct 2017 13:46:23 +0000 (16:46 +0300)]
Avoid encoding errors in message.el

* lisp/gnus/message.el (message-clone-locals): Don't clone
message-default-charset.  (Bug#25645)

7 years agoImprove doc string and prompt of 'grep-read-files'
Eli Zaretskii [Mon, 9 Oct 2017 13:39:25 +0000 (16:39 +0300)]
Improve doc string and prompt of 'grep-read-files'

* lisp/progmodes/grep.el (grep-read-files): Clarify in the doc
string and in the prompt that shell wildcards can be used.
Suggested by Allen Li <vianchielfaura@gmail.com>.  (Bug#28615)

7 years agoAvoid assertion violations when line numbers are displayed
Eli Zaretskii [Mon, 9 Oct 2017 12:28:16 +0000 (15:28 +0300)]
Avoid assertion violations when line numbers are displayed

* src/xdisp.c (redisplay_window): Clear the window's desired glyph
matrix before calling try_window with the same starting point.
This avoids assertion violations when switching from a buffer
without line numbers to a buffer with line numbers.  (Bug28710)

7 years ago; * lisp/emacs-lisp/rmc.el: Minor fix for copyright and license.
Glenn Morris [Mon, 9 Oct 2017 11:44:37 +0000 (07:44 -0400)]
; * lisp/emacs-lisp/rmc.el: Minor fix for copyright and license.

7 years agoBe lazy when starting Flymake checks
João Távora [Mon, 9 Oct 2017 10:12:57 +0000 (11:12 +0100)]
Be lazy when starting Flymake checks

Don't start the check immediately if the buffer is not being
displayed.  Wait until it is, using window-configuration-change-hook.

This enables the user to batch-enable flymake-mode on many buffers and
not have that operation exhaust system resources for checking each
one.  Likewise, an editing or save operation in a currently
non-displayed buffer does not immediately start a check.

* lisp/progmodes/flymake.el (flymake-start-on-flymake-mode):
Rename from flymake-start-syntax-check-on-find-file.
(flymake-start-syntax-check-on-find-file): Obsolete alias for
flymake-start-on-flymake-mode.
(flymake-start): Redesign.  Affect the global post-command-hook
and local window-configuraiton-change-hook.
(flymake--schedule-timer-maybe)
(flymake-after-change-function, flymake-after-save-hook): Pass
t to flymake-start.

* test/lisp/progmodes/flymake-tests.el (flymake-tests--call-with-fixture)
(dummy-backends, recurrent-backend): Start flymake check
explicitly and immediately.

7 years agoFix last change in frameset.el
Eli Zaretskii [Mon, 9 Oct 2017 07:40:37 +0000 (10:40 +0300)]
Fix last change in frameset.el

* lisp/frameset.el (frameset-filter-font-param): Fix a thinko in
filtering the 'font' parameter.  (Bug#17352)

7 years agoDescribe how window dividers can replicate vertical borders (Bug#27830)
Martin Rudalics [Mon, 9 Oct 2017 07:29:52 +0000 (09:29 +0200)]
Describe how window dividers can replicate vertical borders (Bug#27830)

* doc/emacs/frames.texi (Scroll Bars): Describe how window
dividers can be used to replicate vertical borders when scroll
bars are disabled (Bug#27830).
* doc/emacs/frames.texi (Window Dividers): Mention their use
in replicating vertical borders.

7 years agoAdd line-number faces to the display-line-numbers group
Alexander Gramiak [Sat, 7 Oct 2017 21:02:01 +0000 (15:02 -0600)]
Add line-number faces to the display-line-numbers group

See https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00151.html
and its resulting thread.

* lisp/display-line-numbers.el (display-line-numbers): Add to the
convenience group.
* lisp/faces.el (line-number):
(line-number-current-line): Add to the display-line-numbers group.

7 years agoIncrease xterm click count only within double-click-fuzz
Alexander Gramiak [Sat, 30 Sep 2017 21:47:56 +0000 (15:47 -0600)]
Increase xterm click count only within double-click-fuzz

* lisp/xt-mouse.el (xterm-mouse-event): Save the last click's position
and check it against the current click's position.  (Bug#28658)

7 years agoChange pause in fullscreen toggling for NS port (bug#28496)
Alan Third [Sun, 8 Oct 2017 18:26:34 +0000 (19:26 +0100)]
Change pause in fullscreen toggling for NS port (bug#28496)

* lisp/frame.el (toggle-frame-fullscreen): Replace sit-for with
sleep-for, and reduce time.

7 years agoHandle PARENTS properly in tramp-*-handle-make-directory
Michael Albinus [Sun, 8 Oct 2017 11:55:20 +0000 (13:55 +0200)]
Handle PARENTS properly in tramp-*-handle-make-directory

* lisp/net/tramp-adb.el (tramp-adb-handle-make-directory):
* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-make-directory):
Handle PARENTS properly.

* test/lisp/net/tramp-tests.el (tramp-test13-make-directory):
Extend test.

7 years ago; Merge from Gnulib (comment changes only)
Paul Eggert [Sun, 8 Oct 2017 06:08:24 +0000 (23:08 -0700)]
; Merge from Gnulib (comment changes only)

7 years agoImprove test for unreachable dirs
Paul Eggert [Sun, 8 Oct 2017 05:56:29 +0000 (22:56 -0700)]
Improve test for unreachable dirs

* src/sysdep.c (get_current_dir_name_or_unreachable):
New function, with most of the old contents of
emacs_get_current_dir_name.
(emacs_get_current_dir_name): Use it.  Use a simpler
test for unreachable directory strings, and also apply
it to getcwd etc. (Bug#27871)

7 years ago* src/xsmfns.c (x_session_initialize): Fix memory leak.
Paul Eggert [Sun, 8 Oct 2017 05:48:49 +0000 (22:48 -0700)]
* src/xsmfns.c (x_session_initialize): Fix memory leak.

7 years agoMerge branch 'emacs-26' of git.sv.gnu.org:/srv/git/emacs into emacs-26
K. Handa [Sun, 8 Oct 2017 02:56:06 +0000 (11:56 +0900)]
Merge branch 'emacs-26' of git.sv.gnu.org:/srv/git/emacs into emacs-26

7 years agoNew option for handling ZWNJ in Arabic text rendering
K. Handa [Sun, 8 Oct 2017 02:48:01 +0000 (11:48 +0900)]
New option for handling ZWNJ in Arabic text rendering

Provide a new option 'arabic-shaper-ZWNJ-handling' that controls how
to display ZWNJ in Arabic text rendering (Bug#28339).
* lisp/language/misc-lang.el: Register arabic-shape-gstring in
composition-function-table.
(arabic-shaper-ZWNJ-handling): New variable.
(arabic-shape-log): New variable.
(arabic-shape-gstring): New function.
* lisp/composite.el (lgstring-remove-glyph): New function.