]> code.delx.au - gnu-emacs/log
gnu-emacs
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.

8 years agoMake dired-do-compress work for *.tar.gz files
Oleh Krehel [Tue, 13 Oct 2015 13:39:12 +0000 (15:39 +0200)]
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'.

8 years agoMake dired-do-compress work for directories
Oleh Krehel [Tue, 13 Oct 2015 12:07:10 +0000 (14:07 +0200)]
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.

8 years ago* lisp/mpc.el (mpc-songs-refresh): Don't side-effect `active'
Stefan Monnier [Tue, 13 Oct 2015 13:48:16 +0000 (09:48 -0400)]
* lisp/mpc.el (mpc-songs-refresh): Don't side-effect `active'

... since it might come straight from the memoizing table.

8 years ago* src/w32fns.c (x_change_tool_bar_height): Remove unused variable frame.
Juanma Barranquero [Tue, 13 Oct 2015 13:22:50 +0000 (15:22 +0200)]
* src/w32fns.c (x_change_tool_bar_height): Remove unused variable frame.

8 years agoUse special-mode in eww list modes
Mark Oteiza [Wed, 30 Sep 2015 18:24:38 +0000 (14:24 -0400)]
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.

8 years agoAllow setting frame pixel sizes from frame parameters (Bug#21415)
Martin Rudalics [Tue, 13 Oct 2015 10:11:43 +0000 (12:11 +0200)]
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.

8 years ago* test/automated/file-notify-tests.el (file-notify--test-timeout):
Michael Albinus [Tue, 13 Oct 2015 07:44:48 +0000 (09:44 +0200)]
* test/automated/file-notify-tests.el (file-notify--test-timeout):

Add docstring.  Increase to 10 seconds for remote
directories.  (Bug#21669)

8 years agoUnmacroize ebrowse.c and etags.c a bit
Paul Eggert [Mon, 12 Oct 2015 22:30:18 +0000 (15:30 -0700)]
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).

8 years agoUse highlight for current items.
Mark Oteiza [Mon, 12 Oct 2015 20:46:29 +0000 (16:46 -0400)]
Use highlight for current items.

* lisp/mpc.el (mpc-select-make-overlay, mpc-tagbrowser-all-select):
Apply highlight face instead of region face.

8 years agoSearch for more cover image names in MPC
Mark Oteiza [Mon, 12 Oct 2015 20:28:33 +0000 (16:28 -0400)]
Search for more cover image names in MPC

* lisp/mpc.el (mpc-format): Also look for .folder.jpg or folder.jpg
case insensitively

8 years agoRemove or comment out unused variables
Juanma Barranquero [Mon, 12 Oct 2015 19:43:39 +0000 (21:43 +0200)]
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.

8 years ago* src/w32proc.c (sys_select): Fix bitwise test.
Juanma Barranquero [Mon, 12 Oct 2015 19:05:07 +0000 (21:05 +0200)]
* src/w32proc.c (sys_select): Fix bitwise test.

8 years agoMinor typo corrections in doc strings
Eli Zaretskii [Mon, 12 Oct 2015 17:49:05 +0000 (20:49 +0300)]
Minor typo corrections in doc strings

* lisp/menu-bar.el (popup-menu, popup-menu-normalize-position):
Doc fixes.

8 years ago* nt/INSTALL: Recommend MSYS Automake/Autoconf from ezwinports.
Eli Zaretskii [Mon, 12 Oct 2015 17:09:54 +0000 (20:09 +0300)]
* nt/INSTALL: Recommend MSYS Automake/Autoconf from ezwinports.

8 years agoAttempt to avoid crashes in plist-member
Eli Zaretskii [Mon, 12 Oct 2015 17:02:52 +0000 (20:02 +0300)]
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)

8 years agoIn gui-get-primary-selection use gui--selection-value-internal (Bug#20906)
Mike FABIAN [Thu, 8 Oct 2015 13:45:32 +0000 (15:45 +0200)]
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)

8 years agoSupport RTF in doc-view
Tassilo Horn [Mon, 12 Oct 2015 06:04:29 +0000 (08:04 +0200)]
Support RTF in doc-view

* lisp/doc-view.el (doc-view-set-doc-type): Add entry for RTF extension.

8 years ago* w32fns.c (get_wm_chars): Increment counter, not pointer.
Juanma Barranquero [Mon, 12 Oct 2015 04:55:02 +0000 (06:55 +0200)]
* w32fns.c (get_wm_chars): Increment counter, not pointer.

8 years agoReplace the usage of an obsolete function in auth-source.el
Nicolas Petton [Sun, 11 Oct 2015 20:58:35 +0000 (22:58 +0200)]
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'.

8 years ago* lisp/gnus/auth-source.el: Use sharp-quoting with functions.
Nicolas Petton [Sun, 11 Oct 2015 20:58:25 +0000 (22:58 +0200)]
* lisp/gnus/auth-source.el: Use sharp-quoting with functions.

8 years agoHave calc-yank recognize numbers in different bases.
Jay Belanger [Sun, 11 Oct 2015 20:35:18 +0000 (15:35 -0500)]
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.

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

8 years agoHandle an opaque-move X11 window manager operation more efficiently.
Ken Raeburn [Sat, 10 Oct 2015 07:26:42 +0000 (03:26 -0400)]
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.

8 years agoFix cursor setting for tip frame; re-enable cursor generation.
Ken Raeburn [Thu, 8 Oct 2015 08:13:06 +0000 (04:13 -0400)]
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.

8 years agoRewrite x_set_mouse_color to sync less.
Ken Raeburn [Sat, 3 Oct 2015 03:36:31 +0000 (23:36 -0400)]
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.

8 years agoAdd x_catch_errors_with_handler.
Ken Raeburn [Fri, 2 Oct 2015 09:00:23 +0000 (05:00 -0400)]
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.

8 years agoIntroduce x_uncatch_errors_after_check to reduce XSync calls.
Ken Raeburn [Wed, 7 Oct 2015 10:04:01 +0000 (06:04 -0400)]
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.

8 years agoDocument the optional prefix to `calc-yank'.
Jay Belanger [Sun, 11 Oct 2015 03:08:33 +0000 (22:08 -0500)]
Document the optional prefix to `calc-yank'.

* doc/misc/calc.texi (Yanking into the Stack): Document the optional
prefix to `calc-yank'.
* lisp/calc/calc-yank.el (calc-yank): Ensure that things killed from
the Calc buffer are yanked back unchanged.

8 years ago* lisp/calendar/calendar.el: Display buffer before executing body.
Mark Oteiza [Sun, 11 Oct 2015 02:23:59 +0000 (22:23 -0400)]
* lisp/calendar/calendar.el: Display buffer before executing body.

In each use of this macro, the modeline is derived from a window width
calculation, which will be wrong if (display-buffer) splits the window
horizontally.

8 years agoUse ‘echo’ safely with ‘\’ or leading ‘-’
Paul Eggert [Sun, 11 Oct 2015 01:03:49 +0000 (18:03 -0700)]
Use ‘echo’ safely with ‘\’ or leading ‘-’

POSIX says that ‘echo FOO’ produces implementation-defined output
if FOO contains leading ‘-’, or ‘\’ anywhere, so don’t assume GNU
behavior in that case.
* Makefile.in (removenullpaths): Remove.
(epaths-force): Rewrite to avoid the need for ‘echo’.
(install-etc): Be clearer about escaping the shell metacharacters
‘\’ and ‘$’.
* Makefile.in (install-arch-indep, install-etcdoc):
* admin/charsets/mapconv, admin/merge-gnulib, admin/merge-pkg-config:
* admin/quick-install-emacs, build-aux/gitlog-to-emacslog:
* configure.ac, lib-src/rcs2log, make-dist:
* src/Makefile.in (lisp.mk):
Don’t assume ‘echo’ outputs ‘\’ and leading ‘-’ unscathed.
For example, use ‘printf '%s\n' "$foo"’ rather than ‘echo "$foo"’
if $foo can contain arbitrary characters.
* lisp/Makefile.in (TAGS): Use ‘ls’, not ‘echo’, to avoid ‘\’ issues.
* doc/lispref/two-volume.make (vol1.pdf):
* test/etags/make-src/Makefile (web ftp publish):
Use ‘printf’ rather than ‘echo -e’.

8 years agoAllow numbers with different radixes to be yanked.
Kaushal Modi [Sat, 10 Oct 2015 23:36:51 +0000 (18:36 -0500)]
Allow numbers with different radixes to be yanked.

* lisp/calc/calc-yank.el (calc-yank): Allow radixes besides the
default base 10.

8 years agoImprove CHECK_IMPURE and PURE_P speedup
Paul Eggert [Sat, 10 Oct 2015 22:46:28 +0000 (15:46 -0700)]
Improve CHECK_IMPURE and PURE_P speedup

* src/data.c (Faset): Use XVECTOR and XSTRING rather than XPNTR.

8 years agoUse events instead of chars to keep track of steps.
Jay Belanger [Sat, 10 Oct 2015 22:21:44 +0000 (17:21 -0500)]
Use events instead of chars to keep track of steps.

* lisp/calc/calc-prog.el (calc-kbd-loop): Use events instead of chars
to keep track of steps.

8 years ago; admin/notes/unicode: Update for latest changes.
Eli Zaretskii [Sat, 10 Oct 2015 19:50:06 +0000 (22:50 +0300)]
; admin/notes/unicode: Update for latest changes.

8 years agoFix --enable-gcc-warnings problem with older GCC
Paul Eggert [Sat, 10 Oct 2015 18:56:20 +0000 (11:56 -0700)]
Fix --enable-gcc-warnings problem with older GCC

* src/puresize.h: Add INLINE_HEADER_BEGIN, INLINE_HEADER_END.
This is for building with --enable-gcc-warnings with
GCC 4.6 through 5.0.

8 years agoFix vertical-motion in truncated lines that end in a stretch
Eli Zaretskii [Sat, 10 Oct 2015 17:01:00 +0000 (20:01 +0300)]
Fix vertical-motion in truncated lines that end in a stretch

* src/indent.c (Fvertical_motion): Expect overshoot when point is
beyond window margin and lines are truncated, even if we have a
stretch at point.  (Bug#21468)

8 years agoAvoid link-time errors due to inline functions
Eli Zaretskii [Sat, 10 Oct 2015 10:45:15 +0000 (13:45 +0300)]
Avoid link-time errors due to inline functions

* src/emacs.c: Include puresize.h, to avoid link-time errors in
unoptimized builds due to PURE_P and CHECK_IMPURE, which are now
inline functions.

8 years ago* src/data.c (Faset): Fix last change.
Andreas Schwab [Sat, 10 Oct 2015 08:58:53 +0000 (10:58 +0200)]
* src/data.c (Faset): Fix last change.

8 years agoCHECK_IMPURE and PURE_P speedup
Paul Eggert [Sat, 10 Oct 2015 07:17:11 +0000 (00:17 -0700)]
CHECK_IMPURE and PURE_P speedup

* src/intervals.c (create_root_interval):
Do CHECK_IMPURE only for strings; not needed for buffers.
Prefer ! STRINGP to BUFFERP, for a tad more speed.
* src/puresize.h (CHECK_IMPURE, PURE_P):
Now inline functions instead of macros.
(PURE_P): Don’t use XPNTR; that is now the caller’s responsibility.
All callers changed.
(CHECK_IMPURE): New argument PTR, to save us the work of running XPNTR.
All callers changed.

8 years ago(tramp-open-connection-setup-interactive-shell): Send -onlcr as well.
Noah Friedman [Fri, 9 Oct 2015 23:15:21 +0000 (16:15 -0700)]
(tramp-open-connection-setup-interactive-shell): Send -onlcr as well.

8 years ago* lisp/progmodes/cc-mode.el (c-after-font-lock-init): Only *move*
Stefan Monnier [Fri, 9 Oct 2015 20:34:20 +0000 (16:34 -0400)]
* lisp/progmodes/cc-mode.el (c-after-font-lock-init): Only *move*

our after-change-function, rather than re-adding it if it was removed.

8 years ago* lisp/cedet/ede: Silence some compiler warnings
Stefan Monnier [Fri, 9 Oct 2015 19:55:31 +0000 (15:55 -0400)]
* lisp/cedet/ede: Silence some compiler warnings

* lisp/cedet/ede.el: Require cl-lib.  Silence some compiler warnings.
(ede-menu-obj-of-class-p): Use cl-some rather than `eval'.
(ede-apply-object-keymap, ede-reset-all-buffers)
(ede-auto-add-to-target): Use dolist.
(ede-new, ede-flush-deleted-projects, ede-global-list-sanity-check):
Use field names rather than initarg names in `oref'.
(ede-load-project-file): Remove unused var `file'.
(ede-map-any-target-p): Use cl-some rather than ede-map-targets.
(ede-set): Remove unused var `a'.

* lisp/cedet/ede/emacs.el: Silence some compiler warnings.
(ede-project-autoload): Avoid the old-style "name" argument.
(ede-emacs-find-matching-target): Use field names rather than initarg
names in `oref'.

* lisp/cedet/ede/linux.el: Silence some compiler warnings.
(ede-linux-load, ede-project-autoload): Avoid the old-style "name" argument.
(ede-linux-find-matching-target): Use field names rather than initarg
names in `oref'.

8 years ago* lisp/textmodes/reftex.el: Silence byte-compiler warnings.
Stefan Monnier [Fri, 9 Oct 2015 19:35:30 +0000 (15:35 -0400)]
* lisp/textmodes/reftex.el: Silence byte-compiler warnings.

8 years ago* lisp/progmodes/prolog.el: Avoid indenting too much, after ":-"
Stefan Monnier [Fri, 9 Oct 2015 19:30:27 +0000 (15:30 -0400)]
* lisp/progmodes/prolog.el: Avoid indenting too much, after ":-"

(prolog-smie-rules): Try and avoid indenting too far after ":-".

8 years agoUpdate case-table and categories of recently added characters
Eli Zaretskii [Fri, 9 Oct 2015 18:33:20 +0000 (21:33 +0300)]
Update case-table and categories of recently added characters

* lisp/international/characters.el: Update information about Latin
Extended-C, Latin Extended-D, Latin Extended-E, Cyrillic Extended,
Georgian, Glagolitic, Deseret, Old Hungarian, and Warang Citi
blocks.  (Byug#21654)

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

8 years agoIn adjust_frame_size don't count minibuffer height twice (Bug#21643)
Martin Rudalics [Fri, 9 Oct 2015 09:55:06 +0000 (11:55 +0200)]
In adjust_frame_size don't count minibuffer height twice (Bug#21643)

* src/frame.c (adjust_frame_size): In minibuffer-only windows
don't count minibuffer height twice.  (Bug#21643)

8 years agoAvoid inflooping in font-lock
Eli Zaretskii [Fri, 9 Oct 2015 08:12:58 +0000 (11:12 +0300)]
Avoid inflooping in font-lock

* lisp/font-lock.el (font-lock-extend-region-wholelines): Bind
inhibit-field-text-motion around the call to
line-beginning-position, to avoid inflooping.  (Bug#21615)

8 years agoRefactor duplicated code; ensure default is in completions
Tassilo Horn [Fri, 9 Oct 2015 07:56:40 +0000 (09:56 +0200)]
Refactor duplicated code; ensure default is in completions

* lisp/textmodes/reftex-cite.el (reftex--query-search-regexps): New function.
(reftex-extract-bib-entries): Use it.
(reftex-extract-bib-entries-from-thebibliography): Use it.

8 years agoTypo in example
Vincent Belaïche [Fri, 9 Oct 2015 05:52:15 +0000 (07:52 +0200)]
Typo in example

* autotype.texi (Skeletons as Abbrevs): "if" -> "ifst" in the example.

8 years ago* lisp/calc/calc.el: Silence byte-compiler warnings
Stefan Monnier [Fri, 9 Oct 2015 02:25:38 +0000 (22:25 -0400)]
* lisp/calc/calc.el: Silence byte-compiler warnings

(calc-scan-for-dels): Use ignore-errors.
(calc-dispatch, calc-do-dispatch): Make unused arg optional.
(calc-read-key-sequence): Remove unused var `prompt2'.
(calc-kill-stack-buffer): Remove unused var `buflist'.
(calc): Remove unused var `oldbuf'.
(calc-refresh): Use inhibit-read-only.
(calc-can-abbrev-vectors): Declare.
(calc-record): Remove unused var `mainbuf'.
(math-sub-bignum): Remove unused var `sum'.
(math-svo-c, math-svo-wid, math-svo-off): Declare.

8 years agoUse g_clear_error instead of g_error_free
Daiki Ueno [Thu, 8 Oct 2015 03:43:37 +0000 (12:43 +0900)]
Use g_clear_error instead of g_error_free

* src/image.c: Define g_clear_error instead of g_error_free.
(init_svg_functions): Resolve symbol g_clear_error instead of
g_error_free.
(svg_load_image): Use g_clear_error instead of g_error_free, to
suppress GLib warnings when ERR is not set.  See bug#21641.

8 years ago* src/image.c (image_size_error): Simplify.
Paul Eggert [Thu, 8 Oct 2015 20:54:04 +0000 (13:54 -0700)]
* src/image.c (image_size_error): Simplify.

8 years agoFix problems caught with --enable-gcc-warnings
Paul Eggert [Thu, 8 Oct 2015 20:42:38 +0000 (13:42 -0700)]
Fix problems caught with --enable-gcc-warnings

* src/image.c (lookup_rgb_color):
* src/xfns.c (x_defined_color):
* src/xterm.c (x_parse_color):
Remove unused locals.

8 years ago* lisp/calc/calc.el (calc-digit-start-entry): Fix typo.
Jay Belanger [Thu, 8 Oct 2015 13:38:45 +0000 (08:38 -0500)]
* lisp/calc/calc.el (calc-digit-start-entry): Fix typo.

8 years agoFormat initial input uniformly.
Jay Belanger [Thu, 8 Oct 2015 13:32:00 +0000 (08:32 -0500)]
Format initial input uniformly.

* lisp/calc/calc.el (calc-digit-start-entry): New function.
* lisp/calc/calc.el (calcDigit-start):
* lisp/calc/calc-aent.el (calc-alg-digit-entry):
Use `calc-digit-start-entry' to format input.

8 years agoDisable non-working pointerColor setting for X tooltip frame.
Ken Raeburn [Mon, 5 Oct 2015 15:11:32 +0000 (11:11 -0400)]
Disable non-working pointerColor setting for X tooltip frame.

It generates a bunch of server traffic, but there's some bug wherein
the new mouse cursor settings don't seem to get used.  In most
situations the cursor isn't likely to be seen anyway, so it's not
urgent to fix.

* src/xfns.c (x_create_tip_frame): Don't set pointerColor.

8 years agoReduce some unnecessary X calls.
Ken Raeburn [Sun, 4 Oct 2015 13:54:44 +0000 (09:54 -0400)]
Reduce some unnecessary X calls.

* src/xfns.c (x_real_pos_and_offsets): Remove a redundant XGetGeometry
call.  If border width is wanted, get it from the XGetGeometry call
instead of calling XGetWindowAttributes on the same window.  Skip some
X calls if we've already detected an error from the X server.
* src/xterm.c (x_wm_supports): Delete x_sync before x_had_errors_p.
(handle_one_xevent): Delete XSync call before x_uncatch_errors.