1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-02-07 20:54:32 +00:00

123165 Commits

Author SHA1 Message Date
Mark Oteiza
5110c95206 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.
2015-10-15 12:32:59 -04:00
Dmitry Gutov
59def59158 Refer to `(elisp)Basic Completion' in completing-read docstring
* src/minibuf.c (Fcompleting_read): Refer to `(elisp)Basic
Completion' in the docstring (bug#21644).
2015-10-15 12:18:16 +03:00
Mark Oteiza
453af81f16 * lisp/mpc.el (mpc-format): Always push form to pred 2015-10-14 19:00:31 -04:00
Paul Eggert
943f7f902e 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.
2015-10-14 14:46:50 -07:00
Mark Oteiza
100a96c92b * lisp/mpc.el (mpc-mode-menu, mpc-toggle-play): Fix docstrings 2015-10-14 17:32:47 -04:00
Michael Albinus
e646242e13 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.
2015-10-14 20:16:14 +02:00
Michael Albinus
8318dec8e1 ; Submit changes promised last commit already 2015-10-14 20:10:14 +02:00
Jürgen Hötzel
0cced99164 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.
2015-10-14 20:09:03 +02:00
Warren Lynn
96764333c4 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
2015-10-14 20:03:50 +02:00
Nicolas Petton
17d4f60b55 Fix typos in docstrings
* lisp/emacs-lisp/map.el:
* lisp/emacs-lisp/seq.el: Fix typos in the docstrings of the pcase
  macros.
2015-10-14 17:57:32 +02:00
Mark Oteiza
aebf282aec * lisp/mpc.el (mpc-volume-refresh): Check if buffer is live. 2015-10-14 08:52:44 -04:00
Glenn Morris
c6cbf6c06c ; Auto-commit of loaddefs files. 2015-10-14 06:22:34 -04:00
Oleh Krehel
0e38e94b1c 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'.
2015-10-14 11:24:08 +02:00
Juanma Barranquero
f147c0f3a5 * .gitignore: Add build-aux/ar-lib. 2015-10-14 09:46:57 +02:00
Nicolas Petton
b5e2d74950 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.
2015-10-14 09:40:10 +02:00
Paul Eggert
e668176e7d 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.
2015-10-13 23:34:47 -07:00
Paul Eggert
2cc412cdc2 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.
2015-10-13 23:10:14 -07:00
Mark Oteiza
3fa424ca48 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.
2015-10-13 22:49:58 -04:00
Mark Oteiza
a7e6637162 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
2015-10-13 22:27:57 -04:00
Ken Raeburn
9fa9c26e42 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.
2015-10-13 22:12:55 -04:00
Ken Raeburn
85c12310ff 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.
2015-10-13 22:12:48 -04:00
Mark Oteiza
e90de8276f 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.
2015-10-13 18:14:49 -04:00
Mark Oteiza
18b0eb7f1c 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.
2015-10-13 14:25:35 -04:00
Oleh Krehel
6d6bf46647 Make dired-do-compress work for *.tar.gz files
* lisp/dired-aux.el (dired-compress-file-suffixes): Associate
  "tar -zxvf" to *.tar.gz; update docstring.

(dired-compress-file): Allow to specify switches after the command in
`dired-compress-file-suffixes'.
2015-10-13 15:51:47 +02:00
Oleh Krehel
787028839b Make dired-do-compress work for directories
* lisp/dired-aux.el (dired-compress-file): When FILE is a directory,
  instead of emitting an error, call "tar -czf FILE.tar.gz FILE".
Also convert the top comment into a docstring.
2015-10-13 15:51:47 +02:00
Stefan Monnier
8610bd16e9 * lisp/mpc.el (mpc-songs-refresh): Don't side-effect `active'
... since it might come straight from the memoizing table.
2015-10-13 09:48:16 -04:00
Juanma Barranquero
4466c724ac * src/w32fns.c (x_change_tool_bar_height): Remove unused variable frame. 2015-10-13 15:22:50 +02:00
Mark Oteiza
882c3f3651 Use special-mode in eww list modes
* lisp/net/eww.el (eww-bookmark-mode, eww-history-mode)
(eww-buffers-mode): Derive from special-mode and remove redundant
setting of buffer-read-only.
(eww-mode-map): Remove redundant keymap parent setting.
(eww-bookmark-mode-map, eww-history-mode-map, eww-buffers-mode-map):
Remove redundant keymap suppressions and mappings.
2015-10-13 08:12:53 -04:00
Martin Rudalics
d4fe840df0 Allow setting frame pixel sizes from frame parameters (Bug#21415)
Also fix some misfeatures in frame (re-)sizing code, add more
debugging information and remove some dead code.

* lisp/frame.el (frame-notice-user-settings, make-frame): Change
parameter names when setting `frame-size-history'.
(frame--size-history): New function.

* src/frame.c (frame_inhibit_resize): If frame has not been made
yet, return t if inhibit_horizontal_resize or
inhibit_vertical_resize bit have been set.
(adjust_frame_size): Simplify.
(make_frame): Initialize inhibit_horizontal_resize,
inhibit_vertical_resize, tool_bar_redisplayed, tool_bar_resized.
(Fframe_after_make_frame): Reset inhibit_horizontal_resize and
inhibit_vertical_resize slots.
(x_set_frame_parameters): Handle `text-pixels' specification for
width and height parameters.  Don't consider new_height or
new_width changes.  Call adjust_frame_size instead of
Fset_frame_size.
(x_figure_window_size): Two new arguments x_width and y_width
returning frame's figures width and height.  Calculate tool bar
height before frame sizes so SET_FRAME_HEIGHT can pick it up.
Handle `text-pixels' specification for width and height
parameters.
(Qtext_pixels, Qx_set_frame_parameters, Qset_frame_size)
(Qx_set_window_size_1, Qx_set_window_size_2)
(Qx_set_window_size_3, Qx_set_menu_bar_lines)
(Qupdate_frame_menubar, Qfree_frame_menubar_1)
(Qfree_frame_menubar_2): New symbols.
* src/frame.h (structure frame): New booleans
tool_bar_redisplayed, tool_bar_resized,
inhibit_horizontal_resize, inhibit_vertical_resize.
(x_figure_window_size): Update external declaration.
* src/gtkutil.c (xg_frame_set_char_size): Set size hints before
calling gtk_window_resize.
(update_frame_tool_bar): Make inhibiting of frame resizing more
discriminative.  Set tool_bar_resized bit.
* src/nsfns.m (x_set_tool_bar_lines): Make inhibiting of frame
resizing more discriminative.  Call adjust_frame_size instead of
x_set_window_size.
(Fx_create_frame): Handle x_width and x_height if
set by x_figure_window_size.
* src/nsterm.m (x_set_window_size): For GNUSTEP build don't
subtract 3 from tool bar height.
(x_set_window_size): Add frame_size_history_add call.
(x_new_font): Call adjust_frame_size instead of
x_set_window_size.
* src/w32fns.c (x_change_tool_bar_height): Reset
tool_bar_redisplayed and tool_bar_resized bits when adding tool
bar.  Make inhibiting of frame resizing more discriminative.
(w32_wnd_proc): Remove dead code in WM_WINDOWPOSCHANGING case.
(Fx_create_frame): Handle x_width and x_height if set by
x_figure_window_size.  Set size hints before adjusting frame size.
(x_create_tip_frame): Adjust x_figure_window_size call.
* src/w32term.c (x_set_window_size): Add frame_size_history_add
call.
* src/widget.c (set_frame_size): Remove dead code.  Add
frame_size_history_add call.  When frame_resize_pixelwise is t
use FRAME_PIXEL_WIDTH and FRAME_PIXEL_HEIGHT instead of
pixel_width and pixel_height.
(update_various_frame_slots): Remove dead code.
(EmacsFrameResize): Add more information in
frame_size_history_add call.
(EmacsFrameQueryGeometry): Round only when frame_resize_pixelwise
is not set.
* src/xdisp.c (redisplay_tool_bar): Set tool_bar_redisplayed bits.
* src/xfns.c (x_set_menu_bar_lines): Change argument name.
(x_change_tool_bar_height): Reset tool_bar_redisplayed and
tool_bar_resized bits when adding tool bar.  Make inhibiting of
frame resizing more discriminative.
(Fx_create_frame): Handle x_width and x_height if set by
x_figure_window_size.  Set size hints before adjusting frame size.
(x_create_tip_frame): Adjust x_figure_window_size call.
* src/xmenu.c (update_frame_menubar): Don't handle Lucid specially.
(set_frame_menubar): On Lucid never add core-border-width to
avoid that adding XtNinternalBorderWidth adds it again.
(free_frame_menubar): Handle frame_inhibit_resize true for Motif.
* src/xterm.c (x_new_font): In non-toolkit case handle size
change of menu bar.
(x_set_window_size_1): Fix calls to frame_size_history_add.
(x_wm_set_size_hint): Remove dead code.  Set
size_hints.min_width and size_hints.min_height to base_width and
base_height.
2015-10-13 12:11:43 +02:00
Michael Albinus
e53e1a0426 * test/automated/file-notify-tests.el (file-notify--test-timeout):
Add docstring.  Increase to 10 seconds for remote
directories.  (Bug#21669)
2015-10-13 09:44:48 +02:00
Paul Eggert
38f99a02b8 Unmacroize ebrowse.c and etags.c a bit
* lib-src/ebrowse.c (READ_CHUNK_SIZE): Now an enum constant.
(streq, filename_eq, set_flag, has_flag): Now inline functions.
(set_flag): First arg is now an address, not an lvalue.
All callers changed.
(filename_eq, set_flag, has_flag):
Rename from FILENAME_EQ, SET_FLAG, HAS_FLAG.
All callers changed.
* lib-src/etags.c (streq, strcaseeq, strneq, strncaseeq):
Now inline functions.  Remove asserts that are unnecessary these
days (and in some cases were too-generous anyway).
2015-10-12 15:33:53 -07:00
Mark Oteiza
e57a0c3d38 Use highlight for current items.
* lisp/mpc.el (mpc-select-make-overlay, mpc-tagbrowser-all-select):
Apply highlight face instead of region face.
2015-10-12 16:50:11 -04:00
Mark Oteiza
0f4efd1220 Search for more cover image names in MPC
* lisp/mpc.el (mpc-format): Also look for .folder.jpg or folder.jpg
case insensitively
2015-10-12 16:31:52 -04:00
Juanma Barranquero
4462823ebf Remove or comment out unused variables
* src/w32fns.c (x_set_mouse_color): Comment out variables cursor,
nontext_cursor, mode_cursor, hand_cursor and count.
(x_change_tool_bar_height): Remove variable old_text_height.
(deliver_wm_chars): Remove variable strip_Alt.
(Fw32_shell_execute): Remove variable document_a.
(Fw32_frame_geometry): Remove variable fullboth.
* src/w32term.c (w32_setup_relief_color): Comment out variable
w32_display_info.
(w32_horizontal_scroll_bar_handle_click): Remove variables start, end.
(w32_read_socket): Comment out variables rows, columns.
* src/w32uniscribe.c (uniscribe_check_otf_1): Remove variable rest.
2015-10-12 21:43:39 +02:00
Juanma Barranquero
48c38426cb * src/w32proc.c (sys_select): Fix bitwise test. 2015-10-12 21:05:07 +02:00
Eli Zaretskii
857f73eeaf Minor typo corrections in doc strings
* lisp/menu-bar.el (popup-menu, popup-menu-normalize-position):
Doc fixes.
2015-10-12 20:49:05 +03:00
Eli Zaretskii
402ef224dc * nt/INSTALL: Recommend MSYS Automake/Autoconf from ezwinports. 2015-10-12 20:09:54 +03:00
Eli Zaretskii
8ba156f1e7 Attempt to avoid crashes in plist-member
* src/fns.c (Fplist_member): Don't call QUIT between a CONSP test
and a call to XCDR.  (Bug#21655)
2015-10-12 20:02:52 +03:00
Mike FABIAN
1a588cb6dc In gui-get-primary-selection use gui--selection-value-internal (Bug#20906)
* lisp/select.el (gui-get-primary-selection): In gui-get-primary-selection
use gui--selection-value-internal (Bug#20906)
2015-10-12 10:34:51 +02:00
Tassilo Horn
70c811c047 Support RTF in doc-view
* lisp/doc-view.el (doc-view-set-doc-type): Add entry for RTF extension.
2015-10-12 08:05:09 +02:00
Juanma Barranquero
3f1c88de2e * w32fns.c (get_wm_chars): Increment counter, not pointer. 2015-10-12 06:55:02 +02:00
Nicolas Petton
644d31a269 Replace the usage of an obsolete function in auth-source.el
* lisp/gnus/auth-source.el (auth-source-epa-make-gpg-token): Replace an
  usage of `epg-context-set-armor' with `setf'.
2015-10-11 22:58:35 +02:00
Nicolas Petton
831807fafe * lisp/gnus/auth-source.el: Use sharp-quoting with functions. 2015-10-11 22:58:25 +02:00
Jay Belanger
732d259948 Have calc-yank recognize numbers in different bases.
* lisp/calc/calc-yank.el (math-number-regexp): New function.
(calc-yank): Use `math-number-regexp' to recognize numbers.
2015-10-11 15:35:18 -05:00
Glenn Morris
358794e5a7 ; Auto-commit of ChangeLog files. 2015-10-11 06:25:44 -04:00
Ken Raeburn
ce402dd77f Handle an opaque-move X11 window manager operation more efficiently.
* src/xterm.c (handle_one_xevent): If a ConfigureNotify event is
followed by more ConfigureNotify events for the same window, process
only the last one.
2015-10-11 01:15:25 -04:00
Ken Raeburn
ec2d99026f Fix cursor setting for tip frame; re-enable cursor generation.
* src/xfns.c (x_create_tip_frame): Include the cursor in the window
attributes sent when creating the new X window.  Don't skip setting
the pointerColor parameter.
2015-10-11 01:15:22 -04:00
Ken Raeburn
08e27d2944 Rewrite x_set_mouse_color to sync less.
We can track serial numbers of X requests and correlate error events
with the associated requests.  This way we can identify errors for
specific calls without having to use XSync after every one.

* src/xfns.c (enum mouse_cursor): New type.
(struct mouse_cursor_types, struct mouse_cursor_data): New types.
(mouse_cursor_types): New array listing the Lisp variables and default
cursor appearances for each cursor type.
(x_set_mouse_color_handler): New function; checks error event serial
number against submitted requests.
(x_set_mouse_color): Updated to use the new error handler callback,
and to be more table-driven, to simplify repetitious code.
2015-10-11 01:15:19 -04:00
Ken Raeburn
fcb5d3e8b1 Add x_catch_errors_with_handler.
* src/xterm.c (struct x_error_message_stack): Add new fields for a
callback function and associated data pointer.
(x_error_catcher): If the callback function is set, call it after
saving the error message string.
(x_catch_errors_with_handler): Renamed from x_catch_errors but now
accepts a callback function and data pointer.
(x_catch_errors): Now a wrapper function.
* src/xterm.h (x_special_error_handler): New typedef.
(x_catch_errors_with_handler): Declare.
2015-10-11 01:15:12 -04:00
Ken Raeburn
5504ede951 Introduce x_uncatch_errors_after_check to reduce XSync calls.
Both x_had_errors_p and x_check_errors call XSync, so if they're
immediately followed by x_uncatch_errors, its XSync call will be
redundant, resulting in a wasted round trip to the X server.

* src/xterm.c (x_uncatch_errors_after_check): New routine; a copy of
x_uncatch_errors without the XSync call.
(XTmouse_position, x_wm_supports):
* src/xfns.c (x_set_mouse_color):
* src/xmenu.c (Fx_menu_bar_open_internal):
* src/xselect.c (x_own_selection, x_get_foreign_selection):
(Fx_get_atom_name): Call it instead of x_uncatch_errors.
* src/xterm.h (x_uncatch_errors_after_check): Declare.
2015-10-11 01:15:08 -04:00