]> code.delx.au - gnu-emacs/log
gnu-emacs
8 years agoUpdate the new icon
Nicolas Petton [Sat, 24 Oct 2015 11:35:11 +0000 (13:35 +0200)]
Update the new icon

Move the E slightly to the right in the circle.

* etc/images/icons/hicolor/128x128/apps/emacs.png:
* etc/images/icons/hicolor/16x16/apps/emacs.png:
* etc/images/icons/hicolor/24x24/apps/emacs.png:
* etc/images/icons/hicolor/32x32/apps/emacs.png:
* etc/images/icons/hicolor/48x48/apps/emacs.png:
* etc/images/icons/hicolor/scalable/apps/emacs.svg:
* nextstep/Cocoa/Emacs.base/Contents/Resources/Emacs.icns:
* nt/icons/emacs.ico: New icom update.

8 years agoAvoid missing inline functions from lisp.h in TAGS
Eli Zaretskii [Sat, 24 Oct 2015 10:27:52 +0000 (13:27 +0300)]
Avoid missing inline functions from lisp.h in TAGS

* src/lisp.h (LISP_MACRO_DEFUN): Mention in the commentary the
need to end each invocation with a semi-colon.
Add a semi-colon at the end of each invocation of LISP_MACRO_DEFUN
and LISP_MACRO_DEFUN_VOID.  This is to avoid missing in TAGS
inline functions defined immediately after each invocation, and
also avoid tagging every invocation of these macros.

8 years ago; Auto-commit of loaddefs files.
Glenn Morris [Sat, 24 Oct 2015 10:18:36 +0000 (06:18 -0400)]
; Auto-commit of loaddefs files.

8 years ago; * src/xdisp.c: Improve commentary for 'update_mode_lines'.
Eli Zaretskii [Sat, 24 Oct 2015 08:23:10 +0000 (11:23 +0300)]
; * src/xdisp.c: Improve commentary for 'update_mode_lines'.

8 years agoA better fix for bug#21739
Eli Zaretskii [Sat, 24 Oct 2015 07:03:07 +0000 (10:03 +0300)]
A better fix for bug#21739

* src/buffer.c (set_update_modelines_for_buf): New function.
(Fkill_buffer): Use it to set the global variable
update_mode_lines if the killed buffer was displayed in some
window.  Don't set windows_or_buffers_changed.  This is a better
fix for bug#21739 than the previous fix, since it will cause only
redisplay of mode lines, not of entire windows, but will still
catch attention of x_consider_frame_title in xdisp.c, which
redraws the frame title.

8 years agoAdd support for tar.bz2 and tar.xz archives
Tassilo Horn [Sat, 24 Oct 2015 05:38:10 +0000 (07:38 +0200)]
Add support for tar.bz2 and tar.xz archives

* lisp/dired-aux.el (dired-compress-files-alist): Add support for
tar.bz2 and tar.xz archives.

8 years ago; NEWS tweak
Xue Fuqiao [Sat, 24 Oct 2015 02:42:00 +0000 (10:42 +0800)]
; NEWS tweak

8 years agoFix infloop in redisplay introduced by a recent change
Eli Zaretskii [Fri, 23 Oct 2015 20:06:57 +0000 (23:06 +0300)]
Fix infloop in redisplay introduced by a recent change

* src/xdisp.c (redisplay_internal): Avoid inflooping when
redisplaying the selected window sets the selected frame's
redisplay flag.  (Bug#21745)

8 years ago* lisp/emacs-lisp/thunk.el: Better documentation.
Nicolas Petton [Fri, 23 Oct 2015 16:06:54 +0000 (18:06 +0200)]
* lisp/emacs-lisp/thunk.el: Better documentation.

8 years agoReplace the old icon for Windows and Mac OSX
Nicolas Petton [Fri, 23 Oct 2015 14:22:22 +0000 (16:22 +0200)]
Replace the old icon for Windows and Mac OSX

* nt/icons/emacs.ico:
* nextstep/Cocoa/Emacs.base/Contents/Resources/Emacs.icns: Use the new
icons.

8 years ago`load-path' should contain only directory names
Stephen Leake [Fri, 23 Oct 2015 13:52:01 +0000 (08:52 -0500)]
`load-path' should contain only directory names

* lisp/emacs-lisp/package.el (package-autoload-ensure-default-file):
`load-path' should contain only directory names

8 years agoNew library thunk.el
Nicolas Petton [Fri, 23 Oct 2015 11:20:45 +0000 (13:20 +0200)]
New library thunk.el

thunk.el is extracted from stream.el in ELPA, with additional tests.

* lisp/emacs-lisp/thunk.el: New file.
* test/automated/thunk-tests.el: New file.
* etc/NEWS: Add information about thunk.el

8 years agoFix Bug#21669
Michael Albinus [Fri, 23 Oct 2015 11:14:09 +0000 (13:14 +0200)]
Fix Bug#21669

* lisp/filenotify.el (file-notify-rm-watch): Improve check for
calling low-level functions.

* test/automated/file-notify-tests.el (file-notify--test-timeout):
Decrase to 6 seconds for remote directories.
(file-notify-test02-events): Expect different number of
`attribute-changed' events for the local and remote cases.  Apply
short delays between the operations, in order to receive all
events in the remote case.  Combine `attribute-change' tests.
(Bug#21669)

8 years agoDecode the HTML source when displaying it in EWW
Eli Zaretskii [Fri, 23 Oct 2015 09:23:23 +0000 (12:23 +0300)]
Decode the HTML source when displaying it in EWW

* lisp/net/eww.el (eww-view-source): Decode the HTML source
according to its headers.

8 years agoNew default icon
Nicolas Petton [Thu, 22 Oct 2015 14:24:34 +0000 (16:24 +0200)]
New default icon

* etc/images/icons/hicolor/128x128/apps/emacs23.png:
* etc/images/icons/hicolor/16x16/apps/emacs23.png:
* etc/images/icons/hicolor/24x24/apps/emacs23.png:
* etc/images/icons/hicolor/32x32/apps/emacs23.png:
* etc/images/icons/hicolor/48x48/apps/emacs23.png:
* etc/images/icons/hicolor/scalable/apps/emacs23.svg:
* etc/images/icons/hicolor/scalable/mimetypes/emacs-document23.svg: Move
  the old logo files to emacs23.*.
* etc/images/icons/hicolor/128x128/apps/emacs.png:
* etc/images/icons/hicolor/16x16/apps/emacs.png:
* etc/images/icons/hicolor/24x24/apps/emacs.png:
* etc/images/icons/hicolor/32x32/apps/emacs.png:
* etc/images/icons/hicolor/48x48/apps/emacs.png:
* etc/images/icons/hicolor/scalable/apps/emacs.svg:
* etc/images/icons/hicolor/scalable/mimetypes/emacs-document.svg: New files.
* etc/images/icons/README: Update the copyright information.

8 years agoFix redisplay of frame title when current buffer is killed
Eli Zaretskii [Fri, 23 Oct 2015 08:47:27 +0000 (11:47 +0300)]
Fix redisplay of frame title when current buffer is killed

* src/buffer.c (Fkill_buffer): Set windows_or_buffers_changed to a
non-zero value, to redisplay more than just the affected windows.
(Bug#21739)

8 years agoNextSten maximization and NSTRACE rewrite.
Anders Lindgren [Fri, 23 Oct 2015 05:58:02 +0000 (07:58 +0200)]
NextSten maximization and NSTRACE rewrite.

Full-height, full-width, and maximized windows now cover the
entire screen (except the menu bar), including the part where the
system dock is placed.  The system zoom animation is no longer
used.

Made NonMaximized->FullWidth->FullHeight->NonMaximized restore the
original size.

* nsterm.m (ns_menu_bar_height): New function, return height of
the menu bar, or 0 when it's hidden.
* nsterm.m (constrain_frame_rect): New function for constraining a
frame.
* nsterm.m (ns_constrain_all_frames): Set frame size explicitly
rather than relying on the system doing it for us by writing back
the current frame size.
* nsterm.m (windowWillUseStandardFrame): Register non-maximized
width or height as new user size.  When entering full width or
height, the other size component is taken from the user size.
* nsterm.m (fullscreenState): New method for accessing the
fullscreen state.
* nsterm.m (constrainFrameRect): Restrict frame to be placed under
the menu bar, if present.  The old version, sometimes, restricted
the height of a frame to the screen, this version never does this.
* nsterm.m (zoom): Perform zoom by setting the frame to the full
size of the screen (minus the menu bar).  The default system
function, with the zoom animation, is no longer used, as the final
frame size doesn't cover the entire screen.

Rework how to constrain resizing to the character grid.  The old
system used "resizeIncrements" in NSWindows.  However, once a frame
was resized so that it was not aligned to the text grid, it
remained unaligned even after a resize.  In addition, it conflicted
when resizing a fullheight window.

* nsterm.m (windowWillResize): Restrict frame size to text grid,
unless when pixelwise frame resizing is enabled.
* nsterm.m (updateFrameSize, initFrameFromEmacs)
(toggleFullScreen, handleFS): Don't set resizeIncrements.

Redesign the NS trace system.  The call structure is represented
using indentations and vertical lines.  The NSTRACE macro accepts
printf-style arguments.  New macros for printing various
information.

* nsterm.h (NSTRACE_ENABLED): Macro to enable trace system.
* nsterm.h (NSTRACE, NSTRACE_WHEN, NSTRACE_UNLESS): Macros to
start a new block (typically a function), accept printf-style
arguments.
* nsterm.h (NSTRACE_MSG): Macro for extra information, accepts
printf-style arguments.
* nsterm.h (NSTRACE_what): Macros for printing various types.
* nsterm.h (NSTRACE_FMT_what): Macro with printf format string
snippets.
* nsterm.h (NSTRACE_ARG_what): Macros for passing printf-style
arguments, corresponds to NSTRACE_FMT_what.
* nsterm.h (NSTRACE_RETURN): Macro to print return value, accept
printf-style arguments.
* nsterm.h (NSTRACE_RETURN_what): Macros to print return value for
various types.

* nsterm.m: Remove old NSTRACE macro.
* nsterm.m (nstrace_num): Trace counter.
* nsterm.m (nstrace_depth): Current call depth.
* nsterm.m (nstrace_leave): NSTRACE support function, called when
the local variable "nstrace_enabled" goes out of scope using the
"cleanup" extension.
* nsterm.m (ns_print_fullscreen_type_name): NSTRACE_FSTYPE support
function.
* nsterm.m (constrain_frame_rect, ns_constrain_all_frames)
(ns_update_auto_hide_menu_bar, ns_update_begin)
(ns_update_window_begin, update_window_end, ns_update_end)
(ns_focus, ns_unfocus, ns_ring_bell, ns_frame_raise_lower)
(ns_frame_rehighlight, x_make_frame_visible)
(x_make_frame_invisible, x_iconify_frame, x_free_frame_resources)
(x_destroy_window, x_set_offset, x_set_window_size)
(ns_fullscreen_hook, ns_lisp_to_color, ns_color_to_lisp)
(ns_defined_color, frame_set_mouse_pixel_position)
(note_mouse_movement, ns_mouse_position, ns_frame_up_to_date)
(ns_define_frame_cursor, x_get_keysym_name, ns_redraw_scroll_bars)
(ns_clear_frame, ns_clear_frame_area, ns_scroll_run)
(ns_after_update_window_line, ns_shift_glyphs_for_insert)
(dumpcursor, ns_draw_vertical_window_border)
(ns_draw_window_divider, ns_draw_relief)
(ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
(ns_dumpglyphs_image, ns_draw_glyph_string, ns_send_appdefined)
(ns_read_socket, ns_select, ns_set_vertical_scroll_bar)
(ns_set_horizontal_scroll_bar, ns_condemn_scroll_bars)
(ns_redeem_scroll_bar, ns_judge_scroll_bars, ns_delete_terminal)
(ns_create_terminal, ns_term_init, sendEvent)
(applicationDidFinishLaunching, applicationDidBecomeActive)
(timeout_handler, fd_handler, EmacsView_dealloc, changeFont)
(acceptsFirstResponder, resetCursorRects, keyDown, mouseDown)
(deltaIsZero, rightMouseDown, otherMouseDown, mouseUp)
(rightMouseUp, otherMouseUp, scrollWheel, mouseMoved)
(mouse_autoselect_window, in_window, mouseDragged)
(rightMouseDragged, otherMouseDragged, windowShouldClose)
(updateFrameSize, windowWillResize, windowDidResize)
(windowDidBecomeKey, windowDidResignKey, windowWillMiniaturize)
(initFrameFromEmacs, windowDidMove, windowDidDeminiaturize)
(windowDidExpose, windowDidMiniaturize, windowWillEnterFullScreen)
(windowDidEnterFullScreen, windowWillExitFullScreen)
(windowDidExitFullScreen, toggleFullScreen, handleFS, setFSValue)
(mouseEntered, mouseExited, menuDown, toolbarClicked, drawRect)
(draggingEntered, performDragOperation, validRequestorForSendType)
(setMiniwindowImage, constrainFrameRect, performZoom, zoom)
(EmacsScroller_initFrame, EmacsScroller_setFrame)
(EmacsScroller_dealloc, condemn, reprieve, judge)
(resetCursorRects, setPosition, EmacsScroller_mouseDown)
(EmacsScroller_mouseDragged, syms_of_nsterm): Use new trace system.

* nsfns.m: Remove old NSTRACE macro.
* nsfns.m (x_set_icon_name, ns_set_name, x_explicitly_set_name)
(x_implicitly_set_name, x_set_title, ns_set_name_as_filename)
(ns_implicitly_set_icon_type, x_set_icon_type): Use new trace system.

* nsimage.m: Remove old NSTRACE macro.
* nsimage.m (ns_image_from_XBM, ns_image_for_XPM)
(ns_image_from_bitmap_file, ns_load_image): Use new trace system.

* nsmenu.m: Remove old NSTRACE macro.
* nsmenu.m (ns_update_menubar, ns_menu_show, ns_popup_dialog):
Use new trace system.

8 years agoNo need to use eval-and-compile
Katsumi Yamaoka [Fri, 23 Oct 2015 02:39:47 +0000 (02:39 +0000)]
No need to use eval-and-compile

* lisp/gnus/auth-source.el: Do require epg (when compiling) before
autoload epg functions.

8 years agoFix auth-source-epa-make-gpg-token compilation (bug#21724)
Katsumi Yamaoka [Thu, 22 Oct 2015 23:55:31 +0000 (23:55 +0000)]
Fix auth-source-epa-make-gpg-token compilation (bug#21724)

* lisp/gnus/auth-source.el: Add eval-and-compile to autoloads for
epg-context-set-passphrase-callback, epg-decrypt-string, and
epg-encrypt-string; require epg when compiling for the setf-method
for epg-context-armor. (bug#21724)

8 years agoInclude file cleanup for w32 files in src directory
Eli Zaretskii [Thu, 22 Oct 2015 16:52:18 +0000 (19:52 +0300)]
Include file cleanup for w32 files in src directory

* src/w32xfns.c: Don't include keyboard.h, window.h, charset.h,
fontset.h, blockinput.h.
* src/w32uniscribe.c: Don't include dispextern.h, character.h,
charset.h, fontset.h.
* src/w32term.c: Don't include systty.h, systime.h, charset.h,
character.h, ccl.h, dispextern.h, disptab.h, intervals.h,
process.h, atimer.h, keymap.h, w32heap.h.  Include bitmap/gray.xbm
in an ifdef-ed away block.
Include fcntl.h for CYGWIN.
(set_frame_param): Remove unused function.
* src/w32select.c: Don't include charset.h and composite.h.
(setup_config, Fw32_get_clipboard_data): Avoid compiler warnings
due to pointer signedness mismatches.
* src/w32reg.c (w32_get_string_resource): Avoid compiler warnings
due to pointer signedness mismatches.
* src/w32proc.c: Include unistd.h.  Don't include systime.h,
process.h, dispextern.h.
(sys_spawnve, Fw32_short_file_name, Fw32_long_file_name)
(Fw32_application_type): Avoid compiler warnings due to pointer
signedness mismatches.
* src/w32menu.c: Don't include keymap.h, termhooks.h, window.h,
character.h, charset.h, dispextern.h.
(simple_dialog_show, add_menu_item): Avoid compiler warnings due
to pointer signedness mismatches.
* src/w32inevt.c: Don't include dispextern.h, window.h,
termhooks.h, w32heap.h.
* src/w32font.c: Don't include dispextern.h, character.h,
charset.h, fontset.h, font.h.
(intern_font_name, add_font_entity_to_list)
(registry_to_w32_charset, w32_to_x_charset, fill_in_logfont)
(list_all_matching_fonts): Avoid compiler warnings due to pointer
signedness mismatches.
* src/w32fns.c: Don't include character.h, intervals.h,
dispextern.h, epaths.h, charset.h, ccl.h, fontset.h, systime.h,
termhooks.h, w32heap.h, bitmap/gray.xbm, font.h, w32font.h.
(w32_color_map_lookup, add_system_logical_colors_to_map)
(x_decode_color, x_set_name, FPRINTF_WM_CHARS, Fxw_color_defined_p)
(Fxw_color_values, x_display_info_for_name, Fset_message_beep)
(x_create_tip_frame, Fx_file_dialog, Fsystem_move_file_to_trash)
(w32_parse_hot_key, Ffile_system_info, w32_kbd_patch_key): Avoid
compiler warnings, mainly due to pointer signedness mismatches.
(unwind_create_frame_1): Remove unused function.
* src/w32console.c: Don't include character.h, disptab.h, frame.h,
window.h, termhooks.h, dispextern.h.
(w32con_write_glyphs, w32con_write_glyphs_with_face): Fix pointer
signedness mismatch.
* src/w32.c: Include c-strcase.h and systty.h.  Don't include
w32heap.h.

8 years agoImprove doc-view wrt. auto-revert-mode
Tassilo Horn [Thu, 22 Oct 2015 15:01:57 +0000 (17:01 +0200)]
Improve doc-view wrt. auto-revert-mode

* lisp/doc-view.el (doc-view-revert-buffer): Don't revert when file is
corrupted (bug#21729).
(doc-view-mode): Set doc-view-revert-buffer as revert-buffer-function.

8 years agoDescribe dired-do-compress-to in the manual
Oleh Krehel [Thu, 22 Oct 2015 10:05:59 +0000 (12:05 +0200)]
Describe dired-do-compress-to in the manual

* etc/NEWS: Update.

* lisp/dired-aux.el: Fix typo.

* doc/emacs/dired.texi: Add entry.

8 years agoFurther fix for proper locale handling in tramp-gvfs.el
Jürgen Hötzel [Thu, 22 Oct 2015 07:09:27 +0000 (09:09 +0200)]
Further fix for proper locale handling in tramp-gvfs.el

* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-attributes):
Just suppress LC_MESSAGES locale category settings.

8 years agoSpelling fixes
Paul Eggert [Thu, 22 Oct 2015 03:26:21 +0000 (20:26 -0700)]
Spelling fixes

8 years agoNew lispref section “Security Considerations”
Paul Eggert [Thu, 22 Oct 2015 03:22:34 +0000 (20:22 -0700)]
New lispref section “Security Considerations”

This attempts to document some of the issues recently discussed
on emacs-devel, and to indicate other such issues.  The section
could be a lot longer.
* doc/lispref/os.texi (Security Considerations):
New node.
* doc/lispref/elisp.texi (Top):
* doc/lispref/processes.texi (Shell Arguments):
* lisp/subr.el (shell-quote-argument):
* src/callproc.c (syms_of_callproc):
Reference it.

8 years agoMerge from gnulib
Paul Eggert [Thu, 22 Oct 2015 03:10:40 +0000 (20:10 -0700)]
Merge from gnulib

This incorporates:
2015-10-18 stdalign: work around pre-4.9 GCC x86 bug
2015-10-18 time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
* doc/misc/texinfo.tex, lib/stdalign.in.h, lib/time_rz.c:
Copy from gnulib.

8 years agoRemove fboundp checks from mailcap-mime-data
Katsumi Yamaoka [Thu, 22 Oct 2015 00:08:23 +0000 (00:08 +0000)]
Remove fboundp checks from mailcap-mime-data

* lisp/gnus/mailcap.el (mailcap-mime-data): Remove fboundp checks.
(mailcap-viewer-passes-test): Do it instead.  Thanks to Stefan Monnier.

8 years agoFurther include-file cleanup
Ken Brown [Wed, 21 Oct 2015 22:08:36 +0000 (18:08 -0400)]
Further include-file cleanup

* src/sheap.c: Include stdlib.h.
* src/unexcw.c: Include string.h.

8 years agoFix logic in 'server-kill-emacs-query-function'
Eli Zaretskii [Wed, 21 Oct 2015 16:50:10 +0000 (19:50 +0300)]
Fix logic in 'server-kill-emacs-query-function'

* lisp/server.el (server-kill-emacs-query-function): Correct the
logic that controls whether the user is asked for confirmation.
(Bug#21723)

8 years ago* lisp/isearch.el (isearch-search-fun-default): Simplify logic
Artur Malabarba [Wed, 21 Oct 2015 16:27:23 +0000 (17:27 +0100)]
* lisp/isearch.el (isearch-search-fun-default): Simplify logic

(isearch--lax-regexp-function-p): New function.

8 years ago* lisp/isearch.el: Support lax-whitespace in regexp-function searches
Artur Malabarba [Wed, 21 Oct 2015 16:16:36 +0000 (17:16 +0100)]
* lisp/isearch.el: Support lax-whitespace in regexp-function searches

(isearch-search-fun-default): Let-bind `search-spaces-regexp'
around `isearch-regexp-function'.

8 years ago* lisp/isearch.el: Rename word search to regexp-function search
Artur Malabarba [Wed, 21 Oct 2015 16:07:08 +0000 (17:07 +0100)]
* lisp/isearch.el: Rename word search to regexp-function search

`isearch-word' went well beyond its original purpose, and the name
no longer makes sense.  It is now called
`isearch-regexp-function', and it's value should always be a
function that converts a string to a regexp (though setting it to
t is still supported for now).

(isearch-word): Make obsolete.
(isearch-regexp-function): New variable.
(isearch-mode, isearch-done, isearch--state, isearch--set-state)
(with-isearch-suspended, isearch-toggle-regexp)
(isearch-toggle-word, isearch-toggle-symbol)
(isearch-toggle-character-fold, isearch-query-replace)
(isearch-occur, isearch-highlight-regexp)
(isearch-search-and-update, isearch-message-prefix)
(isearch-search-fun-default, isearch-search)
(isearch-lazy-highlight-new-loop, isearch-lazy-highlight-search):
Use it.
(isearch-lazy-highlight-regexp-function): New var.
(isearch-lazy-highlight-word): Make obsolete.
(isearch--describe-regexp-mode): New function.
(isearch--describe-word-mode): Make obsolete.

* lisp/info.el (Info-isearch-search): Use the new var.

* lisp/replace.el (replace-search, replace-highlight): Use the new
var.

* lisp/obsolete/longlines.el (longlines-search-function): Use the
new var.

* lisp/hexl.el (hexl-isearch-search-function): Use the new var.

* lisp/cedet/semantic/senator.el (senator-isearch-search-fun): Use
the new var.

8 years agoAdd dired-do-compress-to command bound to "c"
Oleh Krehel [Wed, 21 Oct 2015 14:39:36 +0000 (16:39 +0200)]
Add dired-do-compress-to command bound to "c"

* lisp/dired-aux.el (dired-shell-command): Use the caller's
  `default-directory', return the result of `process-file'.
(dired-compress-file-suffixes): Add comment on why "tar -zxf" isn't
used by default.
(dired-compress-files-alist): New defvar.
(dired-do-compress-to): New command.

* lisp/dired.el (dired-mode-map): Bind `dired-do-compress-to' to "c".
(dired-do-compress-to): Add an autoload entry.

* etc/NEWS: Add two entries.

8 years agoMake RefTeX work with LaTeX subfiles package
Tassilo Horn [Wed, 21 Oct 2015 12:17:18 +0000 (14:17 +0200)]
Make RefTeX work with LaTeX subfiles package

* lisp/textmodes/reftex.el (reftex-TeX-master-file): Recognize subfiles
document class argument as master file for referencing purposes.

8 years ago; etc/NEWS: Remove duplicate text.
Juanma Barranquero [Tue, 20 Oct 2015 11:42:18 +0000 (13:42 +0200)]
; etc/NEWS: Remove duplicate text.

8 years agolisp/gnus/mailcap.el (mailcap-mailcap-entry-passes-test): Doc fix
Katsumi Yamaoka [Wed, 21 Oct 2015 05:36:51 +0000 (05:36 +0000)]
lisp/gnus/mailcap.el (mailcap-mailcap-entry-passes-test): Doc fix

8 years agoInclude-file cleanup for src directory
Paul Eggert [Wed, 21 Oct 2015 01:27:05 +0000 (18:27 -0700)]
Include-file cleanup for src directory

Omit ‘#include "foo.h"’ unless the file needs foo.h (Bug#21707).
In a few cases, add ‘#include "foo.h"’ if the file needs foo.h
but does not include it directly.  As a general rule, a source
file should include foo.h if it needs the interfaces that foo.h
defines.
* src/alloc.c: Don’t include process.h.  Include dispextern.h,
systime.h.
* src/atimer.c: Don’t include blockinput.h.
* src/buffer.c: Include coding.h, systime.h.  Don’t include
keyboard.h, coding.h.
* src/callint.c: Don’t include commands.h, keymap.h.
* src/callproc.c: Don’t include character.h, ccl.h, composite.h,
systty.h, termhooks.h.
* src/casetab.c: Don’t include character.h.
* src/category.c: Don’t include charset.h, keymap.h.
* src/ccl.h: Don’t include character.h.
* src/character.c: Don’t include charset.h.
* src/charset.c: Don’t include disptab.h.
* src/chartab.c: Don’t include ccl.h.
* src/cm.c: Don’t include frame.h, termhooks.h.
* src/cmds.c: Don’t include window.h, dispextern.h.
* src/coding.c: Don’t include window.h, frame.h.
* src/composite.c: Include composite.h.  Don’t include window.h,
font.h.
* src/data.c: Don’t include syssignal.h, termhooks.h, font.h.
* src/dbusbind.c: Don’t include frame.h.
* src/decompress.c: Don’t include character.h.
* src/dired.c: Don’t include character.h, commands.h, charset.h.
* src/dispnew.c: Don’t include character.h, indent.h, intervals.h,
process.h, timespec.h.  Include systime.h.
* src/doc.c: Include coding.h.  Don’t include keyboard.h.
* src/editfns.c: Include composite.h.  Don’t include frame.h.
* src/emacs.c: Include fcntl.h, coding.h.  Don’t include
commands.h, systty.h..
* src/fileio.c: Don’t include intervals.h, dispextern.h.
Include composite.h.
* src/filelock.c: Don’t include character.h, systime.h.
* src/fns.c: Don’t include time.h, commands.h, keyboard.h,
keymap.h, frame.h, blockinput.h, xterm.h.  Include composite.h.
* src/font.c: Include termhooks.h.
* src/font.h: Don’t include ccl.h, frame.h.  Add forward decls of
struct composition_it, struct face, struct glyph_string.
* src/fontset.c: Don’t include buffer.h, ccl.h, keyboard.h,
intervals.h, window.h, termhooks.h.
* src/frame.c: Don’t include character.h, commands.h, font.h.
* src/frame.h: Don’t include dispextern.h.
* src/fringe.c: Don’t include character.h.
* src/ftcrfont.c: Don’t include dispextern.h, frame.h,
character.h, charset.h, fontset.h.
* src/ftfont.c: Don’t include frame.h, blockinput.h, coding.h,
fontset.h.
* src/ftxfont.c: Don’t include dispextern.h, character.h,
charset.h, fontset.h.
* src/gfilenotify.c: Don’t include frame.h, process.h.
* src/gtkutil.c: Include dispextern.h, frame.h, systime.h.
Don’t include syssignal.h, buffer.h, charset.h, font.h.
* src/gtkutil.h: Don’t include frame.h.
* src/image.c: Include fcntl.h and stdio.h instead of sysstdio.h.
Don’t include character.h.
* src/indent.c: Don’t include keyboard.h, termchar.h.
* src/inotify.c: Don’t include character.h, frame.h.
* src/insdel.c: Include composite.h.  Don’t include blockinput.h.
* src/intervals.c: Don’t include character.h, keyboard.h.
* src/intervals.h: Don’t include dispextern.h, composite.h.
* src/keyboard.c: Don’t include sysstdio.h, disptab.h, puresize.h.
Include coding.h.
* src/keyboard.h: Don’t incldue systime.h.
* src/keymap.c: Don’t include charset.h, frame.h.
* src/lread.c: Include dispextern.h and systime.h.
Don’t include frame.h.  Include systime.h.
* src/macros.c: Don’t include commands.h, character.h, buffer.h.
* src/menu.c: Include character.h, coding.h.  Don’t include
dispextern.h.
* src/menu.h: Don’t include systime.h.
* src/minibuf.c: Don’t include commands.h, dispextern.h, syntax.h,
intervals.h, termhooks.h.
* src/print.c: Include coding.h.  Don’t include keyboard.h,
window.h, dispextern.h, termchar.h, termhooks.h, font.h.
Add forward decl of struct terminal.
* src/process.c: Don’t include termhooks.h, commands.h,
dispextern.h, composite.h.
* src/region-cache.c: Don’t include character.h.
* src/scroll.c: Don’t include keyboard.h, window.h.
* src/search.c: Don’t include category.h, commands.h.
* src/sound.c: Don’t include dispextern.h.
* src/syntax.c: Don’t include command.h, keymap.h.
* src/sysdep.c: Don’t include window.h, dispextern.h.
* src/systime.h: Use ‘#ifdef emacs’, not ‘#ifdef EMACS_LISP_H’,
* src/term.c: Don’t include systty.h, intervals.h, xterm.h.
* src/terminal.c: Include character.h.
Don’t include charset.h, coding.h.
* src/textprop.c: Don’t include character.h.
* src/undo.c: Don’t include character.h, commands.h, window.h.
* src/unexsol.c: Don’t include character.h, charset.h.
* src/widget.c: Include widget.h.  Don’t include keyboard.h,
window.h, dispextern.h, blockinput.h, character.h, font.h.
* src/widgetprv.h: Don’t include widget.h.
* src/window.c: Don’t include character.h, menu.h, intervals.h.
* src/xdisp.c: Include composite.h, systime.h.  Don’t include
macros.h, process.h.
* src/xfaces.c: Don’t include charset.h, keyboard.h, termhooks.h,
intervals.h.
* src/xfns.c: Don’t include menu.h, character.h, intervals.h,
epaths.h, fontset.h, systime.h, atimer.h, termchar.h.
* src/xfont.c: Don’t include dispextern.h, fontset.h, ccl.h.
* src/xftfont.c: Don’t include dispextern.h, character.h, fontset.h.
* src/xgselect.c: Don’t include timespec.h, frame.h.
Include systime.h.
* src/xgselect.h: Don’t include time.h.
Use a forward decl to struct timespec instead.
* src/xmenu.c: Don’t include keymap.h, character.h, charset.h,
dispextern.h.  Include systime.h.
* src/xml.c: Don’t include character.h.
* src/xrdb.c [USE_MOTIF]: Don’t include keyboard.h.
* src/xselect.c: Don’t include dispextern.h, character.h,
buffer.h, process.h.
* src/xsmfns.c: Don’t include systime.h, sysselect.h.
* src/xterm.c: Don’t include syssignal.h, charset.h, disptab.h,
intervals.h process.h, keymap.h, xgselect.h.  Include composite.h.

8 years ago(/ N) now returns the reciprocal of N
Paul Eggert [Wed, 21 Oct 2015 01:16:47 +0000 (18:16 -0700)]
(/ N) now returns the reciprocal of N

This is more compatible with Common Lisp and XEmacs (Bug#21690).  See:
http://lists.gnu.org/archive/html/emacs-devel/2015-10/msg01053.html
* lisp/color.el (color-hue-to-rgb, color-hsl-to-rgb)
(color-xyz-to-srgb, color-xyz-to-lab):
* lisp/emacs-lisp/cl-extra.el (cl-float-limits):
* lisp/net/shr-color.el (shr-color-hue-to-rgb)
(shr-color-hsl-to-rgb-fractions):
Exploit the change to simplify the code a bit.
* lisp/emacs-lisp/bytecomp.el (byte-compile-quo):
Don’t complain about single-argument calls to ‘/’.
* src/data.c (arith_driver, float_arith_driver):
Implement the change.

8 years agoCall vc-dir-defresh after stash operations
Dmitry Gutov [Tue, 20 Oct 2015 17:04:47 +0000 (20:04 +0300)]
Call vc-dir-defresh after stash operations

* lisp/vc/vc-git.el (vc-git-stash-apply-at-point)
(vc-git-stash-pop-at-point): Call vc-dir-defresh (bug#13960).

* lisp/vc/vc-dir.el (vc-dir-resynch-file): Expand FNAME as well,
since it can be abbreviated (as returned by vc-find-root).

8 years agoDon't declare vc-exec-after anymore
Dmitry Gutov [Tue, 20 Oct 2015 16:37:30 +0000 (19:37 +0300)]
Don't declare vc-exec-after anymore

* lisp/vc/vc-svn.el:
* lisp/vc/vc-mtn.el:
* lisp/vc/vc-hg.el:
* lisp/vc/vc-cvs.el:
* lisp/vc/vc-git.el:
* lisp/vc/vc-bzr.el: Don't declare vc-exec-after anymore.  Its
usages have been replaced with vc-run-delayed.

8 years agoFix memory leak in fontset handling
Dima Kogan [Tue, 20 Oct 2015 15:12:55 +0000 (18:12 +0300)]
Fix memory leak in fontset handling

* src/font.c (copy_font_spec): Make a deep copy of the input
argument FONT.  (Bug#21651)

8 years ago* lisp/gnus/mailcap.el (mailcap-mime-data):
Michael Sperber [Tue, 20 Oct 2015 11:18:30 +0000 (11:18 +0000)]
* lisp/gnus/mailcap.el (mailcap-mime-data):
Conditonalize `doc-view-mode', which does not exist on XEmacs.

8 years ago; Auto-commit of loaddefs files.
Glenn Morris [Tue, 20 Oct 2015 10:17:55 +0000 (06:17 -0400)]
; Auto-commit of loaddefs files.

8 years agoUpdate the way directories are compressed
Oleh Krehel [Fri, 16 Oct 2015 14:44:20 +0000 (16:44 +0200)]
Update the way directories are compressed

* lisp/dired-aux.el (dired-compress-file-suffixes): Update the recipe
  for *.tar.gz decompression to use a pipe.
  Add an entry for the default directory compression (to *.tar.g).

(dired-compress-file): Update.

See https://lists.gnu.org/archive/html/emacs-devel/2015-10/msg00949.html.

8 years agoUnbreak `group' option for `mail-sources'
Michael Sperber [Tue, 20 Oct 2015 06:10:37 +0000 (06:10 +0000)]
Unbreak `group' option for `mail-sources'

* nnml.el (nnml-retrieve-groups, nnml-request-scan):
* nnmail.el (nnmail-get-new-mail-per-group):
(nnmail-get-new-mail-1): Unbreak `group' option for `mail-sources'.

8 years agoNew function seq-position
Nicolas Petton [Mon, 19 Oct 2015 22:11:30 +0000 (00:11 +0200)]
New function seq-position

* lisp/emacs-lisp/seq.el (seq-position): New function.
* test/automated/seq-tests.el: New tests for seq-position.
* doc/lispref/sequences.texi: Add documentation for `seq-position'.

8 years agoEnable --with-wide-int build on 32-bit Cygwin
Ken Brown [Mon, 19 Oct 2015 20:53:22 +0000 (16:53 -0400)]
Enable --with-wide-int build on 32-bit Cygwin

* src/sheap.c (STATIC_HEAP_SIZE): Remove distinction between x86
and x86_64 to enable --with-wide-int build on 32-bit Cygwin.

8 years ago* doc/emacs/ack.texi (Acknowledgments): Small, sad, update.
Glenn Morris [Mon, 19 Oct 2015 20:35:25 +0000 (16:35 -0400)]
* doc/emacs/ack.texi (Acknowledgments): Small, sad, update.

8 years agoResurrect image loading under auto-image-file-mode
Eli Zaretskii [Mon, 19 Oct 2015 13:15:30 +0000 (16:15 +0300)]
Resurrect image loading under auto-image-file-mode

* src/image.c (x_find_image_fd): Handle the case of -2 returned by
'openp' specially.  This special case was lost in the changes on
2015-08-18.  (Bug#21685)

8 years agoFix return value of 'set-file-extended-attributes'
Eli Zaretskii [Mon, 19 Oct 2015 07:04:50 +0000 (10:04 +0300)]
Fix return value of 'set-file-extended-attributes'

* lisp/files.el (set-file-extended-attributes): Return non-nil
when setting either ACLs or SELinux context succeeds.  Document
the return value.  (Bug#21699)

* doc/lispref/files.texi (Changing Files): Document the return
value of set-file-extended-attributes.

8 years ago; * doc/lispref/processes.texi (Synchronous Processes): Minor copyedit.
Eli Zaretskii [Mon, 19 Oct 2015 06:12:51 +0000 (09:12 +0300)]
; * doc/lispref/processes.texi (Synchronous Processes): Minor copyedit.

8 years agoImprove documentation of functions that change files
Eli Zaretskii [Mon, 19 Oct 2015 05:31:58 +0000 (08:31 +0300)]
Improve documentation of functions that change files

* doc/lispref/files.texi (Changing Files): Document that these
functions signal an error on failure.

8 years agoFix doc string of 'shell-quote-argument'
Eli Zaretskii [Sun, 18 Oct 2015 17:08:32 +0000 (20:08 +0300)]
Fix doc string of 'shell-quote-argument'

* lisp/subr.el (shell-quote-argument): Doc fix.  (Bug#21702)

8 years ago; Remove obsolete comment in tramp.el
Michael Albinus [Sun, 18 Oct 2015 15:09:07 +0000 (17:09 +0200)]
; Remove obsolete comment in tramp.el

8 years ago; Add bug number in ChangeLog.2
Michael Albinus [Sun, 18 Oct 2015 11:23:50 +0000 (13:23 +0200)]
; Add bug number in ChangeLog.2

8 years agoSome minor Tramp changes
Michael Albinus [Sun, 18 Oct 2015 11:22:02 +0000 (13:22 +0200)]
Some minor Tramp changes

* doc/misc/tramp.texi (Obtaining Tramp): Add http git cloning.

* lisp/net/tramp.el (tramp-handle-make-auto-save-file-name):
Expand `tramp-auto-save-directory'.

8 years ago; Auto-commit of ChangeLog files.
Glenn Morris [Sun, 18 Oct 2015 10:23:59 +0000 (06:23 -0400)]
; Auto-commit of ChangeLog files.

8 years agoMinor edits in Tramp
Michael Albinus [Sun, 18 Oct 2015 08:29:43 +0000 (10:29 +0200)]
Minor edits in Tramp

* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp):
Declare it.

* lisp/net/tramp-compat.el (directory-listing-before-filename-regexp):
Remove declaration.

8 years ago* lisp/emacs-lisp/eldoc.el: Add back-to-indentation to the command list
Mark Oteiza [Sat, 17 Oct 2015 15:49:36 +0000 (11:49 -0400)]
* lisp/emacs-lisp/eldoc.el: Add back-to-indentation to the command list

8 years agoAvoid crashes when redisplayng a window changes faces or fonts
Eli Zaretskii [Sat, 17 Oct 2015 12:10:58 +0000 (15:10 +0300)]
Avoid crashes when redisplayng a window changes faces or fonts

* src/xdisp.c (redisplay_internal): If redisplaying the selected
window or one of the frames turns on the frame's 'redisplay' flag,
redisplay again.  (Bug#21428)

* src/frame.c (x_set_font): Set the frame's 'fonts_changed' flag.

8 years agoSolve timimg issues in file-notify-tests.el
Michael Albinus [Sat, 17 Oct 2015 09:20:05 +0000 (11:20 +0200)]
Solve timimg issues in file-notify-tests.el

* test/automated/file-notify-tests.el (file-notify-test02-events):
Rectify `attribute-change' tests.  There are timing issues with
gfilenotify.

8 years agoFix quoting of data within htmlfontify doc
Paul Eggert [Sat, 17 Oct 2015 02:01:36 +0000 (19:01 -0700)]
Fix quoting of data within htmlfontify doc

* doc/misc/htmlfontify.texi (Data Structures, Customization):
Fix quoting of data structures.  A Lisp quote is needed only
when data appears within Lisp code.

8 years ago* emacs-lisp/package.el: Reload archive-contents if priorities change
Artur Malabarba [Fri, 16 Oct 2015 22:54:38 +0000 (23:54 +0100)]
* emacs-lisp/package.el: Reload archive-contents if priorities change

(package--old-archive-priorities): New variable.
(package-read-all-archive-contents, package-menu--refresh): Use it
to decide when the `package-archive-contents' needs to be read
again.

8 years agoMake src headers idempotent and standalone
Paul Eggert [Fri, 16 Oct 2015 21:54:09 +0000 (14:54 -0700)]
Make src headers idempotent and standalone

Redo src/*.h so that each include file is idempotent (that is, can
be included multiple times with the latter inclusions having no
effect) and standalone (that is, can be included by itself,
with no include file other than config.h needed as a prerequisite).
This is standard practice in GNU programs nowadays.
* lwlib/lwlib-widget.h, src/buffer.h, src/category.h, src/character.h:
* src/charset.h, src/coding.h, src/commands.h, src/disptab.h:
* src/fontset.h, src/gnutls.h, src/indent.h, src/keymap.h, src/macros.h:
* src/regex.h [emacs]:
* src/syntax.h, src/systty.h, src/termhooks.h:
Include lisp.h, for Lisp_Object.
* src/buffer.h, src/category.h, src/cm.h, src/commands.h, src/disptab.h:
* src/indent.h, src/intervals.h, src/keyboard.h, src/macros.h:
* src/process.h, src/puresize.h, src/region-cache.h, src/syntax.h:
* src/syssignal.h, src/sysstdio.h, src/systty.h, src/termchar.h:
* src/termopts.h, src/tparam.h, src/unexec.h:
Protect against multiple inclusion.
* src/buffer.h: Include character.h, for STRING_CHAR.
* src/emacsgtkfixed.h (struct frame):
* src/fontset.h (struct face):
* src/region-cache.h (struct buffer):
* src/termhooks.h (struct glyph):
* src/xsettings.h (struct x_display_info):
Add possibly-forward decl.
* src/syntax.h: Include buffer.h, for BVAR.
* src/sysselect.h: Include lisp.h, for eassume.
* src/termchar.h: Include <stdio.h>, for FILE.
* src/widget.h: Include <X11/IntrinsicP.h>, for Widget.
* src/xsettings.h: Include <X11/Xlib.h>, for XEvent.

8 years agoHandle symlink targets containing spaces in tramp-gvfs.el
Jürgen Hötzel [Fri, 16 Oct 2015 17:46:18 +0000 (19:46 +0200)]
Handle symlink targets containing spaces in tramp-gvfs.el

* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-attributes):
Handle symlink targets containing spaces.

8 years ago* custom.el (custom-theme-load-path): Demote to defvar
Artur Malabarba [Fri, 16 Oct 2015 15:10:38 +0000 (16:10 +0100)]
* custom.el (custom-theme-load-path): Demote to defvar

`custom-theme-load-path' was a defcustom, but it shouldn't be for the
same reason that `load-path' shouldn't.  Setting it via the customize
interface is a trap for the user.

Installed themes commonly add themselves to this variable, which means
its value is not fit for being saved (it will permanently remember dirs
that don't exist anymore).

This is aggravated by the fact that Emacs always applies the `user'
theme on top of any theme that's loaded, since this will apply the old
variable value and remove any new directories that had been recently
added by themes themselves.

Not to mention, we already have `custom-theme-directory', which is safe
to customize.

8 years ago* lisp/mpc.el: Rename the new toggling commands
Stefan Monnier [Fri, 16 Oct 2015 13:56:05 +0000 (09:56 -0400)]
* lisp/mpc.el: Rename the new toggling commands

(mpc-toggle-consume, mpc-toggle-repeat, mpc-toggle-single)
(mpc-toggle-shuffle): Add "-toggle" in the name.

8 years agoImprove the doc string of 'completion-boundaries'
Eli Zaretskii [Fri, 16 Oct 2015 13:42:11 +0000 (16:42 +0300)]
Improve the doc string of 'completion-boundaries'

* lisp/minibuffer.el (completion-boundaries): Rename the argument
TABLE to COLLECTION, for consistency with other high-level
completion functions.  Document how COLLECTION is called if it
is a function.  (Bug#21644)

8 years agolisp/dired-aux.el (dired-shell-command): Fix compile warning
Oleh Krehel [Fri, 16 Oct 2015 12:45:22 +0000 (14:45 +0200)]
lisp/dired-aux.el (dired-shell-command): Fix compile warning

8 years agoMake dired-do-compress work for *.zip files
Oleh Krehel [Fri, 16 Oct 2015 11:57:22 +0000 (13:57 +0200)]
Make dired-do-compress work for *.zip files

* lisp/dired-aux.el (dired-check-process): Transform the top-level
  comment into a docstring.
(dired-shell-command): New command. This mirrors
`dired-check-process', but is more user-friendly for passing
arguments.
(dired-compress-file-suffixes): Allow to specify the command switches
along with input (%i) and output (%o) inside the PROGRAM part.
Add an entry for *.zip files, and update the entry for *.tar.gz files
to the new style. Update the docstring.
(dired-compress-file): When PROGRAM matches %i or %o, use the new
logic.
(dired-update-file-line): Avoid an error when at end of buffer.

Fixes Bug#21637

8 years agoMinor improvement in documentation of internals
Eli Zaretskii [Fri, 16 Oct 2015 10:01:53 +0000 (13:01 +0300)]
Minor improvement in documentation of internals

* doc/lispref/internals.texi (Writing Emacs Primitives): Document QUIT.

8 years agoImprove documentation of COLLECTION in completion functions
Eli Zaretskii [Fri, 16 Oct 2015 09:38:36 +0000 (12:38 +0300)]
Improve documentation of COLLECTION in completion functions

* doc/lispref/minibuf.texi (Minibuffer Completion): Add a
cross-reference to "Programmed Completion".

* src/minibuf.c (Fcompleting_read): Improve the doc string.
(Bug#21644)

8 years ago; More updates and corrections in etc/HISTORY
Eli Zaretskii [Fri, 16 Oct 2015 08:56:52 +0000 (11:56 +0300)]
; More updates and corrections in etc/HISTORY

8 years agoAdd more release info to etc/HISTORY
Eli Zaretskii [Fri, 16 Oct 2015 08:45:01 +0000 (11:45 +0300)]
Add more release info to etc/HISTORY

* etc/HISTORY: Add more release information about 19.x and 20.x
versions.

8 years agoNew file etc/HISTORY
Paul Eggert [Thu, 15 Oct 2015 21:59:43 +0000 (14:59 -0700)]
New file etc/HISTORY

* admin/FOR-RELEASE: Procedure for etc/HISTORY.
* etc/HISTORY: New file.
* etc/NEWS: Mention it.

8 years agojs-mode: Don't misindent generator methods
Dmitry Gutov [Thu, 15 Oct 2015 19:34:18 +0000 (22:34 +0300)]
js-mode: Don't misindent generator methods

* lisp/progmodes/js.el (js--looking-at-operator-p): Distinguish
generator methods from multiplication operator
(https://github.com/mooz/js2-mode/issues/275).

8 years agoFix animation timeout delay calculation
Paul Eggert [Thu, 15 Oct 2015 17:51:25 +0000 (10:51 -0700)]
Fix animation timeout delay calculation

* lisp/image.el (image-animate-timeout):
Don’t assume speed is floating-point.

8 years agoAdd commands for controlling MPD modes
Mark Oteiza [Thu, 15 Oct 2015 16:32:59 +0000 (12:32 -0400)]
Add commands for controlling MPD modes

* lisp/mpc.el (mpc-cmd-consume, mpc-cmd-random, mpc-cmd-repeat)
(mpc-cmd-single): New functions.
(mpc-consume, mpc-repeat, mpc-single, mpc-shuffle): New commands.
(mpc-mode-menu): Add new commands as menu items.

8 years agoRefer to `(elisp)Basic Completion' in completing-read docstring
Dmitry Gutov [Thu, 15 Oct 2015 09:18:16 +0000 (12:18 +0300)]
Refer to `(elisp)Basic Completion' in completing-read docstring

* src/minibuf.c (Fcompleting_read): Refer to `(elisp)Basic
Completion' in the docstring (bug#21644).

8 years ago* lisp/mpc.el (mpc-format): Always push form to pred
Mark Oteiza [Wed, 14 Oct 2015 23:00:31 +0000 (19:00 -0400)]
* lisp/mpc.el (mpc-format): Always push form to pred

8 years agoSpelling fixes
Paul Eggert [Wed, 14 Oct 2015 21:46:22 +0000 (14:46 -0700)]
Spelling fixes

* configure.ac (bitmapdir): Fix misspelling of bmd_acc.
* test/automated/coding-tests.el (ert-test-coding-bogus-coding-systems):
Fix misspelling of nonexistent file name.

8 years ago* lisp/mpc.el (mpc-mode-menu, mpc-toggle-play): Fix docstrings
Mark Oteiza [Wed, 14 Oct 2015 21:32:47 +0000 (17:32 -0400)]
* lisp/mpc.el (mpc-mode-menu, mpc-toggle-play): Fix docstrings

8 years agoSome editing fixes in Tramp
Michael Albinus [Wed, 14 Oct 2015 18:16:14 +0000 (20:16 +0200)]
Some editing fixes in Tramp

* lisp/net/tramp-gvfs.el:
* doc/misc/tramp.texi: "customer option" -> "custom option".

* lisp/net/tramp.el (tramp-completion-function-alist): Fix docstring.

8 years ago; Submit changes promised last commit already
Michael Albinus [Wed, 14 Oct 2015 18:10:14 +0000 (20:10 +0200)]
; Submit changes promised last commit already

8 years agoUse proper localization in tramp-gvfs.el
Jürgen Hötzel [Wed, 14 Oct 2015 18:09:03 +0000 (20:09 +0200)]
Use proper localization in tramp-gvfs.el

* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-attributes):
Suppress localized settings in order to proper parse gfvs output.

8 years agoFix Bug#21562
Warren Lynn [Wed, 14 Oct 2015 18:03:50 +0000 (20:03 +0200)]
Fix Bug#21562

* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band):
Quote argument in proper order.  (Bug#21562)

Copyright-paperwork-exempt: yes

8 years agoFix typos in docstrings
Nicolas Petton [Wed, 14 Oct 2015 15:55:53 +0000 (17:55 +0200)]
Fix typos in docstrings

* lisp/emacs-lisp/map.el:
* lisp/emacs-lisp/seq.el: Fix typos in the docstrings of the pcase
  macros.

8 years ago* lisp/mpc.el (mpc-volume-refresh): Check if buffer is live.
Mark Oteiza [Wed, 14 Oct 2015 12:52:44 +0000 (08:52 -0400)]
* lisp/mpc.el (mpc-volume-refresh): Check if buffer is live.

8 years ago; Auto-commit of loaddefs files.
Glenn Morris [Wed, 14 Oct 2015 10:22:34 +0000 (06:22 -0400)]
; Auto-commit of loaddefs files.

8 years agoMake dired-jump work with tar-subfile-mode
Oleh Krehel [Wed, 14 Oct 2015 09:19:21 +0000 (11:19 +0200)]
Make dired-jump work with tar-subfile-mode

* lisp/dired-x.el (dired-jump): When in `tar-subfile-mode', instead of
  emitting an error, switch to `tar-superior-buffer'.

8 years ago* .gitignore: Add build-aux/ar-lib.
Juanma Barranquero [Wed, 14 Oct 2015 07:44:40 +0000 (09:44 +0200)]
* .gitignore: Add build-aux/ar-lib.

8 years agoBetter docstrings in seq.el and map.el
Nicolas Petton [Wed, 14 Oct 2015 07:37:59 +0000 (09:37 +0200)]
Better docstrings in seq.el and map.el

* lisp/emacs-lisp/map.el:
* lisp/emacs-lisp/seq.el: Improve the docstring for the pcase patterns.

8 years agoMerge from gnulib
Paul Eggert [Wed, 14 Oct 2015 06:34:16 +0000 (23:34 -0700)]
Merge from gnulib

This incorporates:
2015-10-13 binary-io, u64, unistd: port to strict C
2015-09-26 c-ctype: do not worry about EBCDIC + char signed
2015-09-25 c-ctype: port better to z/OS EBCDIC
2015-09-25 gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
* doc/misc/texinfo.tex, lib/binary-io.c, lib/c-ctype.h, lib/u64.c:
* lib/unistd.c, m4/gnulib-common.m4, m4/gnulib-comp.m4:
Copy from gnulib.

8 years agoTake XPNTR private
Paul Eggert [Wed, 14 Oct 2015 06:09:43 +0000 (23:09 -0700)]
Take XPNTR private

* src/alloc.c (PURE_POINTER_P): Remove.
All uses replaced with PURE_P.
(XPNTR_OR_SYMBOL_OFFSET): New function.
(XPNTR): Move here from lisp.h.
Reimplement in terms of XPNTR_OR_SYMBOL_OFFSET.
(mark_maybe_object, valid_lisp_object_p, survives_gc_p):
Remove unnecessary cast.
(purecopy): Use XPNTR_OR_SYMBOL_OFFSET instead of XPNTR,
to avoid an unnecessary runtime test for symbols.
* src/lisp.h (lisp_h_XPNTR, XPNTR): Remove, moving XPNTR to alloc.c.
Only alloc.c needs XPNTR now.

8 years agoAdd MPC play/pause command
Mark Oteiza [Wed, 14 Oct 2015 02:49:58 +0000 (22:49 -0400)]
Add MPC play/pause command

* lisp/mpc.el (mpc-toggle-play): New command.
(mpc-mode-map): Bind it to "s".
(mpc-mode-menu): Add corresponding menu item.

8 years agoAdd bindings and menu items for prev and next tracks
Mark Oteiza [Wed, 14 Oct 2015 02:08:48 +0000 (22:08 -0400)]
Add bindings and menu items for prev and next tracks

* lisp/mpc.el (mpc-mode-map): Bind ">" to mpc-next,
"<" to mpc-prev.
(mpc-mode-menu): Add corresponding menu items

8 years agoReduce face-related consing during frame creation.
Ken Raeburn [Wed, 14 Oct 2015 02:06:01 +0000 (22:06 -0400)]
Reduce face-related consing during frame creation.

* faces.el (face--attributes-unspecified): Compute the "unspecified"
attribute list once.
(face-spec-reset-face): Use it instead of building the list.

8 years agoDo process ConfigureNotify events indicating size changes.
Ken Raeburn [Tue, 13 Oct 2015 23:33:15 +0000 (19:33 -0400)]
Do process ConfigureNotify events indicating size changes.

* src/xterm.c (handle_one_xevent): If consecutive ConfigureNotify
events don't have the same size, process each one.

8 years agoDerive mpc-mode from special-mode
Mark Oteiza [Tue, 13 Oct 2015 22:14:49 +0000 (18:14 -0400)]
Derive mpc-mode from special-mode

lisp/mpc.el (mpc-mode-map): Make from sparse keymap. Unbind g.
(mpc-mode): Derive from special mode.
(mpc-songs-mode-map): Don't set parent keymap.

8 years agoFix error messages for when covers are not found.
Mark Oteiza [Tue, 13 Oct 2015 18:19:18 +0000 (14:19 -0400)]
Fix error messages for when covers are not found.

The last change to mpc-format let the binding to file call
mpc-file-local-copy with nil argument. Instead, employ if-let here so
nil bindings don't result in needless computation and errors.
* lisp/mpc.el: Require 'subr-x at compile time.
* lisp/mpc.el (mpc-format): Use if-let.