]> code.delx.au - gnu-emacs/log
gnu-emacs
8 years ago* lisp/widget.el (define-widget): Use `declare' (which does work now).
Stefan Monnier [Mon, 23 May 2016 23:57:46 +0000 (19:57 -0400)]
* lisp/widget.el (define-widget): Use `declare' (which does work now).

(widget-plist-member): Mark as obsolete.

8 years ago* lisp/image.el: Use lexical-binding
Stefan Monnier [Mon, 23 May 2016 19:12:24 +0000 (15:12 -0400)]
* lisp/image.el: Use lexical-binding

(image-scaling-factor, imagemagick-types-inhibit)
(imagemagick-enabled-types): Remove redundant :group.
(image--get-image): Apply de-Morgan and use car-safe.
(image-compute-scaling-factor): Use the argument.

8 years ago* lisp/image.el (image--get-image): Remove nonsensical code.
Glenn Morris [Mon, 23 May 2016 16:51:44 +0000 (12:51 -0400)]
* lisp/image.el (image--get-image): Remove nonsensical code.

; 1) put-image does not add a display property to its overlay
; 2) it does add a display text property
; 3) an overlay is not a cons whose car is 'image

8 years ago* lisp/image.el (image--get-image): Avoid requiring a library for
Glenn Morris [Mon, 23 May 2016 16:48:19 +0000 (12:48 -0400)]
* lisp/image.el (image--get-image): Avoid requiring a library for
one trivial operation.

8 years ago; * test/automated/data-tests.el: Standardize license notice.
Phillip Lord [Mon, 23 May 2016 15:59:24 +0000 (16:59 +0100)]
; * test/automated/data-tests.el: Standardize license notice.

8 years agoDon’t use only last protocol from getaddrinfo
Paul Eggert [Mon, 23 May 2016 15:56:42 +0000 (08:56 -0700)]
Don’t use only last protocol from getaddrinfo

Problem reported by Ken Brown in:
http://lists.gnu.org/archive/html/emacs-devel/2016-05/msg00483.html
* src/process.c (conv_addrinfo_to_lisp): New function.
(connect_network_socket): Arg is now a list of addrinfos, not
merely IP addresses.  All uses changed.  Use protocol from
each addrinfo.
(Fmake_network_process): Accumulate protocols into addrinfos
rather than just using the last one found.
(check_for_dns): Accumulate protocols here, too.
* src/process.h (struct Lisp_Process): Remove ai_protocol;
no longer needed.

8 years ago; * test/automated/viper-tests.el: Standardize license notice.
Glenn Morris [Mon, 23 May 2016 15:43:26 +0000 (08:43 -0700)]
; * test/automated/viper-tests.el: Standardize license notice.

8 years agoFix seq requirement that broke bootstrap
Paul Eggert [Mon, 23 May 2016 15:13:03 +0000 (08:13 -0700)]
Fix seq requirement that broke bootstrap

* lisp/image.el (image--get-image): Require seq here, not at the
top level, to avoid ‘(require seq) while preparing to dump’ while
bootstrapping.  Suggested by Tino Calancha in:
http://lists.gnu.org/archive/html/emacs-devel/2016-05/msg00477.html

8 years agoAdd automated test for viper-tests.el
Phillip Lord [Mon, 23 May 2016 09:39:26 +0000 (10:39 +0100)]
Add automated test for viper-tests.el

8 years agoFix viper undo breakage from undo-boundary changes
Phillip Lord [Sat, 21 May 2016 09:06:12 +0000 (10:06 +0100)]
Fix viper undo breakage from undo-boundary changes

* lisp/simple.el (undo-auto-disable-boundaries): New variable
* lisp/emulation/viper-init.el (viper-undo-in-complex-command,
  viper-undo-needs-adjustment): Rename
  variable to reflect new purpose,
  (viper-buffer-undo-list-mark): Remove
* lisp/emulation/viper-cmd.el (viper-set-complex-command-for-undo):
  Add undo using `undo-boundary', disable default undo-boundary
  addition.
* lisp/emulation/viper-cmd.el
  (viper-complete-complex-command-for-undo,viper-adjust-undo):
  Change function name, remove old undo list manipulation.
* lisp/emulation/viper-cmd.el (viper-undo,viper-repeat,
  viper-change-state-to-vi,viper-change-state):
  Update for function name change.

Addresses Bug #22295

8 years agoFix reference to obsolete fn ps-eval-switch
Kaushal Modi [Mon, 23 May 2016 00:48:33 +0000 (17:48 -0700)]
Fix reference to obsolete fn ps-eval-switch

lpr-eval-switch is functionally the same as ps-eval-switch,
which was obsoleted in 2cdeb903c57126d3ad5f0cbd72e182584b76ee29.
So use that instead (Bug#19717).
* lisp/printing.el (pr-switches): Use lpr-eval-switch instead of
ps-eval-switch.

8 years agoDo not trash symlinks to init file
Paul Eggert [Mon, 23 May 2016 00:29:58 +0000 (17:29 -0700)]
Do not trash symlinks to init file

If the user’s init file is a symbolic link, do not break the link
when initializing the package system.  Problem reported by Jackson
Hamilton (Bug#23050).
* lisp/emacs-lisp/package.el (package--ensure-init-file):
Bind find-file-visit-truename when visiting the init file, and
save and restore the buffer name the way cus-edit does in a
similar situation (Bug#454).

8 years ago; * test/lisp/mouse-tests.el: Standardize license notice.
Glenn Morris [Mon, 23 May 2016 00:20:48 +0000 (17:20 -0700)]
; * test/lisp/mouse-tests.el: Standardize license notice.

8 years agoDon't print the "decomposition" line for control chars in what-cursor-position
Alan Mackenzie [Sun, 22 May 2016 21:02:34 +0000 (21:02 +0000)]
Don't print the "decomposition" line for control chars in what-cursor-position

This is a temporary workaround for bug #23594, where the decomposition line
for linefeed corrupted the display on a Linux virtual terminal.

* lisp/descr-text.el (describe-char): Remove `decomposition' from the list of
character code properties printed for control characters.

8 years agoBring back xterm pasting with middle mouse
Paul Eggert [Sun, 22 May 2016 20:38:53 +0000 (13:38 -0700)]
Bring back xterm pasting with middle mouse

Problem reported by Jan Synáček.
Solution suggested by Stefan Monnier (Bug#23519).
* lisp/isearch.el (isearch-mode-map): Add a binding for xterm-paste.
(xterm--pasted-text): New decl.
(isearch-xterm-paste): New function.
* lisp/term/xterm.el (xterm--pasted-text): New function,
taken from xterm-paste internals.
(xterm-paste): Use it.

8 years agoAdd missing dependencies to seq.el
Nicolas Petton [Sun, 22 May 2016 19:51:11 +0000 (21:51 +0200)]
Add missing dependencies to seq.el

* lisp/emacs-lisp/find-func.el:
* lisp/ibuffer.el:
* lisp/image.el: Require seq.

8 years ago* src/process.c (SOCK_NONBLOCK): Fix typo.
Alp Aker [Sun, 22 May 2016 18:14:19 +0000 (14:14 -0400)]
* src/process.c (SOCK_NONBLOCK): Fix typo.

8 years agoProvide workaround for xftfont rendering problem
Eli Zaretskii [Sun, 22 May 2016 16:20:28 +0000 (19:20 +0300)]
Provide workaround for xftfont rendering problem

* src/xftfont.c (syms_of_xftfont) <xft-font-ascent-descent-override>:
New variable.
(xftfont_open): Use it to work around problems with rendering some
fonts.  (Bug#23360)

8 years agoAdd completion of colors in CSS mode
Etienne Prud’homme [Fri, 20 May 2016 18:10:46 +0000 (14:10 -0400)]
Add completion of colors in CSS mode

* lisp/textmodes/css-mode.el (css-value-class-alist): Add CSS colors
from "CSS Color Module Level 3".

* test/lisp/textmodes/css-mode-tests.el (css-test-property-values):
Update test.

8 years agoPrefer SOCK_NONBLOCK to O_NONBLOCK
Paul Eggert [Sun, 22 May 2016 00:04:44 +0000 (17:04 -0700)]
Prefer SOCK_NONBLOCK to O_NONBLOCK

* src/process.c (SOCK_NONBLOCK): Define to 0 if not already defined.
(connect_network_socket): Create the socket with SOCK_NONBLOCK, to
avoid an fcntl with O_NONBLOCK if SOCK_NONBLOCK works.  Put the
SOCK_DGRAM check a bit later, to keep the logic cleaner, as
the order does not matter here.

8 years ago* lisp/desktop.el: Disable restore frameset if in non-graphic display.
Jun Hao [Sat, 21 May 2016 19:34:20 +0000 (12:34 -0700)]
* lisp/desktop.el: Disable restore frameset if in non-graphic display.

Fixes: debbugs:17693
8 years agoFix bug#16856, cursor leaves garbage in fringe on OS X.
Alan Third [Sat, 21 May 2016 19:04:39 +0000 (21:04 +0200)]
Fix bug#16856, cursor leaves garbage in fringe on OS X.

* src/nsterm.m (ns_draw_window_cursor): Prevent the cursor from
being drawn outside the text area.

8 years agoFix compiler warnings in the MinGW build
Eli Zaretskii [Sat, 21 May 2016 17:06:33 +0000 (20:06 +0300)]
Fix compiler warnings in the MinGW build

* configure.ac [mingw32]: Don't add -Wpointer-sign, and add
-Wno-pointer-sign, to keep the noise level down.

* nt/mingw-cfg.site (gl_cv_warn_c__Wredundant_decls): Disable
-Wredundant-decls, as that produces a lot of noise due to
redeclaration of time-related functions by gnulib.
* nt/runemacs.c (set_user_model_id): Fix argument type of
'SetCurrentProcessExplicitAppUserModelID'.

* src/image.c (x_create_bitmap_from_file) [HAVE_NTGUI]: Don't
declare 'dpyinfo', as it is unused.
(xpm_load): Fix warnings about pointer signedness.
* src/w32proc.c (IsValidLocale, init_winsock): Remove redundant
prototypes.
(sys_spawnve): Avoid warnings about discarding 'const' qualifier.
(sys_select): Provide prototype.
(g_b_init_compare_string_w): Move declaration to file scope.
* src/w32heap.c (dumped_data_commit): Now static.
(FREEABLE_P): Avoid warnings about pointer comparison with integer.
(mmap_realloc): Cast to 'char *' for arithmetics on void pointers.
* src/w32console.c (ctrl_c_handler, sys_tputs, sys_tgetstr)
(evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear):
Provide prototypes.
* src/w32.c (globals_of_w32, conv_sockaddr_to_lisp): Remove
redundant prototypes.
(w32_get_internal_run_time, map_w32_filename): Provide prototype.
(init_environment, sys_ctime): Avoid warnings about discarding
'const' qualifier.
Include utimens.h.
(sys_ctime, sys_chdir, sys_creat, sys_fopen, sys_mkdir)
(sys_open, sys_rename, sys_rmdir, is_slow_fs, term_winsock)
(sys_close, sys_dup2, sys_read, sys_write, sys_localtime): Provide
prototypes.
(sys_rename_replace): Use %d to avoid compiler warnings.
(_wsa_errlist): Make the message text 'const char *', to avoid
compilation warnings.
(dynlib_reset_last_error): Move prototype to file scope.
(w32_get_resource): First argument is now 'const char *'.
* src/w32uniscribe.c (syms_of_w32uniscribe): Provide prototype.
(otf_features): Second argument is no 'const char *'.
* src/w32term.c (free_frame_menubar, x_wm_set_size_hint)
(x_set_window_size): Remove redundant prototypes.
(XChangeGC, XGetGCValues, w32_draw_underwave)
(w32_draw_rectangle, w32_shift_glyphs_for_insert, x_mouse_leave)
(x_calc_absolute_position, x_destroy_window): Now static.
(menubar_selection_callback): Move prototype to file scope.
* src/w32font.c (g_b_init_get_glyph_outline_w): Remove redundant
declaration.
(w32_to_x_charset): Fix warnings about discarding 'const' qualifier.
(w32font_full_name): Fix warnings about implicit conversion of
'float' to 'double'.
* src/w32reg.c (w32_get_rdb_resource): Fix warnings about
discarding 'const' qualifier.
* src/w32menu.c (syms_of_w32menu, globals_of_w32menu)
(set_frame_menubar): Remove redundant prototypes.
(menubar_selection_callback, w32_menu_display_help): Provide
prototypes.
(simple_dialog_show): Avoid warnings about discarding 'const'
qualifier.
* src/w32fns.c (syms_of_w32fns, globals_of_w32fns)
(free_frame_menubar, w32_strerror, x_set_menu_bar_lines)
(x_set_tool_bar_lines, x_set_internal_border_width): Remove
redundant prototypes.
(current_popup_menu): Remove redundant declaration.
(colormap_t): Member 'name' is now 'const char *'.
(add_system_logical_colors_to_map): Fix signed/unsigned warnings.
(x_decode_color, x_set_border_pixel)
(x_clear_under_internal_border, x_set_name, hook_w32_key)
(reset_w32_kbdhook_state, deliver_wm_chars, w32_backtrace): Now
static.
(w32_load_cursor, w32_key_to_modifier, map_keypad_keys)
(w32_msg_worker, w32_last_error): Provide prototypes.
(funhook, lookup_vk_code): Avoid warnings about missing
parentheses.
(x_default_font_parameter, Fw32_notification_notify): Avoid
warnings about discarding 'const' qualifier.
(Fx_create_frame): Avoid warnings about empty body of 'else'.
(x_screen_planes): Ifdef away unused function.
(Fx_show_tip): Remove unused variables.
(Fw32_battery_status): Avoid warnings about implicit promotion
from float to double.
(Fw32_notification_notify): Initialize 'timeout'.
* src/profiler.c (profiler_cpu_running) [HAVE_ITIMERSPEC]: Only
define the TIMER_SETTIME_RUNNING value if it will be used.
* src/w32notify.c (send_notifications): Ifdef away an empty if
clause.  Remove unused variable.
(watch_end, watch_completion): Provide prototypes.
* src/sound.c (sound_warning) [WINDOWSNT]: Don't define: unused.
* src/callproc.c (child_setup, getenv_internal_1) [WINDOWSNT]: Fix
warning with pointer signedness.
* src/gnutls.c (gnutls_x509_crt_get_signature)
(gnutls_alert_send_appropriate) [WINDOWSNT]: Don't define, and
don't load them from the GnuTLS library, as they are no longer
used.
* src/process.c (DATAGRAM_CHAN_P) [!DATAGRAM_SOCKETS]: Don't
define, as it's unused.
* src/unexw32.c (open_input_file, open_output_file)
(close_file_data): Remove redundant prototypes.
(_start): provide prototype.
(mainCRTStartup): Move prototype to file level.
(find_section): Use type-cast to shut up compiler warnings.
(offset_to_section, relocate_offset): Now static.
(find_section): First argument is now a 'const char *'.
(offset_to_section): Ifdef away, as it's unused.
* src/w32heap.h (find_section): Adjust prototype.
* src/dynlib.c (dynlib_reset_last_error): Provide prototype.
* src/dired.c (directory_files_internal_w32_unwind): Avoid
warnings about missing prototypes.
(is_slow_fs) [WINDOWSNT]: Provide prototype at file level.
(directory_files_internal) [WINDOWSNT]: Fix warnings about pointer
signedness.
* src/fileio.c (Ffile_writable_p, Ffile_regular_p) [WINDOWSNT]:
Fix warnings about pointer signedness.
* src/filelock.c (WTMP_FILE) [WINDOWSNT]: Don't define, it's
unused.
* src/sysdep.c (_getpid): Remove redundant prototype.
(sys_subshell) [DOS_NT]: Don't define 'status', it's unused.
[!MSDOS]: Don't define 'st', it's unused.
(init_sys_modes) [DOS_NT]: Don't define 'terminal', it's unused.
(str_collate) [WINDOWSNT]: Avoid warnings about pointer signedness.
* src/keyboard.c (tty_read_avail_input) [WINDOWSNT]: Don't define
n_to_read, as it is not used.
(MAX_ENCODED_BYTES) [WINDOWSNT]: Don't define, as it's unused.
* src/w32font.h (syms_of_w32font): Remove redundant prototype.
* src/xfaces.c (x_display_info) [HAVE_NTGUI]: Remove unused macro.
* src/term.c (init_tty) [DOS_NT]: Ifdef away variables that are
not used by DOS_NT builds, to avoid compiler warnings.
* src/menu.c (current_popup_menu) [HAVE_NTGUI]: Remove redundant
declaration.
* src/dispnew.c (init_display) [WINDOWSNT]: Use type-cast to shut
up compiler warnings.
* src/w32term.h (x_set_window_size, x_get_focus_frame)
(x_make_frame_visible, x_make_frame_invisible, x_iconify_frame)
(x_set_frame_alpha, x_activate_menubar, x_bitmap_icon)
(x_free_frame_resources, x_real_positions)
(display_x_get_resource): Remove redundant prototypes.

* lib-src/ntlib.c (sys_ctime, sys_fopen, sys_chdir, mkostemp)
(sys_rename, gettimeofday): Provide prototypes.
* lib-src/ntlib.h (getuid, geteuid, mkostemp): Remove redundant
declarations.
* lib-src/emacsclient.c (w32_getenv): Argument is now 'const char *'.
(xstrdup, w32_get_resource, w32_window_app, w32_execvp, ttyname)
(close_winsock, initialize_sockets, w32_set_user_model_id)
(w32_find_emacs_process, w32_give_focus) [WINDOWSNT]: Add
prototypes.
(w32_get_resource) [WINDOWSNT]: Fix a warning about signedness
difference.
(w32_set_user_model_id): Update prototype of
SetCurrentProcessExplicitAppUserModelID to avoid compiler
warnings.
(start_daemon_and_retry_set_socket) [WINDOWSNT]: Use type-cast to
shut up compiler warnings.
* lib-src/etags.c (MAXPATHLEN) [WINDOWSNT]: Remove unused macro.

8 years agoFix 'vertical-motion' and 'posn-at-point' under 'visual-line-mode'
Eli Zaretskii [Sat, 21 May 2016 09:35:08 +0000 (12:35 +0300)]
Fix 'vertical-motion' and 'posn-at-point' under 'visual-line-mode'

* src/xdisp.c (move_it_in_display_line_to): Don't assume we can
wrap on a whitespace character if it's followed by another
whitespace character.  When returning under WORD_WRAP for a screen
line that is continued, restore to wrap point when atpos/atx
position would be displayed on the next screen line due to
line-wrap.  (Bug#23570)

8 years agoMention GTK+ problems in etc/PROBLEMS
Eli Zaretskii [Sat, 21 May 2016 07:19:32 +0000 (10:19 +0300)]
Mention GTK+ problems in etc/PROBLEMS

* etc/PROBLEMS (GDK_SCALE, GDK_DPI_SCALE): Mention the possible
problems this could create and the workaround.  (Bug#23587)

8 years ago* lisp/svg.el (svg-create): Fix a typo: xmlsn -> xmlns. (Bug#23589)
Puneeth Chaganti [Sat, 21 May 2016 07:02:46 +0000 (10:02 +0300)]
* lisp/svg.el (svg-create): Fix a typo: xmlsn -> xmlns.  (Bug#23589)

8 years agoAdded tests for dos unibyte decoding.
Andrew Hyatt [Sat, 21 May 2016 04:08:27 +0000 (00:08 -0400)]
Added tests for dos unibyte decoding.

The underlying bug was previously fixed by Eli Zaretskii in commit
c8109d9c4057d8cac79e2c139758cadd410e7446.

8 years ago* lisp/emacs-lisp/package.el (package-refresh-contents):
Artur Malabarba [Wed, 18 May 2016 19:31:07 +0000 (16:31 -0300)]
* lisp/emacs-lisp/package.el (package-refresh-contents):

Don't change the value of `package-check-signature'.
(package-check-signature): Use `epg-find-configuration'
instead of `executable-find'.

8 years agoFix handling of ‘mouse-on-link-p’.
Philipp Stephani [Tue, 10 May 2016 21:23:26 +0000 (23:23 +0200)]
Fix handling of ‘mouse-on-link-p’.

If ‘mouse-on-link-p’ returns a string or vector, the first element
is to be used as new event.  Translation to ‘mouse-2’ should only
happen if the return value is not a string or vector.  See
docstring of ‘mouse-on-link-p’ and Bug#23288.

* lisp/mouse.el (mouse--down-1-maybe-follows-link): Process return
value of ‘mouse-on-link-p’ according to documentation.

* test/lisp/mouse-tests.el (bug23288-use-return-value)
(bug23288-translate-to-mouse-2): Tests for Bug#23288.

8 years agoRevert "epg: Add a way to detect gpg1 executable for tests"
Daiki Ueno [Fri, 20 May 2016 10:34:06 +0000 (19:34 +0900)]
Revert "epg: Add a way to detect gpg1 executable for tests"

This reverts commit d4ae6d7033b34e8b75c59aaf1584131e439ef2d5.

8 years agoepg: Add a way to detect gpg1 executable for tests
Daiki Ueno [Thu, 19 May 2016 09:05:19 +0000 (18:05 +0900)]
epg: Add a way to detect gpg1 executable for tests

Fixes bug#23561.

* test/automated/epg-tests.el
(epg-tests-program-alist-for-passphrase-callback): New
constant.
(epg-tests-find-usable-gpg-configuration): New function,
renamed from `epg-tests-gpg-usable'.  All callers changed.
(epg-tests-gpg-usable): Remove.

* lisp/epg-config.el (epg-config--program-alist): Factor out
constructor element to...
(epg-config--configuration-constructor-alist): ...here.
(epg-find-configuration): Rename FORCE argument to NO-CACHE,
and add PROGRAM-ALIST argument.

8 years agoPut point at beginning of display-time-world buffer.
Mark Oteiza [Thu, 19 May 2016 23:01:08 +0000 (19:01 -0400)]
Put point at beginning of display-time-world buffer.

If display-time-world decides to popup vertically from the bottom of the
frame and scroll-margin is nonzero, the top of the buffer contents are
hidden due to scroll.
* lisp/time.el (display-time-world-display): Move point to point-min
after inserting contents.

8 years agoAvoid errors with Czech and Slovak input methods
Eli Zaretskii [Thu, 19 May 2016 19:57:53 +0000 (22:57 +0300)]
Avoid errors with Czech and Slovak input methods

* lisp/leim/quail/slovak.el (slovak, slovak-prog-1, slovak-prog-2)
(slovak-prog-3): Remove the kp-* key bindings, they are not needed
and cause errors in "C-u C-x =".
* lisp/leim/quail/czech.el (czech, czech-qwerty, czech-prog-1)
(czech-prog-2, czech-prog-3): Remove the kp-* key bindings.
(Bug#23559)

8 years agoAllow null entries in face and image cache
Paul Eggert [Thu, 19 May 2016 15:38:55 +0000 (08:38 -0700)]
Allow null entries in face and image cache

Problem reported by Tino Calancha (Bug#23580).
* src/dispextern.h (FACE_FROM_ID, IMAGE_FROM_ID):
Don’t assume that the result is non-null.
* src/xdisp.c (fill_image_glyph_string):
Restore check that image pointer is non-null.

8 years agoFix flyspell highlighting
Paul Eggert [Thu, 19 May 2016 15:02:13 +0000 (08:02 -0700)]
Fix flyspell highlighting

Problem reported by Jim Meyering (Bug#23575).
* src/xdisp.c (extend_face_to_end_of_line):
Fix typo in previous change.

8 years agoepg: Add a way to detect gpg1 executable for tests
Daiki Ueno [Thu, 19 May 2016 09:05:19 +0000 (18:05 +0900)]
epg: Add a way to detect gpg1 executable for tests

Fixes bug#23561.

* test/automated/epg-tests.el
(epg-tests-program-alist-for-passphrase-callback): New
constant.
(epg-tests-find-usable-gpg-configuration): New function,
renamed from `epg-tests-gpg-usable'.  All callers changed.
(epg-tests-gpg-usable): Remove.

* lisp/epg-config.el (epg-config--program-alist): Factor out
constructor element to...
(epg-config--configuration-constructor-alist): ...here.
(epg-find-configuration): Rename FORCE argument to NO-CACHE,
and add PROGRAM-ALIST argument.

8 years ago* lisp/emacs-lisp/package.el: Fix free variable warnings.
Artur Malabarba [Wed, 18 May 2016 23:09:24 +0000 (20:09 -0300)]
* lisp/emacs-lisp/package.el: Fix free variable warnings.

(package--with-response-buffer): Replace two usages of
`macroexp-let2*' with `let'.

8 years ago* lisp/emacs-lisp/package.el (package--with-response-buffer):
Artur Malabarba [Wed, 18 May 2016 20:58:56 +0000 (17:58 -0300)]
* lisp/emacs-lisp/package.el (package--with-response-buffer):

Fix some macro locals leaking into body.  (Bug#22440)

* test/automated/package-test.el (package-test-signed):
Manually check all possible values of `package-check-signature'.

8 years agoImprove documentation of 'server-name'
Eli Zaretskii [Wed, 18 May 2016 19:50:45 +0000 (22:50 +0300)]
Improve documentation of 'server-name'

* doc/emacs/misc.texi (Emacs Server): Fix example of setting
'server-name'.  Mention how to do that with daemon sessions.
(Bug#23576)

8 years ago* lisp/server.el (server-name): Add autoload cookie. (Bug#23576)
Eli Zaretskii [Wed, 18 May 2016 19:46:32 +0000 (22:46 +0300)]
* lisp/server.el (server-name): Add autoload cookie.  (Bug#23576)

8 years agopython-describe-at-point: add and bind
Sam Steingold [Wed, 18 May 2016 13:56:17 +0000 (09:56 -0400)]
python-describe-at-point: add and bind

8 years agoModernize ASLR advice in etc/PROBLEMS
Paul Eggert [Wed, 18 May 2016 08:05:00 +0000 (01:05 -0700)]
Modernize ASLR advice in etc/PROBLEMS

* etc/PROBLEMS (Segfault during 'make'): Modernize advice for
seccomp, Docker, and NetBSD (Bug#23529).

8 years ago‘make check-declare’ now chatters less
Paul Eggert [Wed, 18 May 2016 07:48:35 +0000 (00:48 -0700)]
‘make check-declare’ now chatters less

* etc/NEWS: Document this.
* lisp/emacs-lisp/check-declare.el (check-declare-locate):
Return relative names, not absolute.
(check-declare-scan, check-declare-verify, check-declare-warn)
(check-declare-file, check-declare-directory):
Generate less chatter.  Use relative file names rather than
absolute.  Don’t give up on computing a good file name for a
diagnostic merely because the function name was bad.  Make
malformed declarations more noticeable.  Don’t warn about
"ext:..." declarations if check-declare-ext-errors is nil.
(check-declare-errmsg): Remove.
(check-declare-warn): New optional arg LINE.
(check-declare-files): Put status into mode line rather than
chattering.

8 years agoPacify byte-compiler for byte-compile-macroexpand-declare-function
Paul Eggert [Wed, 18 May 2016 07:14:18 +0000 (00:14 -0700)]
Pacify byte-compiler for byte-compile-macroexpand-declare-function

* lisp/emacs-lisp/bytecomp.el: Change signature of
byte-compile-macroexpand-declare-function to match that of
declare-function.

8 years agoPacify byte-compiler for with-wrapper-hook
Paul Eggert [Wed, 18 May 2016 07:12:01 +0000 (00:12 -0700)]
Pacify byte-compiler for with-wrapper-hook

* lisp/subr.el (subr--with-wrapper-hook-no-warnings):
New macro, split out from with-wrapper-hook.
* lisp/abbrev.el (abbrev--default-expand):
* lisp/minibuffer.el (completion--in-region):
* lisp/simple.el (buffer-substring--filter):
* lisp/subr.el (with-wrapper-hook):
Use it.

8 years agoPacify byte-compiler in lisp/url
Paul Eggert [Wed, 18 May 2016 07:11:48 +0000 (00:11 -0700)]
Pacify byte-compiler in lisp/url

* lisp/url/url-misc.el, lisp/url/url-file.el (mm-disable-multibyte):
Add decl.

8 years agoPort --enable-gcc-warnings to GCC 6.1
Paul Eggert [Wed, 18 May 2016 07:06:12 +0000 (00:06 -0700)]
Port --enable-gcc-warnings to GCC 6.1

* configure.ac (WERROR_CFLAGS): Omit -Wunused-const-variable=2.
* lib-src/etags.c (LOOKING_AT, LOOKING_AT_NOCASE):
Omit test whether pointer plus a constant equals a null pointer.
* src/alloc.c (compact_small_strings):
Avoid pointer arithmetic on null pointers.
* src/alloc.c (mark_face_cache):
* src/fontset.c (free_realized_fontsets, Fset_fontset_font):
* src/fringe.c (draw_fringe_bitmap_1)
(Fset_fringe_bitmap_face):
* src/macfont.m (macfont_draw):
* src/msdos.c (IT_set_face, IT_clear_screen):
* src/nsfont.m (nsfont_draw):
* src/nsterm.h (FRAME_DEFAULT_FACE):
* src/nsterm.m (ns_draw_window_cursor)
(ns_draw_vertical_window_border, ns_draw_window_divider)
(ns_dumpglyphs_box_or_relief)
(ns_maybe_dumpglyphs_background, ns_dumpglyphs_image)
(ns_dumpglyphs_stretch):
* src/w32term.c (w32_draw_vertical_window_border)
(w32_draw_window_divider, x_set_mouse_face_gc):
* src/xdisp.c (estimate_mode_line_height, init_iterator)
(handle_face_prop, handle_single_display_spec, pop_it)
(CHAR_COMPOSED_P, get_next_display_element)
(next_element_from_display_vector, extend_face_to_end_of_line)
(fill_gstring_glyph_string,BUILD_COMPOSITE_GLYPH_STRING):
* src/xfaces.c (Finternal_merge_in_global_face, Fface_font)
(lookup_named_face):
* src/xterm.c (x_draw_vertical_window_border)
(x_draw_window_divider, x_set_mouse_face_gc):
Prefer FACE_OPT_FROM_ID to FACE_FROM_ID when the result might be null.
* src/xterm.c (try_window_id):
Redo loop to convince GCC 6.1 that it is null pointer safe.
(x_color_cells):
Use eassume as necessary to pacify GCC 6.1.
* src/dispextern.h (FACE_FROM_ID, IMAGE_FROM_ID): Now returns non-null.
(FACE_OPT_FROM_ID, IMAGE_OPT_FROM_ID): New macro, with the old
behavior of the non-_OPT macro, to be used when the result
might be a null pointer.
* src/dispnew.c (buffer_posn_from_coords, marginal_area_string)
[HAVE_WINDOW_SYSTEM]:
* src/intervals.h (INTERVAL_WRITABLE_P):
* src/term.c (turn_off_face):
* src/xdisp.c (get_glyph_face_and_encoding, fill_image_glyph_string)
(produce_image_glyph, produce_xwidget_glyph):
* src/xfaces.c (lookup_named_face):
Remove unnecessary test for null pointer.
* src/keyboard.c (read_char): Suppress bogus -Wclobbered warning.
* src/process.c (would_block): New function.
(server_accept_connection, wait_reading_process_output, send_process):
Use it.
* src/xdisp.c (get_window_cursor_type, note_mouse_highlight):
Prefer IMAGE_OPT_FROM_ID to IMAGE_FROM_ID when the result
might be null.

8 years agoSync from gnulib
Paul Eggert [Wed, 18 May 2016 07:05:53 +0000 (00:05 -0700)]
Sync from gnulib

This incorporates:
2016-05-17 manywarnings: update for GCC 6.1
2016-05-13 intdiv0, memmem, nocrash, strcasestr, strstr: no exit
* m4/manywarnings.m4, m4/nocrash.m4: Copy from gnulib.

8 years ago* lisp/char-fold.el: Rename from character-fold.el.
Juri Linkov [Tue, 17 May 2016 20:55:38 +0000 (23:55 +0300)]
* lisp/char-fold.el: Rename from character-fold.el.

* lisp/replace.el (replace-char-fold): Rename from replace-character-fold.
* test/automated/char-fold-tests.el: Rename from character-fold-tests.el.
http://lists.gnu.org/archive/html/emacs-devel/2015-12/msg00529.html

8 years agoBump version to 25.0.94 emacs-25.0.94
Nicolas Petton [Tue, 17 May 2016 17:00:52 +0000 (19:00 +0200)]
Bump version to 25.0.94

* README:
* configure.ac:
* msdos/sed2v2.inp: Bump Emacs version to 25.0.94.

8 years agoetc/AUTHORS: Update the AUTHORS file
Nicolas Petton [Tue, 17 May 2016 17:00:47 +0000 (19:00 +0200)]
etc/AUTHORS: Update the AUTHORS file

8 years ago; Auto-commit of loaddefs files.
Nicolas Petton [Tue, 17 May 2016 16:59:48 +0000 (18:59 +0200)]
; Auto-commit of loaddefs files.

8 years ago; * lisp/emacs-lisp/ert.el (ert-summarize-tests-batch-and-exit):
Glenn Morris [Tue, 17 May 2016 00:52:13 +0000 (20:52 -0400)]
; * lisp/emacs-lisp/ert.el (ert-summarize-tests-batch-and-exit):

Remove debug code accidentally left in previous.

8 years ago* lisp/emacs-lisp/ert.el (ert-summarize-tests-batch-and-exit):
Glenn Morris [Tue, 17 May 2016 00:49:39 +0000 (20:49 -0400)]
* lisp/emacs-lisp/ert.el (ert-summarize-tests-batch-and-exit):
Include more details on hydra.

8 years agoFix bug#23462: Crash when iconifying frame on OS X.
Alan Third [Mon, 16 May 2016 18:37:23 +0000 (20:37 +0200)]
Fix bug#23462: Crash when iconifying frame on OS X.

* src/nsterm.m (x_iconify_frame): Block input while miniaturize is
running.

8 years agoAvoid shrinking windows with Gtk+ 3.20.3
Paul Eggert [Mon, 16 May 2016 17:05:19 +0000 (10:05 -0700)]
Avoid shrinking windows with Gtk+ 3.20.3

Problem reported by Matthias Clasen (Bug#23144).
This was fixed in a different way in master.
Do not merge to master.
* src/xterm.c (handle_one_xevent) [GTK_CHECK_VERSION (3, 20, 3)]:
Do not call xg_frame_resized in the MapNotify case.

8 years agoFix bug in default setting of 'ps-paper-type'
Eli Zaretskii [Mon, 16 May 2016 15:14:54 +0000 (18:14 +0300)]
Fix bug in default setting of 'ps-paper-type'

* lisp/international/mule-cmds.el (set-locale-environment): Don't
inherit the value of locale from previous examination of different
environment variables, which didn't look at LC_PAPER, and so using
that value would effectively ignore the setting of LC_PAPER.
(Bug#23544)

8 years agoTidy up redundant code in cc-vars.el caused by mistake in emacs-25 -> master
Alan Mackenzie [Mon, 16 May 2016 13:56:24 +0000 (13:56 +0000)]
Tidy up redundant code in cc-vars.el caused by mistake in emacs-25 -> master

8 years agoFix spurious fontification of "for (; a * b;)" in CC Mode.
Alan Mackenzie [Mon, 16 May 2016 11:27:39 +0000 (11:27 +0000)]
Fix spurious fontification of "for (; a * b;)" in CC Mode.

This fixes bug #7918 (again).

* lisp/progmodes/cc-engine.el (c-delq-from-dotted-list): New function.
(c-forward-decl-or-cast-1): Return a 4 element list in place of the previous
cons cell - additionally, return a flag indicating whether the declaration
parsed might have been an expression, and the position of the type identifier
in the said declaration.

* lisp/progmodes/cc-fonts.el (c-font-lock-declarations): When
c-forward-decl-or-cast-1 has indicated it might have parsed an expression,
check for it being a spurious declaration in a "for" statement.

8 years agoPacify ‘make check-declare’
Paul Eggert [Sun, 15 May 2016 02:56:53 +0000 (19:56 -0700)]
Pacify ‘make check-declare’

* lisp/cedet/srecode/insert.el (data-debug-new-buffer)
(data-debug-insert-stuff-list, data-debug-insert-thing):
* lisp/emulation/viper-ex.el (viper-change-state-to-vi)
(viper-change-state-to-emacs):
* lisp/emulation/viper-macs.el (viper-change-state-to-vi):
* lisp/org/ob-asymptote.el (orgtbl-to-generic):
* lisp/org/ob-awk.el (orgtbl-to-generic):
* lisp/org/ob-core.el (org-edit-src-code, orgtbl-to-generic):
* lisp/org/ob-emacs-lisp.el (orgtbl-to-generic):
* lisp/org/ob-exp.el (org-element-context):
* lisp/org/ob-gnuplot.el (org-time-string-to-time)
(orgtbl-to-generic):
* lisp/org/ob-haskell.el (org-export-to-file):
* lisp/org/ob-latex.el (org-create-formula-image)
(org-latex-compile):
* lisp/org/ob-python.el (run-python):
* lisp/org/ob-sh.el (orgtbl-to-generic):
* lisp/org/ob-tangle.el (org-link-escape, org-back-to-heading):
* lisp/org/org-colview.el (org-agenda-redo):
* lisp/org/org-feed.el (url-retrieve-synchronously):
* lisp/org/org-info.el (Info-find-node):
* lisp/org/org-list.el (org-previous-line-empty-p):
* lisp/org/org-macs.el (org-string-match-p):
* lisp/org/org.el (org-beamer-mode):
Fix prototype to match current definition.
* lisp/emacs-lisp/advice.el (function-called-at-point):
* lisp/progmodes/prolog.el (compilation-shell-minor-mode):
Fix typo: extra '.
* lisp/emacs-lisp/cl-generic.el (cl-defmethod):
Insert ,' to pacify check-declare.
* lisp/org/ob-comint.el (tramp-flush-directory-property):
* lisp/org/ob-tangle.el (org-babel-update-block-body):
* lisp/org/org-bibtex.el (org-babel-trim):
* lisp/org/org-pcomplete.el (org-export-backend-options):
* lisp/org/org-protocol.el (org-publish-get-project-from-filename):
Fix file name in declare-function.
* lisp/org/ob-comint.el (with-parsed-tramp-file-name)
* lisp/org/ob-core.el (with-parsed-tramp-file-name):
* lisp/org/org.el (org-beamer-mode):
* lisp/url/url-http.el (gnutls-negotiate):
Append ‘t’ to declare-function, since the declaration isn’t a defun.
* lisp/org/ob-core.el (show-all):
Declare outline-show-all instead, since it is the
non-obsolete version of this function.
(org-save-outline-visibility): Remove; not needed.
* lisp/org/ob-scheme.el (run-geiser, geiser-mode)
(geiser-eval-region, geiser-repl-exit):
* lisp/org/ox-org.el (htmlize-buffer):
Prepend "ext:" to file name, since it is not part of Emacs.
* lisp/org/ob-sh.el (org-babel-comint-in-buffer)
* lisp/org/org-gnus.el (nnimap-group-overview-filename):
Remove decl, since function was removed.
* lisp/org/ob-sh.el (org-babel-comint-with-output):
* lisp/org/org-macro.el (org-with-wide-buffer):
Omit unnecessary (and mismatching) decl.
* lisp/org/org-agenda.el (calendar-absolute-from-iso):
* lisp/org/org-clock.el (calendar-iso-to-absolute):
Declare calendar-iso-to-absolute instead, since it is the
non-obsolete version of this function.
* lisp/org/org-compat.el (w32-focus-frame):
Remove decl, since function is now obsolete.

8 years ago:max-width/height fixes for shr after the scaling changes
Lars Ingebrigtsen [Sat, 14 May 2016 20:57:36 +0000 (22:57 +0200)]
:max-width/height fixes for shr after the scaling changes

* lisp/net/shr.el (shr-rescale-image): Ensure that we respect
max-width and max-height even after the scaling changes done
earlier this year.

8 years agoFix reading minibuffer input in viper-mode
Eli Zaretskii [Sat, 14 May 2016 17:39:17 +0000 (20:39 +0300)]
Fix reading minibuffer input in viper-mode

* lisp/emulation/viper-cmd.el (viper-read-string-with-history):
Restore an assignment to viper-initial that got lost when
viper-cmd.el was switched to lexical-binding.  (Bug#23536)

8 years agoPort autogen.sh to Git 2.4
Paul Eggert [Sat, 14 May 2016 17:24:22 +0000 (10:24 -0700)]
Port autogen.sh to Git 2.4

Problem reported by Michael Brand in:
http://lists.gnu.org/archive/html/emacs-devel/2016-05/msg00367.html
* autogen.sh (git_config): Don't assume that git rev-parse
groks --git-common-dir.

8 years agoMerge from origin/emacs-25
Paul Eggert [Sat, 14 May 2016 01:26:15 +0000 (18:26 -0700)]
Merge from origin/emacs-25

6de0715 Properly reject malformed or empty package sigs
edae7d9 Remove buggy non-native image scrolling

8 years agoProperly reject malformed or empty package sigs
Paul Eggert [Sat, 14 May 2016 01:23:05 +0000 (18:23 -0700)]
Properly reject malformed or empty package sigs

Problem report and fix by Lizzie Dixon (Bug#23513).
* lisp/emacs-lisp/package.el (package--check-signature-content):
Report an error if no good signatures OR if a fatal error.  Not AND.
Copyright-paperwork-exempt: yes

8 years agoImprove display of tex-verbatim and Info quoted
Paul Eggert [Fri, 13 May 2016 20:30:33 +0000 (13:30 -0700)]
Improve display of tex-verbatim and Info quoted

Problem reported by Glenn Morris (Bug#19889).
* doc/emacs/display.texi (Standard Faces):
* doc/lispref/display.texi (Basic Faces):
* etc/NEWS: Mention fixed-pitch-serif.
* lisp/faces.el (face-font-family-alternatives):
New family alias Monospace Serif.
(fixed-pitch-serif): New face, which uses the new family.
* lisp/info.el (Info-quoted):
* lisp/textmodes/tex-mode.el (tex-verbatim): Use the new face.
* test/lisp/legacy/font-parse-tests.el (font-parse-tests--data):
Add test case for Monospace Serif.

8 years ago* lisp/net/sieve-mode.el: Handle the text:... notation
Stefan Monnier [Fri, 13 May 2016 18:32:22 +0000 (14:32 -0400)]
* lisp/net/sieve-mode.el: Handle the text:... notation

Get rid of redundant :group keywords.
(sieve-mode-syntax-table): Move initialization into declaration.
(sieve-syntax-propertize, sieve-syntax-propertize-text): New functions.
(sieve-mode): Use them.

8 years agoRemove buggy non-native image scrolling
Paul Eggert [Fri, 13 May 2016 16:51:32 +0000 (09:51 -0700)]
Remove buggy non-native image scrolling

This never worked, and could cause infinite recursion.
Problem reported by Glenn Morris (Bug#22465).
* lisp/xwidget.el (xwidget-webkit-scroll-behavior): Remove.
All uses removed.

8 years agoTweak check-declare-directory performance
Paul Eggert [Fri, 13 May 2016 15:37:56 +0000 (08:37 -0700)]
Tweak check-declare-directory performance

* lisp/emacs-lisp/check-declare.el (check-declare-directory):
Use ‘find ... -exec ... +’ for speed.

8 years agoSync from gnulib
Paul Eggert [Fri, 13 May 2016 14:51:45 +0000 (07:51 -0700)]
Sync from gnulib

This incorporates a spelling fix, plus:
2016-05-09 Fix undefined behaviour in gettext.h
* lib/gettext.h, lib/mktime.c:
Copy from gnulib.

8 years agoMerge from origin/emacs-25
Paul Eggert [Fri, 13 May 2016 14:45:30 +0000 (07:45 -0700)]
Merge from origin/emacs-25

9c2a1a2 * doc/misc/texinfo.tex: Sync from gnulib.
66cd4d8 * lisp/emacs-lisp/find-func.el (find-feature-regexp) (find-al...
1a5a05c Do not mistake colon at the end of regexp for slash symbol
4c5a00b Make package-install-from-buffer not move point
9596ea1 ; Revert "* emacs-lisp/lisp-mnt.el (lm-header): save-excursion"
f79c352 Redo the fix for bug#21839
8d2f78c Don't treat JS spread as contination method call

8 years ago* doc/misc/texinfo.tex: Sync from gnulib.
Paul Eggert [Fri, 13 May 2016 14:41:07 +0000 (07:41 -0700)]
* doc/misc/texinfo.tex: Sync from gnulib.

8 years agoCorrect server/client address
Chris Feng [Fri, 13 May 2016 03:34:39 +0000 (11:34 +0800)]
Correct server/client address

* src/process.c (Fmake_network_process): :local is for servers and :remote
is for clients.

8 years agoAutosave buffers on logout if HAVE_NTGUI
Ken Brown [Thu, 12 May 2016 19:52:26 +0000 (15:52 -0400)]
Autosave buffers on logout if HAVE_NTGUI

* src/w32fns.c (w32_wnd_proc): Pass a WM_ENDSESSION message on to
w32_read_socket.

* src/w32term.c (w32_read_socket): Create an event of type
END_SESSION_EVENT if a WM_ENDSESSION message is received.

* src/termhooks.h [HAVE_NTGUI]: New event kind END_SESSION_EVENT.

* src/keyboard.c [HAVE_NTGUI] (syms_of_keyboard): New symbol
`end-session'.
(kbd_buffer_get_event): Return an end-session event if an event of
type END_SESSION_EVENT is read.
(keys_of_keyboard): Bind the end-session event to kill-emacs in
special-event-map.  (Bug#23483)

8 years ago* lisp/cedet/semantic/{db-el,symref}.el: Mark unused vars
Stefan Monnier [Thu, 12 May 2016 19:50:24 +0000 (15:50 -0400)]
* lisp/cedet/semantic/{db-el,symref}.el: Mark unused vars

* lisp/cedet/semantic/db-el.el: Use _ to mark unused vars.
(object-print): Use cl-call-next-method instead of call-next-method.
* lisp/cedet/semantic/symref.el: Use _ to mark unused vars.

8 years ago* lisp/emacs-lisp/find-func.el (find-feature-regexp)
Glenn Morris [Thu, 12 May 2016 17:35:27 +0000 (10:35 -0700)]
* lisp/emacs-lisp/find-func.el (find-feature-regexp)
(find-alias-regexp): Fix :version.

8 years ago* lisp/cedet/semantic: Silence some warnings
Stefan Monnier [Thu, 12 May 2016 17:08:34 +0000 (13:08 -0400)]
* lisp/cedet/semantic: Silence some warnings

* lisp/cedet/semantic/db-el.el (emacs-lisp-mode)
(semanticdb-get-database-tables): Use make-instance to silence warnings.

* lisp/cedet/semantic/symref.el: Require semantic/find since we use
some macros from there.  Silence compilation warnings:
Replace initargs with slot names in oref/oset.
Move `SYMREF TOOLS' section earlier so definitions precede their use.

8 years agoSupport srcset in <img>
Lars Ingebrigtsen [Thu, 12 May 2016 15:45:17 +0000 (17:45 +0200)]
Support srcset in <img>

* lisp/net/shr.el (shr--preferred-image): Allow <img> tags
with srcset specifiers (bug#23459).

8 years agoDo not autoload some functions of tramp.el
Michael Albinus [Thu, 12 May 2016 11:01:11 +0000 (13:01 +0200)]
Do not autoload some functions of tramp.el

* lisp/net/tramp.el (tramp-completion-file-name-handler):
Autoload a shortened version of this function, avoid recursive load.
(tramp-completion-file-name-handler-alist)
(tramp-completion-mode-p)
(tramp-completion-handle-expand-file-name)
(tramp-completion-handle-file-name-all-completions)
(tramp-completion-handle-file-name-completion): Do not autoload.

8 years agoAvoid recursive load of tramp.el
Michael Albinus [Thu, 12 May 2016 08:57:10 +0000 (10:57 +0200)]
Avoid recursive load of tramp.el

* lisp/net/tramp.el (tramp-completion-file-name-handler):
Autoload a shortened version of this function, avoid recursive load.

8 years agoDo not mistake colon at the end of regexp for slash symbol
Dmitry Gutov [Thu, 12 May 2016 00:18:45 +0000 (03:18 +0300)]
Do not mistake colon at the end of regexp for slash symbol

* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize):
Check the parse state in the "Symbols with special characters"
rule (bug#23515).

8 years agoMake package-install-from-buffer not move point
Dmitry Gutov [Wed, 11 May 2016 22:29:03 +0000 (01:29 +0300)]
Make package-install-from-buffer not move point

* lisp/emacs-lisp/package.el (package-install-from-buffer):
Use save-excursion here (bug#22616).

8 years ago; Revert "* emacs-lisp/lisp-mnt.el (lm-header): save-excursion"
Dmitry Gutov [Wed, 11 May 2016 22:18:38 +0000 (01:18 +0300)]
; Revert "* emacs-lisp/lisp-mnt.el (lm-header): save-excursion"

This reverts commit bf3f6a961f378f35a292c41c0bfbdae88ee1b1b9.

(Bug#22616)

8 years agoRedo the fix for bug#21839
Dmitry Gutov [Wed, 11 May 2016 21:48:37 +0000 (00:48 +0300)]
Redo the fix for bug#21839

* lisp/help.el (help-add-fundoc-usage): Undo the previous change.
(help--make-usage-docstring): Escape newlines when printing.

* lisp/emacs-lisp/cl-macs.el (cl--transform-lambda):
Ditto (bug#21839).

8 years ago; Remove instrumentation of tramp.el
Michael Albinus [Wed, 11 May 2016 14:50:56 +0000 (16:50 +0200)]
; Remove instrumentation of tramp.el

8 years ago; Remove instrumentation of tramp-tests.el
Michael Albinus [Wed, 11 May 2016 14:45:39 +0000 (16:45 +0200)]
; Remove instrumentation of tramp-tests.el

8 years agoFix a problem of tramp-tests on hydra.
Michael Albinus [Wed, 11 May 2016 08:12:26 +0000 (10:12 +0200)]
Fix a problem of tramp-tests on hydra.

* test/lisp/net/tramp-tests.el (tramp-test06-directory-file-name):
Nullify `tramp-default-method' due to hydra.

8 years agoDon't treat JS spread as contination method call
Dmitry Gutov [Tue, 10 May 2016 23:26:54 +0000 (02:26 +0300)]
Don't treat JS spread as contination method call

* lisp/progmodes/js.el (js--indent-operator-re):
Allow only one dot (bug#23492).

* test/indent/js.js (default): Add a corresponding example.

8 years agoPacify byte-compiler in lisp/vc
Paul Eggert [Tue, 10 May 2016 20:40:17 +0000 (13:40 -0700)]
Pacify byte-compiler in lisp/vc

* lisp/vc/vc-bzr.el, lisp/vc/vc-cvs.el, lisp/vc/vc-hg.el:
* lisp/vc/vc-rcs.el, lisp/vc/vc-src.el:
Declare functions defined elsewhere, to forestall “might not
be defined at runtime” warnings.

8 years ago; Merge from origin/emacs-25
Paul Eggert [Tue, 10 May 2016 14:44:29 +0000 (07:44 -0700)]
; Merge from origin/emacs-25

The following commit was skipped:

fc8a4e0 ; Auto-commit of loaddefs files.

8 years agoMerge from origin/emacs-25
Paul Eggert [Tue, 10 May 2016 14:44:28 +0000 (07:44 -0700)]
Merge from origin/emacs-25

d0d9f55 Allow newlines inside cl function arglists
963541a Publicize cl--generic-all-functions
3c581d5 ; Fix typo
e58f900 Add some "safe-local-variable" declarations for compatibility...

8 years ago'text-quoting-style' now affects only ` and '
Paul Eggert [Tue, 10 May 2016 14:38:23 +0000 (07:38 -0700)]
'text-quoting-style' now affects only ` and '

Change 'text-quoting-style' so that it no longer affects
formatting of curved quotes in format arguments to functions like
'message'.  In particular, when this variable's value is 'grave',
all quotes in formats are output as-is.
* doc/lispref/help.texi (Keys in Documentation):
* doc/lispref/strings.texi (Formatting Strings):
* doc/lispref/tips.texi (Documentation Tips):
* etc/NEWS:
* src/doc.c (syms_of_doc): Document this.
* lisp/help-fns.el (describe-function-1):
* src/doc.c (text_quoting_style, Fsubstitute_command_keys)
(syms_of_doc):
* src/editfns.c (styled_format): Omit now-unnecessary code.
* src/lisp.h (LEAVE_QUOTING_STYLE): Remove.

8 years agoRevert "Fix spurious fontification of "for (; a * b;)" in CC Mode."
Alan Mackenzie [Tue, 10 May 2016 14:36:02 +0000 (14:36 +0000)]
Revert "Fix spurious fontification of "for (; a * b;)" in CC Mode."

This reverts commit 89d1776b81ab552192ee41f13ce84ff86bda4556.  It is
being reverted because it slowed down CC Mode's fontification too much
(factor ~3).  It was the fix to bug #7918.

8 years ago; Auto-commit of loaddefs files.
Glenn Morris [Tue, 10 May 2016 11:18:12 +0000 (07:18 -0400)]
; Auto-commit of loaddefs files.

8 years ago; Instrument tramp-tests.el
Michael Albinus [Tue, 10 May 2016 06:05:49 +0000 (08:05 +0200)]
; Instrument tramp-tests.el

8 years agoAllow newlines inside cl function arglists
Dmitry Gutov [Mon, 9 May 2016 23:53:20 +0000 (02:53 +0300)]
Allow newlines inside cl function arglists

* lisp/help.el (help-add-fundoc-usage): Allow newlines inside
ARGLIST (bug#21839).

8 years agoPublicize cl--generic-all-functions
Dmitry Gutov [Mon, 9 May 2016 22:15:12 +0000 (01:15 +0300)]
Publicize cl--generic-all-functions

* lisp/emacs-lisp/cl-generic.el (cl-generic-all-functions):
Rename from cl--generic-all-functions.  Update both callers.

* lisp/cedet/semantic/db-el.el
(semanticdb-find-tags-external-children-of-type-method):
And use it here (bug#23042).

8 years agoMove "Recent messages" earlier in report-emacs-bug
Lars Ingebrigtsen [Mon, 9 May 2016 20:06:25 +0000 (22:06 +0200)]
Move "Recent messages" earlier in report-emacs-bug

* lisp/mail/emacsbug.el (report-emacs-bug): Move the "Recent
messages" part earlier so that users can see it and remove it
if they want.

8 years agoPacify byte compiler in tramp.el
Michael Albinus [Mon, 9 May 2016 19:08:51 +0000 (21:08 +0200)]
Pacify byte compiler in tramp.el

* lisp/net/tramp.el (tramp-time-diff): Use `tramp-compat-funcall'.

8 years ago; Fix typo
Michael Albinus [Mon, 9 May 2016 18:39:36 +0000 (20:39 +0200)]
; Fix typo