]> git.eshelyaron.com Git - emacs.git/log
emacs.git
8 years agoMake 'dired-do-shell-command' wait for all background jobs
Tino Calancha [Fri, 8 Apr 2016 14:04:08 +0000 (17:04 +0300)]
Make 'dired-do-shell-command' wait for all background jobs

* lisp/dired-aux.el (dired-shell-stuff-it): Force POSIX shells to
wait until all background jobs exit.  (Bug#23206).

8 years agoPrefer 'font-lock-face to 'face in erc where appropriate
Vivek Dasmohapatra [Thu, 7 Apr 2016 12:23:18 +0000 (14:23 +0200)]
Prefer 'font-lock-face to 'face in erc where appropriate

* lisp/erc/erc-button.el (erc-button-add-face): Prefer
'font-lock-face to 'face where appropriate.
* lisp/erc/erc-capab.el (erc-capab-identify-add-prefix)
* lisp/erc/erc-dcc.el (erc-dcc-chat-parse-output)
* lisp/erc/erc-goodies.el (erc-controls-propertize)
* lisp/erc/erc-stamp.el (erc-format-timestamp)
* lisp/erc/erc-track.el (erc-faces-in)
* lisp/erc/erc.el (erc-load-irc-script-lines, erc-display-msg)
(erc-display-command, erc-make-notice, erc-highlight-notice)
(erc-format-my-nick, erc-format-@nick, erc-format-privmessage)
(erc-display-prompt, erc-display-message-highlight)
(erc-log-irc-protocol): Ditto.

* test/lisp/erc/erc-track-tests.el: Converted asserts into ert
tests.

8 years agoAdd new keywords of Python 3.5
Lele Gaifax [Wed, 6 Apr 2016 08:38:23 +0000 (10:38 +0200)]
Add new keywords of Python 3.5

Python 3.5, released in mid September 2015, introduced a few new
keywords to better support asynchronous code, "async" and "await"
in particular. See https://www.python.org/dev/peps/pep-0492/ for
details. (Bug#21783)
* lisp/progmodes/python.el (python-rx-constituents): Add async
def/for/with as block-start and async def as defun.
* lisp/progmodes/python.el (python-font-lock-keywords): Add async
def/for/with as keyword.
* test/automated/python-tests.el (python-indent-after-async-block-1,
python-indent-after-async-block-2, python-indent-after-async-block-3,
python-nav-beginning-of-defun-3): New tests to test indentation and
navigation for the async keyword.

8 years ago; Remove superfluous merge from emacs-25
Michael Albinus [Wed, 6 Apr 2016 08:26:07 +0000 (10:26 +0200)]
; Remove superfluous merge from emacs-25

8 years agoSupport completion of at-rules in SCSS mode
Etienne Prud'homme [Fri, 1 Apr 2016 19:09:15 +0000 (15:09 -0400)]
Support completion of at-rules in SCSS mode

lisp/textmodes/css-mode.el (scss-at-ids): New defconst holding
SCSS-specific at-rules.
(css--at-ids): New buffer-local variable holding the list of at-rules
for the current mode.
(css--complete-at-rule): Retrieve at-rules from `css--at-ids`.
(scss-mode): Set `css--at-ids'.

Copyright-paperwork-exempt: yes

8 years ago; Spelling fix
Paul Eggert [Tue, 5 Apr 2016 15:16:01 +0000 (08:16 -0700)]
; Spelling fix

8 years agoEnable GCC warnings in developer builds
Paul Eggert [Tue, 5 Apr 2016 14:51:28 +0000 (07:51 -0700)]
Enable GCC warnings in developer builds

However, do not fail; just issue the warnings.  Add an option
--enable-gcc-warnings=warn-only to configure, to implement this.
* INSTALL, etc/NEWS: Document this.
* configure.ac (gl_GCC_VERSION_IFELSE): New macro, from coreutils.
(gl_gcc_warnings, WERROR_CFLAGS): Use it to add new option.
Don’t treat --with-x-toolkit=no as a special case when configuring
warnings.

8 years agoInhibit querying for the encoding of the headers when resending
Lars Magne Ingebrigtsen [Tue, 5 Apr 2016 08:28:09 +0000 (10:28 +0200)]
Inhibit querying for the encoding of the headers when resending

* lisp/gnus/message.el (message-resend): Inhibit querying for
the encoding of the headers when resending.

8 years ago; Fix typo in previous patch.
Paul Eggert [Tue, 5 Apr 2016 05:34:01 +0000 (22:34 -0700)]
; Fix typo in previous patch.

8 years agoPrefer AUTO_STRING_WITH_LEN to make_formatted_string
Paul Eggert [Tue, 5 Apr 2016 00:04:58 +0000 (17:04 -0700)]
Prefer AUTO_STRING_WITH_LEN to make_formatted_string

* src/buffer.c (Fgenerate_new_buffer_name):
* src/filelock.c (get_boot_time):
* src/minibuf.c (get_minibuffer):
* src/process.c (make_process):
* src/xdisp.c (ensure_echo_area_buffers):
Prefer AUTO_STRING_WITH_LEN + sprintf to make_formatted_string
when either will do.

8 years agoAllow URL using HTTPS proxies using CONNECT
Tao Fang [Mon, 4 Apr 2016 20:21:21 +0000 (22:21 +0200)]
Allow URL using HTTPS proxies using CONNECT

* lisp/url/url-http.el (url-http-find-free-connection): Allow
using proxies (bug#11788).
(url-http-end-of-document-sentinel): Ditto.
(url-http): The protocol may change from http to https and
vice versa.
(url-https-proxy-connect): Allow using CONNECT proxies for https.

8 years agoNew C macro AUTO_STRING_WITH_LEN
Paul Eggert [Mon, 4 Apr 2016 17:30:41 +0000 (10:30 -0700)]
New C macro AUTO_STRING_WITH_LEN

Put a bit less pressure on the garbage collector by defining a
macro that is like AUTO_STRING but also allows null bytes in strings,
and by extending AUTO_STRING to work with any unibyte string.
* src/alloc.c (verify_ascii): Remove; all uses removed.
AUTO_STRING can now be used on non-ASCII unibyte strings.
* src/lisp.h (AUTO_STRING): Now allows non-ASCII unibyte strings.
(AUTO_STRING_WITH_LEN): New macro.
* src/coding.c (from_unicode_buffer):
* src/editfns.c (format_time_string):
* src/emacs-module.c (module_make_string, module_format_fun_env):
* src/fileio.c (Fexpand_file_name):
* src/font.c (font_parse_family_registry):
* src/ftfont.c (ftfont_get_charset):
* src/keymap.c (silly_event_symbol_error):
* src/menu.c (single_menu_item):
* src/sysdep.c (system_process_attributes):
Use AUTO_STRING_WITH_LEN if possible.
* src/emacs-module.c (module_make_function):
* src/fileio.c (report_file_errno, report_file_notify_error):
* src/fns.c (Flocale_info):
* src/sysdep.c (system_process_attributes):
Use AUTO_STRING if possible.  This is doable more often now
that AUTO_STRING works on any unibyte string.

8 years agoPort redirect-debugging-output to MS-Windows
Paul Eggert [Mon, 4 Apr 2016 16:42:58 +0000 (09:42 -0700)]
Port redirect-debugging-output to MS-Windows

Suggested by Eli Zaretskii in:
http://lists.gnu.org/archive/html/emacs-devel/2016-04/msg00037.html
* src/print.c [WINDOWSNT]: Include sys/socket.h.
* src/w32.c (sys_dup2): Work around problem with MS-Windows _dup2.

8 years agoPort redirect-debugging-output to non-GNU/Linux
Paul Eggert [Mon, 4 Apr 2016 16:36:30 +0000 (09:36 -0700)]
Port redirect-debugging-output to non-GNU/Linux

Problem reported by Kylie McClain for musl in:
http://lists.gnu.org/archive/html/emacs-devel/2016-03/msg01592.html
* etc/DEBUG, etc/NEWS: Mention this.
* src/callproc.c (child_setup) [!MSDOS]:
* src/dispnew.c (init_display):
* src/emacs.c (main, Fdaemon_initialized):
* src/minibuf.c (read_minibuf_noninteractive):
* src/regex.c (xmalloc, xrealloc):
Prefer symbolic names like STDERR_FILENO to magic numbers like 2,
to make file-descriptor manipulation easier to follow.
* src/emacs.c (relocate_fd) [!WINDOWSNT]: Remove; no longer needed
now that we make sure stdin, stdout and stderr are open.  All uses
removed.
(main): Make sure standard FDs are OK.  Prefer symbolic names like
EXIT_FAILURE to magic numbers like 1.  Use bool for boolean.
* src/lisp.h (init_standard_fds): New decl.
* src/print.c (WITH_REDIRECT_DEBUGGING_OUTPUT) [GNU_LINUX]:
Remove; no longer needed.
(Fredirect_debugging_output): Define on all platforms, not just
GNU/Linux.  Redirect file descriptor, not stream, so that the code
works even if stderr is not an lvalue.  Report an error if the
file arg is neither a string nor nil.
(syms_of_print): Always define redirect-debugging-output.
* src/sysdep.c (force_open, init_standard_fds): New functions.

8 years agoSpelling fixes
Paul Eggert [Mon, 4 Apr 2016 06:16:35 +0000 (23:16 -0700)]
Spelling fixes

8 years agoRevert "Add `r'/`l' grep command history commands"
John Wiegley [Sun, 3 Apr 2016 22:46:53 +0000 (15:46 -0700)]
Revert "Add `r'/`l' grep command history commands"

This reverts commit a32eea60ac90d367435860fe3a10bf843e6f497c.

8 years agoRevert "Restore the point in grep buffers when traversing the history"
John Wiegley [Sun, 3 Apr 2016 22:46:52 +0000 (15:46 -0700)]
Revert "Restore the point in grep buffers when traversing the history"

This reverts commit f7c5f79ca565d3ef3feeb1e0af5ca261f1bcf58a.

8 years agoMerge from origin/emacs-25
Paul Eggert [Sun, 3 Apr 2016 20:39:52 +0000 (13:39 -0700)]
Merge from origin/emacs-25

787df9d ; * src/keyboard.c (read_char): Fix typos in a comment.

8 years ago; Merge from origin/emacs-25
Paul Eggert [Sun, 3 Apr 2016 20:39:52 +0000 (13:39 -0700)]
; Merge from origin/emacs-25

The following commit was skipped:

06ae23a Handle Bug#23186

8 years agoMerge from origin/emacs-25
Paul Eggert [Sun, 3 Apr 2016 20:39:52 +0000 (13:39 -0700)]
Merge from origin/emacs-25

b787d55 More format-time-string change fixups
13c8f29 make-xwidget unused arg cleanup
36e05f0 Remove unused arguments from make-xwidget
1042217 Document incompatible changes in 'format-time-string'
7228eb8 Improve documentation of byte-code objects
0020047 Adapt calls to 'format-time-string' to changes in Emacs 25
17b5152 Improve vc-diff with Git backend
c28f87a (js--continued-expression-p): Special-case unary plus and minus
2d02a5f ; * lisp/vc/vc-annotate.el (vc-annotate): Clarify commentary.
9151f16 Prevent C++ Mode wrongly fontifying some identifiers near tem...
b3b523c Avoid crashes due to insanely large columns in tabulated-list...
a3daa34 Teach M-x disassemble a default argument.
e30c3e9 Fix EOL decoding in vc-annotate with SVN back-end on MS-Windows
df441b3 Fix OS X specific settings in tramp-tests
2244331 Finish fixing a cacheing bug in CC Mode (see 2016-03-09)

# Conflicts:
# lisp/net/tramp-sh.el
# lisp/progmodes/cc-engine.el

8 years agoRestore the point in grep buffers when traversing the history
Lars Magne Ingebrigtsen [Sun, 3 Apr 2016 18:13:52 +0000 (20:13 +0200)]
Restore the point in grep buffers when traversing the history

* lisp/progmodes/grep.el (grep-process-setup): Allow moving
point to a specific place after finishing the grep command.
(grep-mode): Use it to restore point after traversing the history.
(grep--history-point): New internal variable.
(grep--save-history, grep-forward-history): Use it to restore
the point.

8 years agoAdd `r'/`l' grep command history commands
Lars Magne Ingebrigtsen [Sun, 3 Apr 2016 17:46:50 +0000 (19:46 +0200)]
Add `r'/`l' grep command history commands

* doc/emacs/building.texi (Grep Searching): Mention the
`r'/`l' commands.

* lisp/progmodes/grep.el (grep-forward-history): New command.
(grep-backward-history): Ditto.
(grep--save-buffers): New function.
(grep): Use it to record the history.
(grep--command-history, grep--history-inhibit)
(grep--history-place): New internal variables for the grep
history (bug#22627).

8 years ago; * src/keyboard.c (read_char): Fix typos in a comment.
Eli Zaretskii [Sun, 3 Apr 2016 17:06:51 +0000 (20:06 +0300)]
; * src/keyboard.c (read_char): Fix typos in a comment.

8 years agoFix Bug#23186, again
Michael Albinus [Sun, 3 Apr 2016 15:54:25 +0000 (17:54 +0200)]
Fix Bug#23186, again

* lisp/net/tramp.el (tramp-encoding-shell)
(tramp-encoding-command-switch)
(tramp-encoding-command-interactive): Check for
`w32-shell-name'.  (Bug#23186)

8 years agoFix Bug#23186
Michael Albinus [Sun, 3 Apr 2016 08:18:40 +0000 (10:18 +0200)]
Fix Bug#23186

* lisp/net/tramp.el (tramp-encoding-command-switch)
(tramp-encoding-command-interactive):
* lisp/net/tramp-sh.el (tramp-maybe-open-connection):
`tramp-encoding-shell' could be nil.  (Bug#23186)

8 years agoFix Bug#22145
Michael Albinus [Sun, 3 Apr 2016 08:14:56 +0000 (10:14 +0200)]
Fix Bug#22145

* lisp/net/tramp-cache.el (tramp-get-connection-property)
(tramp-set-connection-property, tramp-connection-property-p)
(tramp-flush-connection-property): Improve docstring.

* lisp/net/tramp-sh.el (tramp-maybe-open-connection): Use it.

* lisp/net/tramp.el (tramp-get-local-locale): New defun.

* test/automated/tramp-tests.el (tramp--test-utf8):
Improve settings of coding systems.  (Bug#22145)

8 years agoHandle Bug#23186
Michael Albinus [Sun, 3 Apr 2016 07:37:16 +0000 (09:37 +0200)]
Handle Bug#23186

* lisp/net/tramp.el (tramp-encoding-command-switch)
(tramp-encoding-command-interactive):
* lisp/net/tramp-sh.el (tramp-maybe-open-connection):
`tramp-encoding-shell' could be nil.  (Bug#23186)

8 years agoMore format-time-string change fixups
Paul Eggert [Sun, 3 Apr 2016 06:43:44 +0000 (23:43 -0700)]
More format-time-string change fixups

* lisp/net/tramp-sh.el (tramp-sh-handle-set-file-times):
* lisp/org/org.el (org-timestamp-format):
Fix doc to match new format-time-string behavior.
* lisp/org/ox-icalendar.el (org-icalendar-convert-timestamp):
Use (not (not X)) to treat non-nil values of utc arg as UTC.

8 years agomake-xwidget unused arg cleanup
Paul Eggert [Sun, 3 Apr 2016 00:50:03 +0000 (17:50 -0700)]
make-xwidget unused arg cleanup

* doc/lispref/display.texi (Xwidgets): Remove stray refs.
* src/xwidget.c (syms_of_xwidget): Qwebkit, not Qwebkit_osr.

8 years agoRemove unused arguments from make-xwidget
Joakim Verona [Sun, 3 Apr 2016 00:49:27 +0000 (17:49 -0700)]
Remove unused arguments from make-xwidget

The arguments BEG and END were unused, and are now removed.

* display.texi (Xwidgets): Document the change
* xwidget.el (make-xwidget, xwidget-insert)
(xwidget-webkit-new-session): Reflect changed arguments
* xwidget.c (Fmake_xwidget, syms_of_xwidget): Reflect changed arguments

8 years ago; Merge from origin/emacs-25
John Wiegley [Sat, 2 Apr 2016 21:51:34 +0000 (14:51 -0700)]
; Merge from origin/emacs-25

The following commit was skipped:

ed19f20 Merge branch 'emacs-25' of /home/acm/emacs/emacs.git/emacs-25...

8 years agoMerge from origin/emacs-25
John Wiegley [Sat, 2 Apr 2016 21:51:33 +0000 (14:51 -0700)]
Merge from origin/emacs-25

7c1802f * doc/lispref/text.texi (Columns): Remove a nonexistent refer...
9034c50 * doc/man/emacsclient.1: Document +line:column option.
06495c9 Fix rare problems with echo-area display and multiple frames
f99b512 In M-%, avoid making buffer-local binding of text-property-de...

8 years ago; Merge from origin/emacs-25
John Wiegley [Sat, 2 Apr 2016 21:51:33 +0000 (14:51 -0700)]
; Merge from origin/emacs-25

The following commit was skipped:

124c486 Remove prog-indentation-context

8 years agoMerge from origin/emacs-25
John Wiegley [Sat, 2 Apr 2016 21:51:33 +0000 (14:51 -0700)]
Merge from origin/emacs-25

e65c307 * src/font.c (QCuser_spec): Add missing colon to :user-spec.
c8b868b Don't start the 'midnight' timer twice
278c8a7 * src/xwidget.c (Fxwidget_resize): Fix inappropriate use of X...
e5c17f4 Fix todo-mode category movement
bc70fda * lisp/xt-mouse.el (xterm-mouse-utf-8): Add :version.
cf40f38 Ignore non-nil. non-cons values of unread-command-events
8ee4c52 Improve documentatuon of 'truncate-partial-width-windows'
fb9a62c * src/ftfont.c (ftfont_shape_by_flt): Parenthesize as per GNU...
1e1ea22 Fix 'dired-goto-file' in Dired buffers produced by find-dired
3a13472 Fix map-put and map-delete for alists (Bug#23105)
422c3da Minor copyedits of documentation for temporary displays
90fb9b3 Add customization option for using UTF-8 coordinates in xt-mouse
f14d463 Minor doc string fixes in replace.el
e70ee9d Fix scrolling upwards with 'xwidget-webkit-browse-url'
44782de Fix display of Indic scripts
326c64f Fix splash screen display at startup
7ab2a97 ; In NEWS mention new display of minibuffer completions window
a1cd84c Describe temporary displays in Emacs manual
5ec1056 Avoid stray As next to IDLW icons
45577d5 Avoid GTK 3 crash with icons and masks
e99ff6e * lisp/minibuffer.el (minibuffer-completion-help): Use fit-wi...
077b78c Define make_save_ptr_ptr unconditionally
20a1003 Preserve current buffer when popping up TTY menus
7eba90c Improve font selection by family on MS-Windows
73d213f Comint, term, and compile now set EMACS
9524ec5 Ignore more merges when generating ChangeLog
ad250f2 Sync with gnulib
c0165ea Resurrect GNUS-NEWS autogeneration
1e5327c ; Backport ChangeLog.2 fixes from master
e643977 Make `toggle-frame-maximized' respect the dock on OS X (bug#2...
38a43f1 Fix bug in displaying header line with a box face
91e6676 Fix an Isearch var to be a string (Bug#23038)
76ef522 Fix (args-out-of-range 1) error in cursor-sensor--detect
8a35f83 Render empty <ul><li><ul> correctly
d8b2ce5 Ignore invalid base64 encoded embedded images
52ba24b Fix <p> and <div> newlines with or without <li> in shr
b8ea08b Avoid errors in 'newline'
fc3cd53 Fix Bug#23032
dd2737b Adjudicate review comments in abbrevs.texi
26f9c50 Fixup the "normal" matcher; highlight global var symbols, too
413e73b ; Small theme additions
cd950da Honor prefix arg in doc-view-next-line-or-next-page
ed909c0 ; Spelling fixes
6da3a6d Port to strict C99 offsetof
de7601f Port to GTK with strict C11 compiler
658aa2d Port to GTK with strict C99 compiler
1df7173 Avoid screen artifacts with new OS X visible bell after scrol...
7a2edd3 Merge branch 'emacs-25' of git.sv.gnu.org:/srv/git/emacs into...
dca240a Suppress some Tramp tests for OSX, do not merge with master
9094304 * lisp/progmodes/xref.el (xref-buffer-name, xref--window): Mo...
cbedfc2 * lisp/gnus/mm-decode.el (gnus-format-message): Autoload it.
005ac7c * lisp/mail/rmail.el (rmail-mime-entity-truncated): Declare.
9ab03f2 ; Auto-commit of loaddefs files.
56df617 Address compilation warnings due to 2016-01-03 mml refactoring.
a1ef911 * lisp/emacs-lisp/smie.el (smie-indent-keyword): Don't burp i...
79ae7fb * lisp/dired-x.el (dired-omit-here-always): Correct error mes...
253929f * lisp/dired-x.el (dired-omit-here-always): Replace undefined...
ce53389 * lisp/xml.el (xml-parse-tag-1): Replace undefined function.
d6d164f Avoid segfaults due to frame image cache being absent
bc7f6f6 Improve documentation of glyphless-character display
6b6916e ; * src/xdisp.c (with_echo_area_buffer): Fix typos in comments.
ee9a1f7 Support safe navigation operator in non-SMIE indentation code
c3ed95b Move xsd:base64Binary decoding fix to debbugs.el 0.9.1
2036be4 Fix Ruby's operator precedence
1d686c2 (ruby-interpolation-inside-another-interpolation): New failin...
7950e1d Port to clang 3.7.0 on x86-64
218ae59 * test/automated/package-test.el (package-test-signed): Tweak...
ba33b7c Sync with gnulib
38b276d Fix startup of "emacs -nw" on systems that CANNOT_DUMP
dbfbedd Do not tokenize a comment before continuation as ';'
0403620 Don't misindent arguments of a method call inside continuation
e6776f8 * src/keyboard.c (echo_keystrokes_p): Don't test cursor_in_ec...
8475f3d ASCII-only etc/NEWS etc.
5cc6919 Fix a cacheing bug, which led to inordinately slow c-beginnin...
0ce37ea Fix Isearch prompt when invoked with an argument
f3033d4 Fix a typo in the Emacs manual
4235d2d Curved quotes in etc/NEWS etc.
26b56dc Fix some single quotes in documentation
80ec484 Make lisp-completion-at-point's argument optional
9d463ae Tweak the left precedence of '=>'
5b705bc Indent '.' relative to the first sibling expression
04f5525 Make '.' associative, for easier sexp navigation
ba24c99 Revert "Simplify "Visit New File" to "New File""

8 years ago* lisp/erc/erc-backend.el: Use lexical-binding. Silence byte-compiler
Stefan Monnier [Sat, 2 Apr 2016 19:38:54 +0000 (15:38 -0400)]
* lisp/erc/erc-backend.el: Use lexical-binding. Silence byte-compiler

Use #' to quote functions.
(erc-server-delayed-reconnect): Remove unused arg `event'.
(erc-process-sentinel-2): Adjust accordingly.
Don't pass `err' to condition-case if we don't use it.
(define-erc-response-handler): Use add-hook rather than add-to-list.
(NICK): Use cl-pushnew rather than add-to-list.
(331): Remove unused var `topic'.
(352): Remove unused var `hopcount'.

8 years agoDocument incompatible changes in 'format-time-string'
Eli Zaretskii [Sat, 2 Apr 2016 13:23:05 +0000 (16:23 +0300)]
Document incompatible changes in 'format-time-string'

* etc/NEWS: Mention the incompatible change in the interpretation
of the 3rd argument to 'format-time-string'.  (Bug#21943)

8 years agoImprove documentation of byte-code objects
Eli Zaretskii [Sat, 2 Apr 2016 12:13:00 +0000 (15:13 +0300)]
Improve documentation of byte-code objects

* doc/lispref/compile.texi (Byte-Code Objects): Document the
integer format of the argument descriptor.  (Bug#23061)

8 years agoAdapt calls to 'format-time-string' to changes in Emacs 25
Eli Zaretskii [Sat, 2 Apr 2016 11:25:47 +0000 (14:25 +0300)]
Adapt calls to 'format-time-string' to changes in Emacs 25

* lisp/vc/pcvs-info.el (cvs-fileinfo-from-entries): Use t as the
last argument to format-time-string.  (Bug#23128)
* lisp/gnus/gmm-utils.el (gmm-format-time-string): Use t as the
last argument to format-time-string, when the TZ argument is not a
number, per the doc string.

8 years agoSupport macros in 'func-arity'
Paul Pogonyshev [Sat, 2 Apr 2016 09:47:46 +0000 (12:47 +0300)]
Support macros in 'func-arity'

* src/eval.c (Ffunc_arity): Support Lisp macros as well.

8 years agoFix compilation of Cygwin w32 port
Andy Moreton [Sat, 2 Apr 2016 09:39:44 +0000 (12:39 +0300)]
Fix compilation of Cygwin w32 port

* src/w32xfns.c (init_crit, delete_crit) [HAVE_W32NOTIFY]: Only
initialize and free the notification set if compiling with
w32notify feature.

8 years agoImprove vc-diff with Git backend
Eli Zaretskii [Sat, 2 Apr 2016 09:25:15 +0000 (12:25 +0300)]
Improve vc-diff with Git backend

* lisp/vc/vc-git.el (vc-git-command): Don't override
coding-system-for-read/write if they are already bound.
Suggested by joaotavora@gmail.com (João Távora).  (Bug#20892)
(vc-git-print-log): Don't override coding-system-for-read if it's
already bound.

8 years ago(js--continued-expression-p): Special-case unary plus and minus
Dmitry Gutov [Sat, 2 Apr 2016 00:02:03 +0000 (03:02 +0300)]
(js--continued-expression-p): Special-case unary plus and minus

* lisp/progmodes/js.el (js--continued-expression-p): Make an
effort to recognize unary plus and minus, in the contexts where
they make sense (https://github.com/mooz/js2-mode/issues/322).

8 years agoFix resize incompatibility with GTK+ master
Paul Eggert [Fri, 1 Apr 2016 23:55:21 +0000 (16:55 -0700)]
Fix resize incompatibility with GTK+ master

Problem reported by Matthias Clasen (Bug#23144).
* src/xterm.c (handle_one_xevent) [USE_GTK]:
Do not call xg_frame_resized.

8 years ago; * lisp/vc/vc-annotate.el (vc-annotate): Clarify commentary.
Eli Zaretskii [Fri, 1 Apr 2016 20:22:52 +0000 (23:22 +0300)]
; * lisp/vc/vc-annotate.el (vc-annotate): Clarify commentary.

8 years agoPrevent C++ Mode wrongly fontifying some identifiers near templates as types
Alan Mackenzie [Fri, 1 Apr 2016 12:50:14 +0000 (12:50 +0000)]
Prevent C++ Mode wrongly fontifying some identifiers near templates as types

This fixes debbugs #7917.

* lisp/progmodes/cc-engine.el (c-forward-keyword-prefixed-id): Accept 'maybe
(from c-forward-type) as sufficient to record an id.  Record type id as well
as ref ids.
(c-forward-name): Bind c-last-identifier-range around the call to
c-forward-<>-arglist to prevent it getting corrupted.  Don't automatically
assume an identifier is a type when a template ">" is followed by a "(".
(c-forward-type): Don't automatically assume an identifier is a type when a
template ">" is followed by a "(".

* lisp/progmodes/cc-fonts.el (c-font-lock-<>-arglists): Don't fontify an
identifier as a type when its associated ">" is followed by a "(".

8 years ago; Auto-commit of loaddefs files.
Glenn Morris [Fri, 1 Apr 2016 10:18:11 +0000 (06:18 -0400)]
; Auto-commit of loaddefs files.

8 years agoAvoid crashes due to insanely large columns in tabulated-list-format
Eli Zaretskii [Fri, 1 Apr 2016 09:47:29 +0000 (12:47 +0300)]
Avoid crashes due to insanely large columns in tabulated-list-format

* src/xdisp.c (append_stretch_glyph, produce_xwidget_glyph)
(produce_image_glyph): Limit the pixel width of the produced glyph
to SHRT_MAX.  (Bug#23178)
(append_composite_glyph, append_glyph, append_glyphless_glyph):
Add assertions to verify that the pixel width of the glyph will
never overflow a 'short'.
* src/term.c (append_composite_glyph): Add assertion to verify
that the pixel width of the glyph will never overflow a 'short'.

8 years agoFix check for subscript errors in module calls
Paul Eggert [Fri, 1 Apr 2016 08:24:55 +0000 (01:24 -0700)]
Fix check for subscript errors in module calls

* src/emacs-module.c (check_vec_index): New function.
(module_vec_set, module_vec_get): Use it instead of a
not-strict-enough check.

8 years agoTeach M-x disassemble a default argument.
Mark Oteiza [Thu, 31 Mar 2016 23:34:05 +0000 (19:34 -0400)]
Teach M-x disassemble a default argument.

Adopts default argument in the same way as `describe-function'.
* lisp/emacs-lisp/disass.el (disassemble): Default to function at point,
if any.

8 years agoFix EOL decoding in vc-annotate with SVN back-end on MS-Windows
Eli Zaretskii [Thu, 31 Mar 2016 20:01:13 +0000 (23:01 +0300)]
Fix EOL decoding in vc-annotate with SVN back-end on MS-Windows

* lisp/vc/vc-annotate.el (vc-annotate): Force DOS EOL decoding on
MS-Windows and MS-DOS, when processing the output of "svn annotate".

8 years agoSupport completion of bang-rules in CSS mode
Simen Heggestøyl [Thu, 31 Mar 2016 19:18:00 +0000 (21:18 +0200)]
Support completion of bang-rules in CSS mode

lisp/textmodes/css-mode.el (css--bang-ids): New buffer-local variable
holding the list of bang-rules for the current mode.
(css--font-lock-keywords): Retrieve bang-rules from `css--bang-ids'
instead of computing them.
(css--complete-bang-rule): New function for completing a bang-rule.
(css-completion-at-point): Add support for completing bang-rules.
(scss-font-lock-keywords): Change from a variable to a function in
order to recompute `css--font-lock-keywords' when `css--bang-ids' has
changed.
(scss-mode): Set `css--bang-ids' and recompute font-lock keywords.

8 years agoFix OS X specific settings in tramp-tests
Michael Albinus [Thu, 31 Mar 2016 09:45:45 +0000 (11:45 +0200)]
Fix OS X specific settings in tramp-tests

* lisp/net/tramp-sh.el (tramp-maybe-open-connection): Use it.

* lisp/net/tramp.el (tramp-get-local-locale): New defun.

* test/automated/tramp-tests.el (tramp--test-darwin-p): Remove.
(tramp--test-utf8): Improve settings of coding systems.
Do not use `tramp--test-darwin-p' anymore.  (Bug#22145)

8 years agoFinish fixing a cacheing bug in CC Mode (see 2016-03-09)
Alan Mackenzie [Wed, 30 Mar 2016 17:14:03 +0000 (17:14 +0000)]
Finish fixing a cacheing bug in CC Mode (see 2016-03-09)

* lisp/progmodes/cc-cmds.el: (c-beginning-of-defun, c-end-of-defun): Remove
superfluous invocations of c-self-bind-state-cache.

* lisp/progmodes/cc-defs.el: (c-self-bind-state-cache): Copy and terminate
markers correctly.

* lisp/progmodes/cc-engine.el (c-record-parse-state-state): Terminate stale
markers.

8 years agoMerge branch 'emacs-25' of /home/acm/emacs/emacs.git/emacs-25 into emacs-25
Alan Mackenzie [Wed, 30 Mar 2016 16:53:36 +0000 (16:53 +0000)]
Merge branch 'emacs-25' of /home/acm/emacs/emacs.git/emacs-25 into emacs-25

8 years agoAdd HTML4 tags to HTML mode
Simen Heggestøyl [Wed, 30 Mar 2016 16:40:37 +0000 (18:40 +0200)]
Add HTML4 tags to HTML mode

* lisp/textmodes/sgml-mode.el (html-tag-alist): Add HTML4 tags.
(html-tag-help): Add short descriptions of those tags.

8 years ago* doc/lispref/text.texi (Columns): Remove a nonexistent reference.
Xue Fuqiao [Wed, 30 Mar 2016 00:01:16 +0000 (08:01 +0800)]
* doc/lispref/text.texi (Columns): Remove a nonexistent reference.

The example was removed by Chong Yidong on Mar 5, 2012.

8 years ago* doc/man/emacsclient.1: Document +line:column option.
Paul Eggert [Tue, 29 Mar 2016 21:19:46 +0000 (14:19 -0700)]
* doc/man/emacsclient.1: Document +line:column option.

8 years agoFix rare problems with echo-area display and multiple frames
Eli Zaretskii [Tue, 29 Mar 2016 17:38:54 +0000 (20:38 +0300)]
Fix rare problems with echo-area display and multiple frames

* src/xdisp.c (redisplay_window): Bind inhibit-redisplay non-nil
around the call to x_consider_frame_title, to prevent
resize_mini_window from undoing echo-area display.  (Bug#23124)

8 years agoPacify --enable-gcc-warnings for buffer-hash etc.
Paul Eggert [Tue, 29 Mar 2016 15:24:39 +0000 (08:24 -0700)]
Pacify --enable-gcc-warnings for buffer-hash etc.

* src/fns.c (make_digest_string): Now static.
(secure_hash): Omit unused local.

8 years agoAdd support for 7z archives
Oleh Krehel [Tue, 29 Mar 2016 13:59:35 +0000 (15:59 +0200)]
Add support for 7z archives

* lisp/dired-aux.el (dired-compress-file-suffixes): "Z" should now
  also work with 7z archives.

The shell command should produce a single extracted directory named
after the archive's name.

In case the extracted directory exists, all files will be overwritten
without a prompt. This matches the expected behavior with the "tar.gz"
archives.

8 years ago* lisp/emacs-lisp/seq.el: Require cl-lib instead of cl-extra
Nicolas Petton [Tue, 29 Mar 2016 10:42:42 +0000 (12:42 +0200)]
* lisp/emacs-lisp/seq.el: Require cl-lib instead of cl-extra

8 years agoIn M-%, avoid making buffer-local binding of text-property-default-nonsticky
Alan Mackenzie [Tue, 29 Mar 2016 09:53:12 +0000 (09:53 +0000)]
In M-%, avoid making buffer-local binding of text-property-default-nonsticky

This would happen when that variable already has a buffer local binding.  Such
a binding would not be seen by read-from-minibuffer.  This fixes bug #23127.

* lisp/replace.el (query-replace-read-from): Move the binding of
text-property-default-nonsticky to inside of a new with-current-buffer buffer
form with the minibuffer as argument.

8 years agoFix typo in network-stream-tests.el
Michael Albinus [Tue, 29 Mar 2016 07:26:05 +0000 (09:26 +0200)]
Fix typo in network-stream-tests.el

* test/lisp/net/network-stream-tests.el
(connect-to-tls-ipv6-nowait): Fix typo.

8 years agoNew function seq-sort-by in seq.el
Nicolas Petton [Tue, 29 Mar 2016 07:19:32 +0000 (09:19 +0200)]
New function seq-sort-by in seq.el

* lisp/emacs-lisp/seq.el (seq-sort-by): New function.
* test/lisp/emacs-lisp/seq-tests.el: New test for seq-sort-by.
* doc/lispref/sequences.texi: Add documentation for seq-sort-by.

8 years agoMention the `M-q' changes
Lars Magne Ingebrigtsen [Mon, 28 Mar 2016 17:11:22 +0000 (19:11 +0200)]
Mention the `M-q' changes

8 years agoHave `M-q' not mark buffers are changed when they haven't
Lars Magne Ingebrigtsen [Mon, 28 Mar 2016 17:08:33 +0000 (19:08 +0200)]
Have `M-q' not mark buffers are changed when they haven't

* lisp/textmodes/fill.el (fill-paragraph): Use `buffer-hash'
to avoid marking buffers as changed when they haven't.

8 years agoAdd a new function `buffer-hash'
Lars Magne Ingebrigtsen [Mon, 28 Mar 2016 17:07:39 +0000 (19:07 +0200)]
Add a new function `buffer-hash'

* doc/lispref/text.texi (Checksum/Hash): Document `buffer-hash'.

* src/fns.c (Fbuffer_hash): New function.
(make_digest_string): Refactored out into its own function.
(secure_hash): Use it.

* test/src/fns-tests.el (fns-tests-hash-buffer): New tests.

8 years agoRemove prog-indentation-context
Dmitry Gutov [Mon, 28 Mar 2016 00:51:21 +0000 (03:51 +0300)]
Remove prog-indentation-context

* lisp/progmodes/prog-mode.el: (prog-indentation-context)
(prog-first-column, prog-widen): Remove, as discussed in
http://lists.gnu.org/archive/html/emacs-devel/2016-03/msg01425.html.

* doc/lispref/text.texi (Mode-Specific Indent): Remove references
to them.

* etc/NEWS: Ditto.

* lisp/progmodes/python.el: (prog-widen, prog-first-column):
Remove the compatibility aliases and all uses.

Do not merge to master.

8 years agoRename C names to match Lisp symbols better
Paul Eggert [Sun, 27 Mar 2016 22:52:03 +0000 (15:52 -0700)]
Rename C names to match Lisp symbols better

This was inspired by commit e65c3079c65595d95749348366af9811fafff062,
which fixed a bug where the C name for a symbol disagreed with the
symbol name itself.  Fix other instances of disagreements that I found.
Although this doesn’t fix a bug, it should make code easier to follow.
The remaining disagreements are idiosyncratic: Qminus, Qplus,
Qsans__serif, Qbackquote, Qcomma, Qcomma_at, Qcomma_dot.
All uses changed.
* src/alloc.c (QAutomatic_GC): Rename from Qautomatic_gc.
* src/dbusbind.c (QCsystem): Rename from QCdbus_system_bus.
(QCsession): Rename from QCdbus_session_bus.
(QCtimeout): Rename from QCdbus_timeout.
(QCbyte): Rename from QCdbus_type_byte.
(QCboolean): Rename from QCdbus_type_boolean.
(QCint16): Rename from QCdbus_type_int16.
(QCuint16): Rename from QCdbus_type_uint16.
(QCint32): Rename from QCdbus_type_int32.
(QCuint32): Rename from QCdbus_type_uint32.
(QCint64): Rename from QCdbus_type_int64.
(QCuint64): Rename from QCdbus_type_uint64.
(QCdouble): Rename from QCdbus_type_double.
(QCstring): Rename from QCdbus_type_string.
(QCobject_path): Rename from QCdbus_type_object_path.
(QCsignature): Rename from QCdbus_type_signature.
(QCunix_fd): Rename from QCdbus_type_unix_fd.
(QCarray): Rename from QCdbus_type_array.
(QCvariant): Rename from QCdbus_type_variant.
(QCstruct): Rename from QCdbus_type_struct.
(QCdict_entry): Rename from QCdbus_type_dict_entry.
(QCserial): Rename from QCdbus_registered_serial.
(QCmethod): Rename from QCdbus_registered_method.
(QCsignal): Rename from QCdbus_registered_signal.
* src/emacs-module.c (Qinternal__module_call):
Rename from Qinternal_module_call.
* src/frame.c (Qwindow__pixel_to_total):
Rename from Qwindow_pixel_to_total.
* src/gnutls.c (QChostname): Rename from QCgnutls_bootprop_hostname.
(QCpriority): Rename from QCgnutls_bootprop_priority.
(QCtrustfiles): Rename from QCgnutls_bootprop_trustfiles.
(QCkeylist): Rename from QCgnutls_bootprop_keylist.
(QCcrlfiles): Rename from QCgnutls_bootprop_crlfiles.
(QCmin_prime_bits): Rename from QCgnutls_bootprop_min_prime_bits.
(QCloglevel): Rename from QCgnutls_bootprop_loglevel.
(QCcomplete_negotiation): Rename from QCgnutls_complete_negotiation.
(QCverify_flags): Rename from QCgnutls_bootprop_verify_flags.
(QCverify_error): Rename from QCgnutls_bootprop_verify_error.
* src/w32fns.c (Qfont_parameter): Rename from Qfont_param.
(Qgnutls): Rename from Qgnutls_dll.
(Qlibxml2): Rename from Qlibxml2_dll.
(Qzlib): Rename from Qzlib_dll.
* src/w32select.c (Qutf_16le_dos): Rename from QUNICODE.
* src/window.c (Qwindow__resize_root_window):
Rename from Qwindow_resize_root_window.
(Qwindow__resize_root_window_vertically):
Rename from Qwindow_resize_root_window_vertically.
(Qwindow__sanitize_window_sizes):
Rename from Qwindow_sanitize_window_sizes.
(Qwindow__pixel_to_total): Rename from Qwindow_pixel_to_total.
* src/xdisp.c (Qredisplay_internal_xC_functionx):
Rename from Qredisplay_internal.
* src/xfns.c (Qfont_parameter): Rename from Qfont_param.
* src/xselect.c (Q_EMACS_TMP_): Rename from QEMACS_TMP.

8 years ago* src/font.c (QCuser_spec): Add missing colon to :user-spec.
Paul Eggert [Sun, 27 Mar 2016 22:02:37 +0000 (15:02 -0700)]
* src/font.c (QCuser_spec): Add missing colon to :user-spec.

8 years agoDon't start the 'midnight' timer twice
Eli Zaretskii [Sun, 27 Mar 2016 15:15:06 +0000 (18:15 +0300)]
Don't start the 'midnight' timer twice

* lisp/midnight.el (midnight-mode): Avoid starting the midnight
timer twice when activating the mode the first time.  (Bug#23123)

8 years ago* src/xwidget.c (Fxwidget_resize): Fix inappropriate use of XFASTINT.
YAMAMOTO Mitsuharu [Sun, 27 Mar 2016 09:00:08 +0000 (18:00 +0900)]
* src/xwidget.c (Fxwidget_resize): Fix inappropriate use of XFASTINT.

8 years agofunc-arity minor improvements
Paul Eggert [Sun, 27 Mar 2016 02:24:25 +0000 (19:24 -0700)]
func-arity minor improvements

* src/bytecode.c (get_byte_code_arity): Omit unnecessary
runtime test for integer argument, unless debugging.
Use EMACS_INT for Emacs integers.
* src/eval.c (Ffunc_arity): Omit unused locals.
Avoid side effects in ‘if’ expr.
(lambda_arity): Use bool for boolean, and EMACS_INT for Emacs ints.

8 years agoRestore the fix to bug#18527 from commit d6868025
John Wiegley [Sun, 27 Mar 2016 00:22:03 +0000 (17:22 -0700)]
Restore the fix to bug#18527 from commit d6868025

8 years agoFix todo-mode category movement
Stephen Berman [Sat, 26 Mar 2016 22:14:50 +0000 (23:14 +0100)]
Fix todo-mode category movement

* lisp/calendar/todo-mode.el (todo-move-category): Use moved
category's existing categories sexp instead of invoking
todo-update-categories-sexp in file moved to, in order to take
archived items into account.  If the moved category has archived
items, handle the source archive buffer properly.  Remove
superfluous code.

8 years ago* lisp/xt-mouse.el (xterm-mouse-utf-8): Add :version.
Glenn Morris [Sat, 26 Mar 2016 20:45:51 +0000 (16:45 -0400)]
* lisp/xt-mouse.el (xterm-mouse-utf-8): Add :version.

8 years agoSafely run window size change functions
Martin Rudalics [Sat, 26 Mar 2016 13:43:25 +0000 (14:43 +0100)]
Safely run window size change functions

* src/window.c (run_window_size_change_functions): Use
safe_call1 when running a size change function.
(grow_mini_window, shrink_mini_window): Report error when
minibuffer window cannot be resized.

8 years agoIgnore non-nil. non-cons values of unread-command-events
Eli Zaretskii [Sat, 26 Mar 2016 08:52:12 +0000 (11:52 +0300)]
Ignore non-nil. non-cons values of unread-command-events

* src/keyboard.c (requeued_events_pending_p, read_char)
(Finput_pending_p): Use CONSP instead of !NILP to see if there are
unread command events to be processed.  (Bug#22976)

8 years agoImplement 'func-arity'
Paul Pogonyshev [Sat, 26 Mar 2016 08:19:43 +0000 (11:19 +0300)]
Implement 'func-arity'

* src/eval.c (Ffunc_arity, lambda_arity): New functions.
* src/bytecode.c (get_byte_code_arity): New function.
* src/lisp.h (get_byte_code_arity): Add prototype.

* doc/lispref/functions.texi (What Is a Function): Document
'func-arity'.

* etc/NEWS: Mention 'func-arity'.

* test/src/fns-tests.el (fns-tests-func-arity): New test set.

8 years agoImprove documentatuon of 'truncate-partial-width-windows'
Eli Zaretskii [Sat, 26 Mar 2016 07:17:12 +0000 (10:17 +0300)]
Improve documentatuon of 'truncate-partial-width-windows'

* src/xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>:
Clarify in the doc string how the width of partial-width windows
is computed for the purposes of truncation decision.  (Bug#4338)

* doc/emacs/windows.texi (Split Window): Clarify how the width of
windows is calculated for the purposes of truncation decision.
* doc/emacs/display.texi (Line Truncation): Remove a redundant
index entry.

8 years agoFix absence of c-noise-macro-name-re, etc., in languages which don't use it
Alan Mackenzie [Fri, 25 Mar 2016 18:25:08 +0000 (18:25 +0000)]
Fix absence of c-noise-macro-name-re, etc., in languages which don't use it

* lisp/progmodes/cc-engine.el (c-forward-keyword-prefixed-id, c-forward-type)
(c-forward-declarator, c-forward-decl-or-cast-1, c-backward-over-enum-header)
(c-guess-basic-syntax): Check c-opt-cpp-prefix before `looking-at'
c-noise-macro-with-parens-name-re.

* lisp/progmodes/cc-fonts.el (c-complex-decl-matchers): The same as for
cc-engine.el.

* lisp/progmodes/cc-mode.el (c-basic-common-init): Add call to
`c-make-noise-macro-regexps'.
(c-mode, c++-mode, objc-mode): Remove calls to `c-make-noise-macro-regexps'.

* lisp/progmodes/cc-vars.el (c-noise-macro-with-parens-name-re)
(c-noise-macro-with-re): Initialize to "\\<\\>" rather than nil.

8 years ago* src/ftfont.c (ftfont_shape_by_flt): Parenthesize as per GNU style.
Paul Eggert [Fri, 25 Mar 2016 17:58:52 +0000 (10:58 -0700)]
* src/ftfont.c (ftfont_shape_by_flt): Parenthesize as per GNU style.

8 years ago(shr-insert): Respect non-breaking space in non-<pre> text
Lars Magne Ingebrigtsen [Fri, 25 Mar 2016 15:57:35 +0000 (16:57 +0100)]
(shr-insert): Respect non-breaking space in non-<pre> text

* lisp/net/shr.el (shr-insert): Respect non-breaking space in
non-<pre> text.

8 years agoparse-times-string doc string clarification
Lars Magne Ingebrigtsen [Fri, 25 Mar 2016 15:32:39 +0000 (16:32 +0100)]
parse-times-string doc string clarification

* lisp/calendar/parse-time.el (parse-time-string): Note that
we accept RFC2822 strings.

8 years agoDoc string fix
Marcin Borkowski [Fri, 25 Mar 2016 15:26:08 +0000 (16:26 +0100)]
Doc string fix

* lisp/calendar/parse-time.el (parse-time-tokenize): Clarify
doc string and clean up code.

8 years agoFix 'dired-goto-file' in Dired buffers produced by find-dired
Eli Zaretskii [Fri, 25 Mar 2016 14:18:21 +0000 (17:18 +0300)]
Fix 'dired-goto-file' in Dired buffers produced by find-dired

* lisp/dired.el (dired-goto-file): Try looking for the file as a
relative name with leading sub-directories, before looking for the
basename alone.  (Bug#23089)

8 years agoFix map-put and map-delete for alists (Bug#23105)
Nicolas Petton [Fri, 25 Mar 2016 14:09:04 +0000 (15:09 +0100)]
Fix map-put and map-delete for alists (Bug#23105)

* lisp/emacs-lisp/map.el (map-put): Do not bind the evaluated place
expression to a new symbol.
* test/lisp/emacs-lisp/map-tests.el: Add a regression test.

8 years agoCleanup file notification code in Tramp
Michael Albinus [Fri, 25 Mar 2016 13:36:14 +0000 (14:36 +0100)]
Cleanup file notification code in Tramp

* lisp/net/tramp-sh.el (tramp-sh-handle-file-notify-add-watch):
Make `events' a list of symbols for "inotifywait".
(tramp-sh-gvfs-monitor-dir-process-filter): Make event a list.
Call `file-notify-handle-event' for better traces.
(tramp-sh-inotifywait-process-filter): Check for expected events.
Call `file-notify-handle-event' for better traces.

8 years agoMinor copyedits of documentation for temporary displays
Eli Zaretskii [Fri, 25 Mar 2016 10:37:58 +0000 (13:37 +0300)]
Minor copyedits of documentation for temporary displays

* doc/emacs/windows.texi (Temporary Displays): Improve indexing.
Minor changes in wording.
(Window Choice, Displaying Buffers, Pop Up Window): Disambiguate
index entries for 'display-buffer'.

* etc/NEWS: Minor rewording of the entry about temporary displays.

8 years agoAdd customization option for using UTF-8 coordinates in xt-mouse
Philipp Stephani [Fri, 25 Mar 2016 10:17:38 +0000 (13:17 +0300)]
Add customization option for using UTF-8 coordinates in xt-mouse

* lisp/xt-mouse.el (xterm-mouse-utf-8): New customization option.
(xterm-mouse--read-coordinate): New function to replace
`xterm-mouse--read-utf8-char'; uses UTF-8 only if enabled.
(xterm-mouse--read-number-from-terminal): Adapt to new name.
(xterm-mouse-tracking-enable-sequence)
(xterm-mouse-tracking-disable-sequence): Replace constants with
functions, mark constants as obsolete.
(xterm-mouse--tracking-sequence): New helper function.
(turn-on-xterm-mouse-tracking-on-terminal): Use new functions;
enable UTF-8 only if customization option says so; store UTF-8
flag in terminal parameter.  (Bug#23009)

* test/automated/xt-mouse-tests.el: Add tests for xt-mouse.el.

8 years agoMinor doc string fixes in replace.el
Eli Zaretskii [Fri, 25 Mar 2016 10:02:20 +0000 (13:02 +0300)]
Minor doc string fixes in replace.el

* lisp/replace.el (query-replace, query-replace-regexp)
(query-replace-regexp-eval, map-query-replace-regexp)
(replace-string, replace-regexp): Clarify in doc strings that
these commands operate from point to the end of the buffer's
accessible portion.  (Bug#23067)

8 years agoFix scrolling upwards with 'xwidget-webkit-browse-url'
Eli Zaretskii [Fri, 25 Mar 2016 09:51:57 +0000 (12:51 +0300)]
Fix scrolling upwards with 'xwidget-webkit-browse-url'

* src/xwidget.c (Fxwidget_set_adjustment): Use CHECK_NUMBER instead
of CHECK_NATNUM.  Suggested by Shayan Pirani <shayanpirani@gmail.com>.
(Bug#22918)

8 years agoFix display of Indic scripts
K. Handa [Fri, 25 Mar 2016 09:40:25 +0000 (12:40 +0300)]
Fix display of Indic scripts

* ftfont.c (ftfont_shape_by_flt): For combining characters out
of the range U+300...U+36F, use the "combining" FLT only with
non-OTF fonts.

8 years agoFix splash screen display at startup
Eli Zaretskii [Fri, 25 Mar 2016 07:45:39 +0000 (10:45 +0300)]
Fix splash screen display at startup

* src/frame.c (DEFAULT_ROWS): Enlarge to 36, so that the initial
window displayed by "emacs -q" has enough space to show the whole
text even if it includes 2 lines talking about recovering crashes
sessions.  (Bug#23074)

* lisp/startup.el (use-fancy-splash-screens-p): Fix off-by-one
error when computing the window-height from frame-height.

* etc/NEWS: Mention the change.

8 years ago; In NEWS mention new display of minibuffer completions window
Martin Rudalics [Fri, 25 Mar 2016 07:38:34 +0000 (08:38 +0100)]
; In NEWS mention new display of minibuffer completions window

8 years agoDescribe temporary displays in Emacs manual
Martin Rudalics [Fri, 25 Mar 2016 07:30:23 +0000 (08:30 +0100)]
Describe temporary displays in Emacs manual

* doc/emacs/emacs.texi (Temporary Displays): New subsubsection.
* doc/emacs/windows.texi (Window Choice): Minor fixes.
(Temporary Displays): New subsubsection describing display of
temporary buffers and `temp-buffer-resize-mode'.

8 years agoAvoid stray As next to IDLW icons
Paul Eggert [Thu, 24 Mar 2016 23:48:46 +0000 (16:48 -0700)]
Avoid stray As next to IDLW icons

* lisp/progmodes/idlw-toolbar.el (idlwave-toolbar-add-everywhere):
Use "" for empty labels, not "a", as the latter now displays stray
"A"s (Bug#18997).

8 years agoAvoid GTK 3 crash with icons and masks
Paul Eggert [Thu, 24 Mar 2016 23:46:28 +0000 (16:46 -0700)]
Avoid GTK 3 crash with icons and masks

Problem reported by Mosè Giordano (Bug#18997).
* src/gtkutil.c (xg_get_pixbuf_from_pixmap): Remove.
(xg_get_pixbuf_from_pix_and_mask): Do not use
xg_get_pixbuf_from_pixmap, as it is poorly documented.  Instead,
invoke XGetPixel directly.  This is slow but speed is not
important here.  Also, fail for unusual situations (not TrueColor,
or images that are not 8 bits per sample) instead of displaying
junk or crashing.

8 years ago* lisp/minibuffer.el (minibuffer-completion-help): Use fit-window-to-buffer
Juri Linkov [Thu, 24 Mar 2016 22:14:24 +0000 (00:14 +0200)]
* lisp/minibuffer.el (minibuffer-completion-help): Use fit-window-to-buffer

instead of shrink-window-if-larger-than-buffer.  (Bug#23092)

8 years agoDefine make_save_ptr_ptr unconditionally
Eli Zaretskii [Thu, 24 Mar 2016 18:52:45 +0000 (20:52 +0200)]
Define make_save_ptr_ptr unconditionally

* src/alloc.c (make_save_ptr_ptr): Remove the !(defined
USE_X_TOOLKIT || defined USE_GTK) conditional.  Reported by
Philipp Stephani <phst@google.com>.  (Bug#23101)