1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-02-01 20:06:00 +00:00
Commit Graph

130592 Commits

Author SHA1 Message Date
Eli Zaretskii
82b6c765ff Improve indexing of multi-file/buffer Isearch commands
* doc/emacs/maintaining.texi (Identifier Search): Change wording
of index entries to make them different from those for multi-file
isearch commands.  (Bug#28584)
* doc/emacs/search.texi (Other Repeating Search): Index the
multi-* commands.  (Bug#28584)  Rearrange the indexing to keep
each index entry close to its subject.
2017-09-30 15:08:47 +03:00
Mark Oteiza
645ff6c702 Add CAM02 JCh and CAM02-UCS J'a'b' conversions
* src/lcms.c (rad2deg, parse_jch_list, parse_jab_list, xyz_to_jch):
(jch_to_xyz, jch_to_jab, jab_to_jch): New functions.
(lcms-jch->xyz, lcms-jch->xyz, lcms-jch->jab, lcms-jab->jch): New Lisp
functions.
(lcms-cam02-ucs): Refactor.
(syms_of_lcms2): Declare new functions.
* test/src/lcms-tests.el (lcms-roundtrip, lcms-ciecam02-gold):
(lcms-jmh->cam02-ucs-silver): New tests.
* etc/NEWS: Mention new functions.
2017-09-30 08:00:53 -04:00
Eli Zaretskii
157007b58e Fix uses of @kindex in the Emacs manual
* doc/emacs/programs.texi (Expressions, Semantic, Hungry Delete):
* doc/emacs/mark.texi (Global Mark Ring)
(Disabled Transient Mark):
* doc/emacs/buffers.texi (Select Buffer):
* doc/emacs/mule.texi (File Name Coding): Fix @kindex entries
which used @key.  Reported by Marcin Borkowski <mbork@mbork.pl>.
2017-09-30 11:27:29 +03:00
Eli Zaretskii
63a45e8837 Merge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/emacs into emacs-26 2017-09-30 09:57:58 +03:00
Paul Eggert
3ab2f9bbb9 Merge from gnulib
This incorporates:
2017-09-28 string: code style
2017-09-25 sys_types: update URL
2017-09-23 install-sh: do not assume / = //
2017-09-21 mktime: port to OpenVMS
* build-aux/install-sh, m4/mktime.m4, m4/string_h.m4:
* m4/sys_types_h.m4: Copy from Gnulib.
* lib/gnulib.mk.in: Regenerate.
2017-09-29 21:56:21 -07:00
Paul Eggert
cbc8324488 Prefer HTTPS to HTTP for gnu.org
This catches some URLs I missed in my previous scan,
or perhaps were added after the scan.
2017-09-29 17:48:22 -07:00
Paul Eggert
bbda601d1d ; Spelling fixes 2017-09-29 16:41:50 -07:00
Noam Postavsky
695cf5300b Wait for frame visibility with timeout in w32term too
* src/w32term.c (syms_of_w32term) [x-wait-for-event-timeout]: New
variable.
(x_make_frame_visible): Wait for frame to become visible according to
its value.
(input_signal_count): Remove.
2017-09-29 18:40:06 -04:00
Noam Postavsky
e1f6e3127a Bring back the busy wait after x_make_frame_visible (Bug#25521)
But wait specfically for a MapNotify event, and only for a
configurable amount of time.
* src/xterm.c (syms_of_xterm) [x-wait-for-event-timeout]: New
variable.
(x_wait_for_event): Use it instead of hardcoding the wait to 0.1s.
(x_make_frame_visible): Call x_wait_for_event at the end.
* etc/NEWS: Announce x_wait_for_event.
2017-09-29 18:40:06 -04:00
Philipp Stephani
bccf635217 ; * src/gtkutil.c (xg_check_special_colors): Add another GTK+ FIXME. 2017-09-29 22:47:33 +02:00
Eli Zaretskii
f428757cdb Merge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/emacs into emacs-26 2017-09-29 22:03:30 +03:00
Glenn Morris
26d58f0c58 ; Standardize license notices 2017-09-29 12:49:19 -04:00
Eli Zaretskii
73dba0f466 Fix last doc string change in simple.el
* lisp/simple.el (shell-command-saved-pos)
(region-extract-function, region-bounds): Doc fixes.  (Bug#28609)
2017-09-29 15:59:17 +03:00
Eli Zaretskii
61225964ed Revert "bug#28609: simple.el"
This reverts commit a75ab3b3fb.
2017-09-29 15:53:27 +03:00
Devon Sean McCullough
a75ab3b3fb bug#28609: simple.el
Correct grammar; also, call a pair a pair.

(cherry picked from commit 25ef543a97)
2017-09-29 15:50:51 +03:00
Eli Zaretskii
c7a21430c1 ; * etc/NEWS: Fix last change. 2017-09-29 13:27:42 +03:00
Eli Zaretskii
33401b26b1 Merge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/emacs into emacs-26 2017-09-29 13:24:05 +03:00
Rasmus
d4b2bbdc73 Merge branch 'emacs-26' into scratch/org-mode-merge 2017-09-29 10:41:51 +02:00
Eli Zaretskii
c1ac8c170f Merge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/emacs into emacs-26 2017-09-29 10:02:33 +03:00
Noam Postavsky
af130f900f Fix ert backtrace saving for non-`signal'ed errors (Bug#28333)
* lisp/emacs-lisp/ert.el (ert--run-test-debugger): Take the frames
above the `debugger' frame, rather than assuming there will be a
`signal' frame.
2017-09-28 19:57:24 -04:00
Alan Third
7476eeaa23 Revert "Fix build on macOS (bug#28571)"
This reverts commit fec63089d5.

Prematurely pushed.
2017-09-28 22:27:02 +01:00
Alan Third
fec63089d5 Fix build on macOS (bug#28571)
* src/conf_post.h (HAVE_FUTIMENS, HAVE_FUTIMESAT, HAVE_UTIMENSAT)
[DARWIN_OS]: Undefine.
2017-09-28 19:01:12 +01:00
Simen Heggestøyl
0f9a78e770 Add tests for `css-current-defun-name'
* test/lisp/textmodes/css-mode-tests.el (css-test-current-defun-name)
(css-test-current-defun-name-nested)
(css-test-current-defun-name-complex): New tests for
`css-current-defun-name'.
2017-09-28 18:55:06 +02:00
Martin Rudalics
88a0dd71f1 In w32fullscreen_hook don't add decorations to undecorated frames
* src/w32term.c (w32fullscreen_hook): Do not add (or try to
remove) decorations for undecorated frames.
2017-09-28 10:10:21 +02:00
João Távora
ce540f8a68 Revert "Split flymake.el into flymake-proc.el and flymake-ui.el"
In other words, re-coalesce the two files,
lisp/progmodes/flymake-proc.el and lisp/progmodes/flymake-ui.el, back
into a single one, lisp/progmodes/flymake.el.

The changesets "Prefer HTTPS to FTP and HTTP in documentation" and
"allow nil init in flymake-allowed-file-name-masks to disable flymake"
are kept in place in the new lisp/progmodes/flymake.el.

This reverts Git commit eb34f7f5a2.

Don't merge this back to master as development happening there builds
upon this work. See also
https://lists.gnu.org/archive/html/emacs-devel/2017-09/msg00932.html.
2017-09-28 08:09:49 +01:00
João Távora
7cf59c6635 Revert "Add flymake-backends defcustom"
This reverts Git commit 13993c46a2.

Don't merge this back to master as development happening there builds
upon this work. See also
https://lists.gnu.org/archive/html/emacs-devel/2017-09/msg00932.html
2017-09-28 08:09:01 +01:00
Paul Eggert
a3f647c5c8 * src/editfns.c (styled_format): Fix typo in previous change. 2017-09-26 17:16:19 -07:00
Paul Eggert
0e82fa3416 Avoid some unnecessary copying in Fformat etc.
This patch is just for performance; it should not affect behavior.
On my platform, it made the microbenchmark (format "%S" load-path)
run about 45% faster.  It should also speed up calls like (message
"%s" STRING).
* src/callint.c (Fcall_interactively):
* src/dbusbind.c (XD_OBJECT_TO_STRING):
* src/editfns.c (Fmessage, Fmessage_box):
* src/xdisp.c (vadd_to_log, Ftrace_to_stderr):
Use styled_format instead of Fformat or Fformat_message,
to avoid unnecessary copying.
* src/editfns.c (styled_format): New arg NEW_RESULT.
All uses changed.  Reuse an input string if it has the
right value and if !NEW_RESULT.
* src/lisp.h (style_format): New decl.
2017-09-26 16:36:43 -07:00
John Wiegley
98a37e6014
lisp/simple.el: Indicate when a list of pairs is meant in a docstring 2017-09-26 12:37:13 -07:00
Philipp Stephani
1e5949642a ; * src/gtkutil.c (xg_create_frame_widgets): Add FIXME re. X drawing 2017-09-26 20:34:27 +02:00
Devon Sean McCullough
e7c8da4d05
bug#28609: simple.el
Correct grammar; also, call a pair a pair.
2017-09-26 09:32:36 -07:00
Dmitry Gutov
827db6b559 Use a separate syntax-ppss cache for narrowed buffers
* lisp/emacs-lisp/syntax.el (syntax-ppss-wide):
New variable, to contain the data from `syntax-ppss-last' and
`syntax-ppss-cache'.
(syntax-ppss-cache, syntax-ppss-last): Remove.
(syntax-ppss-narrow, syntax-ppss-narrow-start): New variables.
(syntax-ppss-flush-cache): Flush both caches.
(syntax-ppss--data): Return the appropriate last result and
buffer cache for the current restriction.
(syntax-ppss, syntax-ppss-debug): Use it (bug#22983).
2017-09-26 02:52:23 +03:00
Joerg Behrmann
a2244f417a Improve python3-compatibility of fallback completion (Bug#28499)
* lisp/progmodes/python.el (python-eldoc-setup-code): Use
inspect.getfullargspec instead of inspect.getargspec to avoid a
deprecation warning on every usage of eldoc in python-mode.

Copyright-paperwork-exempt: yes
2017-09-25 19:39:19 -04:00
Noam Postavsky
79162cb0db Fix subr-x-tests when running from elc
* test/lisp/emacs-lisp/subr-x-tests.el (subr-x-and-let*-test-group-1):
Use `eval' around the `should-error' cases.
2017-09-25 19:39:19 -04:00
Noam Postavsky
66d35ae49d * lisp/eshell/esh-util.el (eshell-condition-case): Add debug declaration. 2017-09-25 19:39:19 -04:00
Noam Postavsky
f5e72b04d9 Make sh-indentation into an alias for sh-basic-offset (Bug#21751)
* lisp/progmodes/sh-script.el (sh-indentation): Redefine as obsolete
variable alias for `sh-basic-offset'.
(sh-mode, sh-smie--indent-continuation)
(sh-smie-rc-rules, sh-basic-indent-line): Replace `sh-indentation'
with `sh-basic-offset'.
2017-09-25 19:39:19 -04:00
Noam Postavsky
a58d0c590a Fix loading of smie-config rules (Bug#24848)
* lisp/emacs-lisp/smie.el (smie-config--setter): Use `set-default'
instead of `setq-default'.
(smie-config): Use `custom-initialize-set' instead of
`custom-initialize-default' as the :initialize argument.

* lisp/progmodes/sh-script.el (sh-learn-buffer-indent): Mention that
we call `smie-config-guess' so that the user will have a chance to
find the correct docstring to consult.  Remove hedging comments
regarding use of abnormal hooks.
2017-09-25 19:39:19 -04:00
Dmitry Gutov
3a68dec327 ; Update NEWS for the change in eldoc-message 2017-09-26 02:25:03 +03:00
Dmitry Gutov
5a41dd0a1f Reset default-directory inside *xref-grep* buffer
* lisp/progmodes/xref.el (xref-collect-matches):
Reset default-directory, too. (Bug#28575)
2017-09-26 01:47:23 +03:00
Michael Albinus
49cd561dc6 * test/lisp/tramp-tests.el (tramp-test21-file-links): Special code for smb. 2017-09-25 17:52:24 +02:00
Mark Oteiza
b719f6b20b Loosen strict parsing requirement for desktop files
There are other desktop-looking files, for instance those having to do
with MIME typess, that would benefit from being able to be read by this
function.  It helps to have some flexibility.
* lisp/xdg.el (xdg-desktop-read-file): Remove an error condition.
* test/lisp/xdg-tests.el: Remove a test.
2017-09-25 08:45:08 -04:00
Mark Oteiza
c7a0c13777 * lisp/xdg.el (xdg-thumb-uri): Fix doc string. 2017-09-25 08:44:23 -04:00
Martin Rudalics
dc6b3560e5 Fix documentation of `make-frame' and related variables and hooks
* lisp/frame.el (before-make-frame-hook)
(after-make-frame-functions, frame-inherited-parameters)
(make-frame): Fix doc-strings.
* doc/lispref/frames.texi (Creating Frames): Fix description
of `make-frame' and related variables and hooks.
2017-09-25 10:09:32 +02:00
Eric Abrahamsen
3d3778d82a Accept new always' value for option buffer-offer-save'
Also revert ee512e9a82

* lisp/files.el (buffer-offer-save): In addition to nil and t, now
  allows a third symbol value, `always'. A buffer where this option is
  set to `always' will always be offered for save by
  `save-some-buffers'.
  (save-some-buffers): Check the exact value of this buffer-local
  variable. No longer check the buffer name, or the value of
  `write-contents-functions'.
* doc/lispref/buffers.texi (Killing Buffers): Note change in manual.
* doc/lispref/files.texi (Saving Buffers): Remove note about buffer
  names.
* etc/NEWS: Mention in NEWS.
2017-09-24 14:57:40 -07:00
Alan Third
638f64c40a Improve new NS scrolling variable names
* src/nsterm.m (ns-use-system-mwheel-acceleration): Replace with
'ns-use-mwheel-acceleration'.
(ns-touchpad-scroll-line-height): Replace with
'ns-mwheel-line-height'.
(ns-touchpad-use-momentum): Replace with 'ns-use-mwheel-momentum'.
* etc/NEWS: Change variable names.
2017-09-24 22:47:50 +01:00
Philipp Stephani
d93301242f Document 'replace-buffer-contents' in the manual.
* doc/lispref/text.texi (Replacing): New node.
2017-09-24 19:32:16 +02:00
Eli Zaretskii
18073beb14 Merge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/emacs into emacs-26 2017-09-23 22:12:49 +03:00
Alan Third
00e4e3e9d2 Fix undecorated frame resizing issues on NS (bug#28512)
* src/nsterm.m (EmacsView::updateFrameSize): Don't wait for the
toolbar on undecorated frames.
(EmacsView::initFrameFromEmacs): Group window flags correctly.
2017-09-23 19:47:21 +01:00
Eli Zaretskii
1eef11b7be Fix doc string of 'dired-listing-switches'
* lisp/dired.el (dired-listing-switches): Fix the quoting
example.  (Bug#28569)
2017-09-23 17:23:35 +03:00
Eli Zaretskii
820739bbb5 ; * doc/emacs/display.texi (Display Custom): Fix wording. 2017-09-23 10:45:46 +03:00