Alan Third
2ea4b84f5e
Fix NS tooltips showing in the wrong place (bug#27053)
...
* src/nsfns.m (compute_tip_xy): Get current mouse position instead of
last recorded position.
2017-05-25 21:50:49 +01:00
Thomas Fitzsimmons
9fb9e4b284
lisp/net/soap-client.el: Bump version to 3.1.2
...
* lisp/net/soap-client.el: Bump version to 3.1.2.
2017-05-25 08:49:58 -04:00
Thomas Fitzsimmons
4fa8336b03
Fix soap-inspect.el doc strings
...
* lisp/net/soap-inspect.el (soap-inspect-xs-attribute): Fix doc
string.
(soap-inspect-xs-attribute-group): Likewise.
2017-05-25 08:49:58 -04:00
Thomas Fitzsimmons
a928cfae60
Fix two soap-client.el byte compilation warnings
...
* lisp/net/soap-client.el (url-http-response-status): Add defvar.
(soap-fetch-xml-from-url): Remove special declaration of
url-http-response-status.
(soap-invoke-internal): Likewise.
2017-05-25 08:49:58 -04:00
Thomas Fitzsimmons
9a6ac2794f
lisp/net/soap-client.el: Require cl-lib version 0.6.1
...
* lisp/net/soap-client.el: Require cl-lib version 0.6.1.
2017-05-25 08:49:58 -04:00
Thomas Fitzsimmons
27cafd1368
lisp/net/soap-client.el: Shorten some long lines
...
* lisp/net/soap-client.el (soap-encode-xs-element): Remove
unnecessary progn.
(soap-xs-add-union): Wrap long line.
Co-authored-by: Stefan Monnier <monnier@iro.umontreal.ca>
2017-05-25 08:49:57 -04:00
Alex Harsanyi
349fbb3551
Remove cl dependency in soap-client.el and soap-inspect.el
...
* lisp/net/soap-inspect.el: Replace cl library with cl-lib, case
with cl-case, destructuring-bind with cl-destructuring-bind and
loop with cl-loop.
* lisp/net/soap-client.el: Replace cl library with cl-lib,
defstruct with cl-defstruct, assert with cl-assert, case with
cl-case, ecase with cl-ecase, loop with cl-loop and
destructuring-bind with cl-destructuring-bind.
Co-authored-by: Stefan Monnier <monnier@iro.umontreal.ca>
2017-05-25 08:49:57 -04:00
Michael Albinus
1a9ce7c54e
Switch Tramp to cl-lib
...
* lisp/net/tramp-compat.el (cl-lib): Require it rather than cl.
* lisp/net/tramp-ftp.el: Don't require cl.
* lisp/net/tramp-gvfs.el: Don't require cl.
(tramp-gvfs-handler-mounted-unmounted)
(tramp-gvfs-connection-mounted-p): Use `cl-*' macros.
* lisp/net/tramp-sh.el: Don't require cl.
(tramp-set-file-uid-gid): Use `shell-quote-argument'.
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter): Use `cl-*' macros.
* lisp/net/tramp-smb.el: Don't require cl.
(tramp-smb-read-file-entry): Use `cl-*' macros.
* lisp/net/tramp.el (cl-lib): Require it rather than cl.
(tramp-parse-file, tramp-parse-shostkeys-sknownhosts)
(tramp-parse-passwd, tramp-parse-etc-group)
(tramp-parse-putty): Use `cl-*' macros.
2017-05-25 10:04:12 +02:00
Paul Eggert
bfdc27c5f6
* CONTRIBUTE: Suggest autogen.sh's 'all' operand.
2017-05-25 00:43:42 -07:00
Paul Eggert
d7284da858
Port ATTRIBUTE_MAY_ALIAS to recent icc
...
* src/conf_post.h (ATTRIBUTE_MAY_ALIAS) [__ICC]:
Define to empty. Otherwise, icc (ICC) 17.0.4 20170411 says
“warning #2621 : attribute "__may_alias__" does not apply here”
for constructs like ‘struct sockaddr *sa = (whatever);
struct sockaddr_in __attribute__ ((__may_alias__)) *sin
= (struct sockaddr_in *) sa;’.
2017-05-25 00:25:09 -07:00
Paul Eggert
9ebc2bbe3c
Merge from gnulib
...
This incorporates:
2017-05-25 port to recent icc
* lib/intprops.h: Copy from gnulib.
2017-05-25 00:13:33 -07:00
Michael Albinus
b2ec91db89
Fix Tramp for python.el
...
* lisp/net/tramp.el (tramp-get-connection-process): Check,
that VEC is a `tramp-file-name' structure.
2017-05-24 22:26:20 +02:00
Alan Third
ad8b60ee74
Raise version of macOS we define instancetype for (bug#27059)
...
* src/nsterm.m: Increase supported version number.
2017-05-24 20:18:52 +01:00
Alan Third
d61d443fc0
Define new types on macOS 10.6 (bug#27041)
...
* src/nsterm.h: Enable instancetype typedef for older macOS, and use
correct NSUInteger instead of int.
2017-05-24 19:56:23 +01:00
Glenn Morris
c0f90833a7
Don't autoload new dns-mode command
...
* lisp/textmodes/dns-mode.el (dns-mode-ipv6-to-nibbles):
Remove autoload cookie.
2017-05-24 13:11:32 -04:00
Stefan Monnier
7dfe682ee7
* src/fns.c (sxhash): Fix records hashing (bug#27057, bug#26639)
...
(sxhash_vector): Make it work on pseudo vectors as well.
(sxhash): Treat records like vectors.
2017-05-24 11:55:13 -04:00
Michael Albinus
ac36012dc2
Adapt tramp-tests.el according to new defstruct
...
* test/lisp/net/tramp-tests.el (tramp-test03-file-name-defaults):
Fix test according to new defstruct.
(tramp-test29-environment-variables-and-port-numbers):
Expect it now as passed. Cleanup at the end.
2017-05-24 16:17:59 +02:00
Michael Albinus
dca22e86e0
Introduce a defstruct `tramp-file-name' as central data structure.
...
This solves also Bug#27009.
* lisp/net/tramp.el (tramp-current-domain)
(tramp-current-port): New defvars.
(tramp-file-name): New defstruct.
(tramp-file-name-user-domain, tramp-file-name-host-port)
(tramp-file-name-equal-p): New defuns.
(tramp-file-name-p, tramp-file-name-method)
(tramp-file-name-user, tramp-file-name-host)
(tramp-file-name-localname, tramp-file-name-hop)
(tramp-file-name-real-user, tramp-file-name-domain)
(tramp-file-name-real-host, tramp-file-name-port):
Remove defuns. They are provided by the defstruct, or not
needed anymore.
(tramp-dissect-file-name, tramp-buffer-name)
(tramp-make-tramp-file-name, tramp-get-buffer)
(tramp-set-connection-local-variables)
(tramp-debug-buffer-name, tramp-message)
(tramp-error-with-buffer, with-parsed-tramp-file-name)
(tramp-completion-dissect-file-name1)
(tramp-handle-file-name-as-directory)
(tramp-handle-file-name-directory)
(tramp-handle-file-remote-p, tramp-handle-file-symlink-p)
(tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-process-actions)
(tramp-check-cached-permissions, tramp-local-host-p)
(tramp-get-remote-tmpdir, tramp-call-process)
(tramp-call-process-region, tramp-read-passwd)
(tramp-clear-passwd):
* lisp/net/tramp-adb.el (tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb-handle-copy-file)
(tramp-adb-handle-process-file)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-get-hash-table)
(tramp-get-file-property, tramp-set-file-property)
(tramp-flush-file-property, tramp-flush-directory-property)
(tramp-get-connection-property)
(tramp-set-connection-property, tramp-connection-property-p)
(tramp-flush-connection-property, tramp-cache-print)
(tramp-list-connections, tramp-dump-connection-properties)
(tramp-parse-connection-properties):
* lisp/net/tramp-cmds.el (tramp-cleanup-connection):
* lisp/net/tramp-ftp.el (tramp-ftp-file-name-handler):
* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-expand-file-name)
(tramp-gvfs-url-file-name, tramp-gvfs-handler-askpassword)
(tramp-gvfs-handler-mounted-unmounted)
(tramp-gvfs-mount-spec, tramp-gvfs-get-remote-uid)
(tramp-gvfs-get-remote-gid)
(tramp-gvfs-maybe-open-connection):
* lisp/net/tramp-sh.el (tramp-sh-handle-file-truename)
(tramp-do-copy-or-rename-file-out-of-band)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-compute-multi-hops)
(tramp-maybe-open-connection)
(tramp-make-copy-program-file-name, tramp-get-remote-path)
(tramp-get-inline-coding):
* lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory)
(tramp-smb-handle-expand-file-name)
(tramp-smb-handle-file-acl, tramp-smb-handle-process-file)
(tramp-smb-handle-set-file-acl)
(tramp-smb-maybe-open-connection): Adapt according to defstruct.
2017-05-24 16:16:53 +02:00
Stephen Berman
08f00c01d6
Fix and improve UI of scroll bar menu (bug#27047)
...
In addition, since the Emacs manual writes "scroll bar", "tool
bar" and "menu bar", use this convention in the Show/Hide menues
and tooltips as well.
* lisp/menu-bar.el (menu-bar-showhide-scroll-bar-menu): Make
pressing a radio button in the menu actually show that it was
pressed. Replace the two radio buttons to turn the horizontal
scroll bar on and off with a single check-box toggle and add a
separator between this and the vertical scroll bar radio
buttons. Use conventional spelling.
(menu-bar-horizontal-scroll-bar)
(menu-bar-no-horizontal-scroll-bar): Remove, since now unused.
(menu-bar-showhide-tool-bar-menu, menu-bar-showhide-menu)
(menu-bar-mode): Use conventional spelling.
2017-05-24 13:33:27 +02:00
Katsumi Yamaoka
bba9917299
Remove string-as-unibyte
...
* lisp/gnus/canlock.el (canlock-sha1): Remove useless variable.
(canlock-make-cancel-key): No need to use string-as-unibyte.
2017-05-24 08:18:52 +00:00
Tino Calancha
61ef5c612d
Fix concatenation of "^" with diff-file-junk-re
...
This regexp contains "\\|", thus a concatenation
of "^" with it just matches the beginning of line for the
first alternative in diff-file-junk-re.
* lisp/vc/ediff-ptch.el (ediff-map-patch-buffer): Concat "^" with
diff-file-junk-re wrapped in a shy group.
2017-05-24 10:54:48 +09:00
Glenn Morris
2389ba2ebe
Suppress intermittent test failure on hydra
...
* test/lisp/emacs-lisp/eieio-tests/eieio-tests.el
(eieio-test-37-obsolete-name-in-constructor): Skip on hydra.
2017-05-23 20:44:52 -04:00
Glenn Morris
2a7bd9dc60
; Move recent test file to correct directory (my mistake)
2017-05-23 20:42:28 -04:00
Peder O. Klingenberg
8f6550b38c
New dns-mode command for IPv6 address conversion
...
This converts IPv6 addresses to a format suitable for
reverse lookup zone files. (Bug#26820)
* lisp/textmodes/dns-mode.el (dns-mode-map, dns-mode-menu):
Add dns-mode-ipv6-to-nibbles.
(dns-mode-ipv6-to-nibbles, dns-mode-reverse-and-expand-ipv6):
New functions.
* test/lisp/dns-mode-tests.el: New file.
; * etc/NEWS: Mention this.
2017-05-23 20:34:08 -04:00
Noam Postavsky
ef9f5c672a
Protect *Backtrace* from being killed (Bug#26650)
...
* lisp/emacs-lisp/debug.el (debugger-mode): Call `top-level' in
`kill-buffer-hook'.
2017-05-23 20:11:23 -04:00
Noam Postavsky
d158629cb6
Give a name to lisp-mode's adaptive-fill-function (Bug#22730)
...
* lisp/emacs-lisp/lisp-mode.el (lisp-adaptive-fill): New function.
(lisp-mode-variables): Use it.
2017-05-23 20:01:41 -04:00
Philipp Stephani
bf4f69ab6d
vc-hg.el: Silence byte compiler warning
...
* lisp/vc/vc-hg.el (compilation-arguments): Forward-declare.
2017-05-23 21:23:55 +02:00
Paul Eggert
cd9c7a0617
Don't warn about missing brances on macOS
...
On macOS, removing -Wmissing-braces is not enough; the warning has to
be disabled explicitly.
2017-05-23 21:18:35 +02:00
Wilfred Hughes
63d0a3c63f
Don't treat ' as a string delimiter in RPM spec files
...
' is commonly used as an apostrophe in the prose sections of spec
files, which was erroneously highlighted as strings. See for example
http://kmymoney2.sourceforge.net/phb/rpm-example.html
* lisp/progmodes/sh-script.el (sh-mode-syntax-table): Treat ' as
punctuation in RPM spec files.
2017-05-23 18:48:19 +01:00
Stefan Monnier
9b0662d369
* lisp/emacs-lisp/cl-indent.el: Don't require CL. Use lexical-binding.
...
(common-lisp-indent-function-1): Remove unused var `last-point`.
(lisp-indent-error-function): Move defvar before first use.
2017-05-23 09:23:54 -04:00
Stefan Monnier
2eee73e7bf
* lisp/international/rfc1843.el: Don't require CL. Use lexical-binding.
2017-05-23 09:18:26 -04:00
Stefan Monnier
f037e98fe9
* lisp/international/utf7.el: Don't require CL. Use lexical-binding.
2017-05-23 09:12:06 -04:00
Stefan Monnier
a8d0a91841
* lisp/net/shr.el: Use cl-lib instead of cl.
2017-05-23 09:09:28 -04:00
Stefan Monnier
91b114354d
* test/src/fns-tests.el, test/src/data-tests.el: Don't use cl
...
* test/src/data-tests.el (binding-test-manual, binding-test-setq-default)
(binding-test-makunbound, data-tests-varalias-watchers)
(data-tests-local-variable-watchers): Silence compiler warnings.
2017-05-23 08:39:20 -04:00
Stefan Monnier
ea19dd64e2
* lisp/vc/vc-hg.el (compilation-directory): Silence byte-compiler.
2017-05-23 08:16:59 -04:00
Alan Third
4a485410ce
Fix GNUstep build
...
* src/nsterm.h [NS_IMPL_GNUSTEP]: Add typedefs for Cocoa-only types.
(NSWindowStyleMaskUtilityWindow): #define to NSUtilityWindowMask in
GNUstep and old versions of macOS.
* src/nsfns.m (ns-set-mouse-absolute-pixel-position): Function only
works in cocoa, not GNUstep.
2017-05-23 02:45:13 -07:00
Michael Albinus
107e60f49d
Add test for Bug#27009 in tramp-tests.el
...
* lisp/net/tramp-sh.el (tramp-compute-multi-hops):
Check `tramp-file-name-real-host' for being a local host.
* lisp/net/tramp.el (tramp-postfix-host-regexp): Fix docstring.
* test/lisp/net/tramp-tests.el (tramp-test-temporary-file-directory):
Declare default host for mock method.
(tramp-test29-environment-variables-and-port-numbers): New test.
2017-05-23 09:25:03 +02:00
Glenn Morris
ad2f52a143
; * lisp/net/tls.el (tls-program): Tweak :version.
...
; To be reset if no 25.3 happens.
2017-05-22 19:08:10 -04:00
Stefan Monnier
bc78276e81
* lisp/mail/rfc2047.el (rfc2047-decode-encoded-words): Set words to nil.
2017-05-22 16:53:18 -04:00
Sam Steingold
62046ed3e9
Fix "g" in hg&git push&pull buffers
...
lisp/vc/vc-git.el (vc-git--pushpull): Set locally
`compilation-directory' and `compilation-arguments'.
lisp/vc/vc-hg.el (vc-hg--pushpull): Likewise.
2017-05-22 15:48:21 -04:00
Eli Zaretskii
bf96464e2f
Fix current-line hscrolling in buffers with header-line
...
* src/xdisp.c (display_line): When testing the glyph row's
vertical position against the cursor position, account for header
line, if any. (Bug#27014)
2017-05-22 21:15:17 +03:00
Stefan Monnier
e7b9a6fc4a
* lisp/mail/rfc2047.el: Use cl-lib & lexical-binding, silence warning
...
(rfc2047-decode-encoded-words): Use dolist.
(rfc2047-decode-string): Avoid string-to-multibyte.
(rfc2047-pad-base64): Use pcase.
2017-05-21 23:18:58 -04:00
Dima Kogan
08848e33ba
Make ff-find-other-file symmetric for C++ (Bug#20192)
...
`cc-other-file-alist' has a mapping of file extensions to switch
between headers and sources, but the mappings weren't completely
symmetric. In particular .cpp would map to .hh, but .hh would NOT map
to .cpp.
* lisp/find-file.el (cc-other-file-alist): Map ".hh" and ".h" to all
C++ extensions to make them symmetric with the C++ extensions that map
to them. This lets repeated invocations of `ff-find-other-file'
toggle between all pairs of sources/headers.
2017-05-21 17:43:02 -04:00
Philipp Stephani
32f80eb678
Fix definition of whitespace in JSON
...
See
https://lists.gnu.org/archive/html/emacs-devel/2017-05/msg00115.html .
* lisp/json.el (json-skip-whitespace): Fix definition.
* test/lisp/json-tests.el (test-json-skip-whitespace): Adapt unit
test.
2017-05-21 23:03:01 +02:00
Paul Eggert
140aefc341
; Spelling fix
2017-05-21 13:42:36 -07:00
Philipp Stephani
b69f6a779a
Improve module function terminology
...
Module functions were previously called "function environments" when
the functions created by module_make_functions were lambdas. Now we
can adapt the terminology and rename "function environments" to
"module functions" everywhere. This also removes the name clash
between "function environments" and "module environments."
* src/emacs-module.c (module_make_function): Adapt comment to reality;
stop using "function environment" terminology.
(funcall_module): Stop using "function environment" terminology.
2017-05-21 22:33:50 +02:00
Philipp Stephani
6f1f88224c
Avoid uninitialized read
...
* src/nsterm.m (ns_read_socket): Don't read uninitialized variable 'nevents'.
2017-05-21 21:50:36 +02:00
Philipp Stephani
fa389f5b54
Fix call of registerServicesMenuSendTypes
...
* src/nsterm.m (initFrameFromEmacs:): nil is not allowed for
returnTypes; pass an empty array instead.
2017-05-21 21:50:30 +02:00
Philipp Stephani
6dd94bcc6b
Clean up code around 'ns-list-services'
...
* src/nsfns.m (Fns_list_services): Remove unreachable code. In this
branch NS_IMPL_COCOA cannot be defined.
(interpret_services_menu): Define only if called to avoid compiler
warnings about unused static functions.
2017-05-21 21:50:25 +02:00
Philipp Stephani
2d8215ae6d
Remove unused automatic variables
...
* nsterm.m (ns_read_socket):
* macfont.m (macfont_open): Remove unused automatic variables.
2017-05-21 21:50:18 +02:00