]> git.eshelyaron.com Git - emacs.git/log
emacs.git
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 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 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 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 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 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 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 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 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 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)

8 years agoPreserve current buffer when popping up TTY menus
Eli Zaretskii [Thu, 24 Mar 2016 18:05:49 +0000 (20:05 +0200)]
Preserve current buffer when popping up TTY menus

* src/term.c (tty_menu_show): Be sure to save and restore the
current buffer around TTY menu pop-ups.  (Bug#23101)

8 years agoImprove font selection by family on MS-Windows
Eli Zaretskii [Thu, 24 Mar 2016 16:30:41 +0000 (18:30 +0200)]
Improve font selection by family on MS-Windows

* src/w32font.c (w32font_list_internal): Allow 'ascii-0' charset,
in addition to 'iso10646-1', 'unicode-bmp', and 'unicode-sip'.
This avoids rejecting many font families whose members are shown
by 'font-family-list', in particular 'courier' requested by
info.el.  Without this change, many values of ':family' attribute
of a face have no effect on MS-Windows, because they are rejected
due to bogus mismatch of the charset.

8 years agoComint, term, and compile now set EMACS
Paul Eggert [Wed, 23 Mar 2016 22:07:56 +0000 (15:07 -0700)]
Comint, term, and compile now set EMACS

This fixes directory tracking in ansi-term, at the expense of
breaking some usages of 'configure'.  Setting EMACS is meant to be
a somewhat temporary measure, until Bash 4.4 comes out and is
common.  (Bug#20484).
* etc/NEWS: Document this.
* lisp/comint.el (comint-exec-1):
* lisp/net/tramp-sh.el (tramp-remote-process-environment):
* lisp/progmodes/compile.el (compilation-start):
* lisp/term.el (term-exec-1):
Go back to setting the EMACS environment variable, for backward
compatibility to Bash 4.3 and earlier.

8 years agoIgnore more merges when generating ChangeLog
Paul Eggert [Wed, 23 Mar 2016 21:49:26 +0000 (14:49 -0700)]
Ignore more merges when generating ChangeLog

* build-aux/gitlog-to-emacslog: Ignore all merges from gnu.org,
not merely those from master and emacs-NN.  The ChangeLog entries
they generate are not that useful.

8 years agoSync with gnulib
Paul Eggert [Wed, 23 Mar 2016 18:17:37 +0000 (11:17 -0700)]
Sync with gnulib

This incorporates:
2016-03-22 gitlog-to-changelog: suppress ignored chatter
2016-03-21 sys_select: port to new Cygwin
* build-aux/gitlog-to-changelog, doc/misc/texinfo.tex:
* lib/sys_select.in.h: Copy from gnulib.

8 years agoResurrect GNUS-NEWS autogeneration
Paul Eggert [Wed, 23 Mar 2016 07:07:14 +0000 (00:07 -0700)]
Resurrect GNUS-NEWS autogeneration

* doc/misc/gnus-coding.texi (Gnus Maintenance Guide): Update
GNUS-NEWS section to match current file locations and procedure.
* etc/GNUS-NEWS: Regenerate by using new procedure.
* lisp/Makefile.in (update-gnus-news): New rule, containing a
procedure for building GNUS-NEWS.  The old procedure got lost
somehow when Gnus was merged into Emacs.

8 years ago; Backport ChangeLog.2 fixes from master
Paul Eggert [Tue, 22 Mar 2016 20:22:29 +0000 (13:22 -0700)]
; Backport ChangeLog.2 fixes from master

8 years agoMake `toggle-frame-maximized' respect the dock on OS X (bug#22988).
Anders Lindgren [Tue, 22 Mar 2016 19:18:33 +0000 (20:18 +0100)]
Make `toggle-frame-maximized' respect the dock on OS X (bug#22988).

* src/nsterm.m (ns_screen_margins): New function.
(ns_screen_margins_ignoring_hidden_dock): New function.
(ns_menu_bar_height): Reimplement in terms of `ns_screen_margins'.
([EmacsWindow zoom:]): Take all screen margins (except those
originating from a hidden dock) into account.

8 years agoFix bug in displaying header line with a box face
Eli Zaretskii [Tue, 22 Mar 2016 18:16:42 +0000 (20:16 +0200)]
Fix bug in displaying header line with a box face

* src/xdisp.c (get_next_display_element): Handle the case when a
display string acquires the box face from an underlying string,
not from the buffer.  (Bug#23091)

8 years agoFix an Isearch var to be a string (Bug#23038)
Kaushal Modi [Mon, 21 Mar 2016 23:28:27 +0000 (00:28 +0100)]
Fix an Isearch var to be a string (Bug#23038)

* isearch.el (isearch--describe-regexp-mode): The `description' var
  needs to always be a string.  Add the missing default case for the
  cond form that ensures that.

Before this bug fix, for the events when `regexp-function' and
`search-default-mode' both were nil, `description' also stayed nil.  So
when `space-before' was non-nil, the "non-string" `description'
(with a value of nil) got passed as an argument to
`replace-regexp-in-string' (where a string was expected).  That caused
the error described in Bug#23038.

8 years agoFix (args-out-of-range 1) error in cursor-sensor--detect
Leo Liu [Mon, 21 Mar 2016 10:26:10 +0000 (18:26 +0800)]
Fix (args-out-of-range 1) error in cursor-sensor--detect

* lisp/emacs-lisp/cursor-sensor.el (cursor-sensor--detect): Don't
  hard-code (point-min) as 1 which fails in narrowed buffers.

8 years agoRender empty <ul><li><ul> correctly
Lars Magne Ingebrigtsen [Sun, 20 Mar 2016 12:52:36 +0000 (13:52 +0100)]
Render empty <ul><li><ul> correctly

* lisp/net/shr.el (shr-tag-ul): Render empty <ul><li><ul>
correctly (bug#22964).
(cherry picked from commit 4f6ea3988b66cf132c67fd0cc26d12eb9a300ba1)

Backport:

8 years agoIgnore invalid base64 encoded embedded images
Lars Magne Ingebrigtsen [Sun, 20 Mar 2016 12:57:11 +0000 (13:57 +0100)]
Ignore invalid base64 encoded embedded images

* lisp/net/shr.el (shr-image-from-data): Ignore invalid base64
encoded embedded images (bug#22928).
(cherry picked from commit f2da80d0e1ccd121c4891e869a45aeb9c6b1795d)

Backport:

8 years agoFix <p> and <div> newlines with or without <li> in shr
Lars Magne Ingebrigtsen [Sun, 20 Mar 2016 12:43:42 +0000 (13:43 +0100)]
Fix <p> and <div> newlines with or without <li> in shr

* lisp/net/shr.el (shr-ensure-newline): Respect that we're in
a <li>, if we are, and don't insert newlines there.
(shr-ensure-paragraph): When mixing newlines and paragraph
ensurements, don't insert too many blank lines.
(shr-tag-div): A <div> shouldn't introduce a paragraph, but a
new line.
(cherry picked from commit 292921facaff2f02ac4e8602c1f7ecbdcfe7ef45)

Backport:

8 years agoAvoid errors in 'newline'
Eli Zaretskii [Sat, 19 Mar 2016 19:32:27 +0000 (21:32 +0200)]
Avoid errors in 'newline'

* lisp/simple.el (newline): Don't barf if invoked with
non-positive argument in the middle of a line.  (Bug#22490)

8 years agoFix Bug#23032
Michael Albinus [Sat, 19 Mar 2016 15:51:46 +0000 (16:51 +0100)]
Fix Bug#23032

* doc/misc/eshell.texi (Arguments): Mention the pipe symbol in
remote file names.  (Bug#23032)

8 years agoAdjudicate review comments in abbrevs.texi
Eli Zaretskii [Sat, 19 Mar 2016 11:05:55 +0000 (13:05 +0200)]
Adjudicate review comments in abbrevs.texi

* doc/lispref/abbrevs.texi (Abbrev Files, Abbrev Expansion):
* doc/emacs/abbrevs.texi (Dabbrev Customization): State the
default values of variables.  Suggested by Steve Byrne
<sbb@penguinis.org>.  (Bug#23016)

* admin/release-process (Check manuals): Mark files reviewed by
Steve Byrne.

8 years agoFixup the "normal" matcher; highlight global var symbols, too
Dmitry Gutov [Fri, 18 Mar 2016 22:37:09 +0000 (00:37 +0200)]
Fixup the "normal" matcher; highlight global var symbols, too

* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight
operator name symbols with the "normal" matcher (it actually
needed updating).  Highlight global variable symbols, too.

8 years ago; Small theme additions
Tassilo Horn [Fri, 18 Mar 2016 22:29:58 +0000 (23:29 +0100)]
; Small theme additions

8 years agoHonor prefix arg in doc-view-next-line-or-next-page
Marcin Borkowski [Mon, 14 Mar 2016 10:15:10 +0000 (11:15 +0100)]
Honor prefix arg in doc-view-next-line-or-next-page

* lisp/doc-view.el (doc-view-next-line-or-next-page): Take the
prefix argument into consideration when continuous scrolling is
not in effect (i.e., by default) (bug#19559).

8 years ago; Spelling fixes
Paul Eggert [Fri, 18 Mar 2016 15:54:49 +0000 (08:54 -0700)]
; Spelling fixes

8 years agoPort to strict C99 offsetof
Paul Eggert [Fri, 18 Mar 2016 15:42:15 +0000 (08:42 -0700)]
Port to strict C99 offsetof

* src/bidi.c (bidi_copy_it):
* src/lisp.h (CHAR_TABLE_EXTRA_SLOTS):
Use only a single identifier as the second argument of offsetof.
Found by using clang -pedantic.

8 years agoPort to GTK with strict C11 compiler
Paul Eggert [Fri, 18 Mar 2016 15:36:59 +0000 (08:36 -0700)]
Port to GTK with strict C11 compiler

* src/gtkutil.c (xg_create_frame_widgets, xg_toggle_notify_cb):
Cast from function type to void * where the C standard requires this.
This works around a problem in the prototypes for
g_signal_handler_find and g_signal_handlers_block_by_func, which
use gpointer instead of GCallback.  Found by using gcc -pedantic.

8 years agoPort to GTK with strict C99 compiler
Paul Eggert [Fri, 18 Mar 2016 06:45:02 +0000 (23:45 -0700)]
Port to GTK with strict C99 compiler

* src/emacsgtkfixed.c: Use workaround for GNOME bug 683906 only
in glib 2.35.6 and earlier, since the bug is fixed in 2.35.7.
* src/emacsgtkfixed.c (EmacsFixedPrivate):
* src/emacsgtkfixed.h (EmacsFixedClass):
Remove duplicate typedef, which strict C99 does not allow (Bug#23003).

8 years agoAvoid screen artifacts with new OS X visible bell after scrolling
Anders Lindgren [Thu, 17 Mar 2016 20:07:04 +0000 (21:07 +0100)]
Avoid screen artifacts with new OS X visible bell after scrolling

* src/nsterm.m (EmacsBell): Save NSView when displaying the
visible bell and set `needsDisplay' when removed.
(hide_bell): Trace.
(ns_copy_bits): Trace.

8 years agoMerge branch 'emacs-25' of git.sv.gnu.org:/srv/git/emacs into emacs-25
Michael Albinus [Thu, 17 Mar 2016 19:34:49 +0000 (20:34 +0100)]
Merge branch 'emacs-25' of git.sv.gnu.org:/srv/git/emacs into emacs-25

8 years agoSuppress some Tramp tests for OSX, do not merge with master
Michael Albinus [Thu, 17 Mar 2016 19:33:51 +0000 (20:33 +0100)]
Suppress some Tramp tests for OSX, do not merge with master

* test/automated/tramp-tests.el (tramp--test-darwin-p): New defun.
(tramp--test-utf8): Use it.  (Bug#22145)

8 years ago* lisp/progmodes/xref.el (xref-buffer-name, xref--window):
Glenn Morris [Thu, 17 Mar 2016 16:55:09 +0000 (12:55 -0400)]
* lisp/progmodes/xref.el (xref-buffer-name, xref--window):
Move definitions before use.

8 years ago* lisp/gnus/mm-decode.el (gnus-format-message): Autoload it.
Glenn Morris [Thu, 17 Mar 2016 16:52:11 +0000 (12:52 -0400)]
* lisp/gnus/mm-decode.el (gnus-format-message): Autoload it.

; Do not merge to master.

8 years ago* lisp/mail/rmail.el (rmail-mime-entity-truncated): Declare.
Glenn Morris [Thu, 17 Mar 2016 16:04:51 +0000 (09:04 -0700)]
* lisp/mail/rmail.el (rmail-mime-entity-truncated): Declare.

8 years ago; Auto-commit of loaddefs files.
Glenn Morris [Thu, 17 Mar 2016 11:18:52 +0000 (07:18 -0400)]
; Auto-commit of loaddefs files.

8 years agoAddress compilation warnings due to 2016-01-03 mml refactoring.
Glenn Morris [Thu, 17 Mar 2016 06:56:32 +0000 (23:56 -0700)]
Address compilation warnings due to 2016-01-03 mml refactoring.

* lisp/gnus/mml-sec.el (password-cache, mm-encode): Require.
(message-options-get): Autoload.
(message-options-set): Declare.
(mml-secure-cache-passphrase, mml-secure-passphrase-cache-expiry):
Simplify default value.
* lisp/gnus/mml-smime.el (message-options-set): Remove declaration.
* lisp/gnus/mml1991.el, lisp/gnus/mml2015.el:
No longer a need for password-cache.

8 years ago* lisp/emacs-lisp/smie.el (smie-indent-keyword): Don't burp in strings
Stefan Monnier [Thu, 17 Mar 2016 02:55:56 +0000 (22:55 -0400)]
* lisp/emacs-lisp/smie.el (smie-indent-keyword): Don't burp in strings

(bug#22960).

8 years ago* lisp/dired-x.el (dired-omit-here-always): Correct error message
Glenn Morris [Wed, 16 Mar 2016 21:38:27 +0000 (17:38 -0400)]
* lisp/dired-x.el (dired-omit-here-always): Correct error message
for 2016-01-25 change.

8 years ago* lisp/dired-x.el (dired-omit-here-always): Replace undefined function
Glenn Morris [Wed, 16 Mar 2016 21:36:57 +0000 (17:36 -0400)]
* lisp/dired-x.el (dired-omit-here-always): Replace undefined function
removed 2016-01-30.

; Do not merge to master.

8 years ago* lisp/xml.el (xml-parse-tag-1): Replace undefined function.
Glenn Morris [Wed, 16 Mar 2016 21:24:36 +0000 (17:24 -0400)]
* lisp/xml.el (xml-parse-tag-1): Replace undefined function.

; string-empty-p is defined in subr-x, but this file does not load it.

8 years agoAvoid segfaults due to frame image cache being absent
Eli Zaretskii [Wed, 16 Mar 2016 17:04:16 +0000 (19:04 +0200)]
Avoid segfaults due to frame image cache being absent

* src/image.c (cache_image): If the frame doesn't have an image
cache, create it.  (Bug#23028)

8 years agoImprove documentation of glyphless-character display
Eli Zaretskii [Wed, 16 Mar 2016 16:57:46 +0000 (18:57 +0200)]
Improve documentation of glyphless-character display

* doc/emacs/display.texi (Text Display): Document and index the
'glyphless-char' face.

8 years ago; * src/xdisp.c (with_echo_area_buffer): Fix typos in comments.
Eli Zaretskii [Wed, 16 Mar 2016 16:52:36 +0000 (18:52 +0200)]
; * src/xdisp.c (with_echo_area_buffer): Fix typos in comments.

8 years agoSupport safe navigation operator in non-SMIE indentation code
Dmitry Gutov [Wed, 16 Mar 2016 13:58:21 +0000 (15:58 +0200)]
Support safe navigation operator in non-SMIE indentation code

* lisp/progmodes/ruby-mode.el (ruby-calculate-indent):
Support safe navigation operator in non-SMIE indentation code.
Cherry-picked from
https://github.com/ruby/ruby/commit/68e16ddd7961b86e5013e62ae2954e88638de058.

8 years agoMove xsd:base64Binary decoding fix to debbugs.el 0.9.1
Thomas Fitzsimmons [Wed, 16 Mar 2016 13:15:17 +0000 (09:15 -0400)]
Move xsd:base64Binary decoding fix to debbugs.el 0.9.1

* lisp/net/soap-client.el (soap-encode-xs-basic-type): Do not
assume xsd:base64Binary values are UTF-8 strings.
(soap-decode-xs-basic-type): Likewise.
(soap-invoke): Document xsd:base64Binary handling.

8 years agoFix Ruby's operator precedence
Dmitry Gutov [Wed, 16 Mar 2016 02:32:59 +0000 (04:32 +0200)]
Fix Ruby's operator precedence

* lisp/progmodes/ruby-mode.el (ruby-smie-grammar):
Rearrange the smie-precs->prec2 form.

8 years ago(ruby-interpolation-inside-another-interpolation): New failing test
Dmitry Gutov [Tue, 15 Mar 2016 23:48:10 +0000 (01:48 +0200)]
(ruby-interpolation-inside-another-interpolation): New failing test

* test/automated/ruby-mode-tests.el
(ruby-interpolation-inside-another-interpolation):
New failing test.

8 years agoPort to clang 3.7.0 on x86-64
Paul Eggert [Tue, 15 Mar 2016 20:47:47 +0000 (13:47 -0700)]
Port to clang 3.7.0 on x86-64

* configure.ac: Use AS_IF so that gl_WARN_ADD’s prerequisites are
not done conditionally.  This helps clang, which needs
-Wunknown-warning-option later when configured with warnings.
* src/editfns.c (invalid_time): Now _Noreturn, since clang isn’t
smart enough to figure this out on its own if warnings are enabled.
(lisp_time_struct): Redo for clarity, and to pacify clang.
* src/xfns.c (x_real_pos_and_offsets) [USE_XCB]: Don’t use
uninitialized locals.  This avoids undefined behavior and pacifies
clang.

8 years ago* test/automated/package-test.el (package-test-signed): Tweak skip
Glenn Morris [Tue, 15 Mar 2016 20:24:26 +0000 (16:24 -0400)]
* test/automated/package-test.el (package-test-signed): Tweak skip
condition, for hydra.

8 years agoSync with gnulib
Paul Eggert [Tue, 15 Mar 2016 20:20:29 +0000 (13:20 -0700)]
Sync with gnulib

This incorporates:
2016-03-15 time_rz: port to clang -Wunused-const-variable
2016-03-15 select: port more to Intel 2016.1.150 compiler
* lib/sys_select.in.h, lib/time_rz.c: Copy from gnulib.

8 years agoFix startup of "emacs -nw" on systems that CANNOT_DUMP
Eli Zaretskii [Tue, 15 Mar 2016 17:46:26 +0000 (19:46 +0200)]
Fix startup of "emacs -nw" on systems that CANNOT_DUMP

* src/xdisp.c (syms_of_xdisp) <resize-mini-windows>: Initialize to
nil.

* lisp/loadup.el <resize-mini-windows>: Set to 'grow-only' after
loading window.el.  (Bug#22975)

8 years agoDo not tokenize a comment before continuation as ';'
Dmitry Gutov [Tue, 15 Mar 2016 01:15:18 +0000 (03:15 +0200)]
Do not tokenize a comment before continuation as ';'

* lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p):
Account for a comment right after point.

8 years agoDon't misindent arguments of a method call inside continuation
Dmitry Gutov [Tue, 15 Mar 2016 01:12:19 +0000 (03:12 +0200)]
Don't misindent arguments of a method call inside continuation

* lisp/progmodes/ruby-mode.el (ruby-smie-rules):
Use smie-indent-virtual instead of smie-rule-parent (bug#23015).
Simplify the traversal loop.

8 years ago* src/keyboard.c (echo_keystrokes_p): Don't test cursor_in_echo_area
Stefan Monnier [Tue, 15 Mar 2016 00:52:34 +0000 (20:52 -0400)]
* src/keyboard.c (echo_keystrokes_p): Don't test cursor_in_echo_area

(read_key_sequence): Test it here, as before.
(bug#22825).

8 years agoASCII-only etc/NEWS etc.
Paul Eggert [Tue, 15 Mar 2016 00:36:23 +0000 (17:36 -0700)]
ASCII-only etc/NEWS etc.

* etc/NEWS, nextstep/README: Revert the recently-added curved
quotes, and stick to ASCII.  This typically involves replacing
curved with straight quotes.  Since etc/NEWS is viewed so often by
UTF-8-ignorant tools, rewrite its non-ASCII text to spell out
Unicode, e.g., replace ‘‒’ with ‘U+2012 (FIGURE DASH)’.

8 years agoFix a cacheing bug, which led to inordinately slow c-beginning-of-defun.
Alan Mackenzie [Mon, 14 Mar 2016 21:44:11 +0000 (21:44 +0000)]
Fix a cacheing bug, which led to inordinately slow c-beginning-of-defun.

* lisp/progmodes/cc-defs.el (c-self-bind-state-cache): New macro.

* lisp/progmodes/cc-engine.el (c-ssb-lit-begin): Always call c-parse-state
rather than just using the cache variable c-state-cache.
(c-syntactic-skip-backward): Invoke c-self-bind-state-cache to isolate calls
to c-parse-state from other uses of the parse state cache.

* lisp/progmodes/cc-cmds.el (c-beginning-of-defun, c-end-of-defun): Invoke
c-self-bind-state-cache around the processing, replacing flawed bindings of
c-state-cache.

8 years agoFix Isearch prompt when invoked with an argument
Kaushal Modi [Mon, 14 Mar 2016 18:15:17 +0000 (20:15 +0200)]
Fix Isearch prompt when invoked with an argument

* lisp/isearch.el (isearch--describe-regexp-mode): With
`search-default-mode' set to nil, if user does C-u C-s, the minibuffer
now displays "Regexp I-search: " again.  But if the user has set
`search-default-mode' to t, and then does C-s, the minibuffer now
displays "I-search: " because the default search mode is now regexp
mode.  Comments have been added to explain the priority of conditions
in the `cond' form.  (Bug#22991)

8 years agoFix a typo in the Emacs manual
Cesar Quiroz [Mon, 14 Mar 2016 17:45:29 +0000 (19:45 +0200)]
Fix a typo in the Emacs manual

* doc/emacs/maintaining.texi (VC Directory Commands): Fix a typo
in a command name.

Copyright-paperwork-exempt: yes

8 years agoCurved quotes in etc/NEWS etc.
Paul Eggert [Mon, 14 Mar 2016 16:30:01 +0000 (09:30 -0700)]
Curved quotes in etc/NEWS etc.

* etc/NEWS, nextstep/README: Prefer curved quotes in the
recently-changed text documentation.  See:
http://lists.gnu.org/archive/html/emacs-devel/2016-03/msg00860.html

8 years agoFix some single quotes in documentation
Paul Eggert [Mon, 14 Mar 2016 15:40:08 +0000 (08:40 -0700)]
Fix some single quotes in documentation

* doc/emacs/anti.texi (Antinews): Avoid confusion in info and PDF
when documenting quoting styles.
* etc/NEWS, nextstep/README: In these plain text files, quote
'like this' consistently, rather than also (sometimes) ‘like this’
or (more often) `like this'.

8 years agoMake lisp-completion-at-point's argument optional
Dmitry Gutov [Mon, 14 Mar 2016 02:14:05 +0000 (04:14 +0200)]
Make lisp-completion-at-point's argument optional

* lisp/progmodes/elisp-mode.el (lisp-completion-at-point): Make
the argument optional, like it was before the rename.

8 years agoTweak the left precedence of '=>'
Dmitry Gutov [Sun, 13 Mar 2016 22:34:01 +0000 (00:34 +0200)]
Tweak the left precedence of '=>'

* lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Tweak the left
precedence of '=>', to improve indentation and sexp navigation.

8 years agoIndent '.' relative to the first sibling expression
Dmitry Gutov [Sun, 13 Mar 2016 22:15:06 +0000 (00:15 +0200)]
Indent '.' relative to the first sibling expression

* lisp/progmodes/ruby-mode.el (ruby-smie-rules):
Indent '.' relative to the first sibling expression, instead of the
parent token (bug#17213).

8 years agoMake '.' associative, for easier sexp navigation
Dmitry Gutov [Sun, 13 Mar 2016 21:10:38 +0000 (23:10 +0200)]
Make '.' associative, for easier sexp navigation

* lisp/progmodes/ruby-mode.el (ruby-smie-grammar):
Make '.' associative, for easier sexp navigation.

8 years agoRevert "Simplify "Visit New File" to "New File""
Phillip Lord [Sun, 13 Mar 2016 18:33:10 +0000 (18:33 +0000)]
Revert "Simplify "Visit New File" to "New File""

This reverts commit d457fd9dc782465e1547f74021390c9d5951d6af.

8 years agoSimplify "Visit New File" to "New File"
Phillip Lord [Sat, 12 Mar 2016 22:26:20 +0000 (22:26 +0000)]
Simplify "Visit New File" to "New File"

* doc/emacs/files.texi,lisp/menu-bar.el (menu-bar-file-menu),
  lisp/startup.el(normal-mouse-start-screen,
  normal-no-mouse-startup-screen): Change label "Visit New File" to "New
  File".

8 years agoUpdate Unicode notes for importing a new Unicode version
Eli Zaretskii [Sat, 12 Mar 2016 16:07:34 +0000 (18:07 +0200)]
Update Unicode notes for importing a new Unicode version

* admin/notes/unicode: Mention the need to update otf-script-alist
in fontset.el when importing data files from a new Unicode
version.

8 years agoImport new data files from Unicode 9.0.0beta
Eli Zaretskii [Sat, 12 Mar 2016 15:51:45 +0000 (17:51 +0200)]
Import new data files from Unicode 9.0.0beta

* admin/unidata/UnicodeData.txt:
* admin/unidata/Blocks.txt:
* admin/unidata/BidiMirroring.txt:
* admin/unidata/BidiBrackets.txt: Update from Unicode 9.0.0beta.
* admin/unidata/unidata-gen.el (unidata-gen-files): Bind
'coding-system-for-read' to 'utf-8, as various Unicode data files
now actually use non-ASCII characters.
(unidata-setup-list, unidata-get-name): Support the new Tangut
Ideographs block.

* lisp/international/characters.el (standard-case-table): Add new
characters from Unicode 9.0.0.
(standard-category-table): Add Arabic block u+08A0..u+08FF.  Add
Cyrillic Extended-C block.
(char-width-table): Update ranges per Unicode 9.0.0.
* lisp/international/fontset.el (script-representative-chars): Add
new scripts defined by Unicode 9.0.0.
(otf-script-alist): Add new OTF script tags.
* lisp/international/mule-cmds.el (ucs-names): Update ranges per
Unicode 9.0.0 additions.

8 years agoAvoid errors in forms-mode when default major mode is text
Eli Zaretskii [Sat, 12 Mar 2016 11:05:49 +0000 (13:05 +0200)]
Avoid errors in forms-mode when default major mode is text

* lisp/forms.el (forms-mode): Bind
change-major-mode-with-file-name to nil when calling
set-visited-file-name.  (Bug#22982)

8 years agoAvoid crashes at startup on systems that CANNOT_DUMP
Eli Zaretskii [Sat, 12 Mar 2016 09:51:03 +0000 (11:51 +0200)]
Avoid crashes at startup on systems that CANNOT_DUMP

* src/xdisp.c (syms_of_xdisp) <redisplay--inhibit-bidi>: New
boolean variable.
(init_iterator, reseat_to_string)
(Fcurrent_bidi_paragraph_direction)
(Fbidi_find_overridden_directionality): Use
redisplay--inhibit-bidi instead of purify-flag, to determine when
it's safe to reorder bidirectional text.

* lisp/loadup.el (redisplay--inhibit-bidi): Set to t at the
beginning of the file.  Reset to nil when charprop.el is
successfully loaded, or when we are going to dump, whichever
happens last.  (Bug#22975)

8 years ago; * etc/DEBUG: Improve wording. (Bug#22984)
Eli Zaretskii [Sat, 12 Mar 2016 08:32:16 +0000 (10:32 +0200)]
; * etc/DEBUG: Improve wording.  (Bug#22984)

8 years agoFix documentation of seq.el functions
Eli Zaretskii [Sat, 12 Mar 2016 08:26:21 +0000 (10:26 +0200)]
Fix documentation of seq.el functions

* doc/lispref/sequences.texi (Sequence Functions): Fix typos.  Add
cross-references.  Fix formatting.  (Bug#22992)

8 years agoSupport Ruby 2.3.0's safe navigation operator
Dmitry Gutov [Fri, 11 Mar 2016 22:18:42 +0000 (00:18 +0200)]
Support Ruby 2.3.0's safe navigation operator

* lisp/progmodes/ruby-mode.el (ruby-smie--forward-token)
(ruby-smie--backward-token): Tokenize '&.' as '.'.
(ruby-smie--implicit-semi-p): Check for possible '&' before '.'.

* test/indent/ruby.rb: Add an example using safe navigation
operator.  Fix a syntax error in existing example.

8 years agoUpdate Emacs manual section related to character folding
John Wiegley [Fri, 11 Mar 2016 19:42:06 +0000 (11:42 -0800)]
Update Emacs manual section related to character folding

* search.texi: Character folding is not on by default.

8 years ago; * etc/DEBUG: Fix a typo. (Bug#22984)
Eli Zaretskii [Fri, 11 Mar 2016 15:54:40 +0000 (17:54 +0200)]
; * etc/DEBUG: Fix a typo.  (Bug#22984)

8 years agoUpdate admin/notes/unicode
Eli Zaretskii [Fri, 11 Mar 2016 10:50:55 +0000 (12:50 +0200)]
Update admin/notes/unicode

* admin/notes/unicode: Update the list of files from the UCD we
are using.  Mention the possible need to change 'ucs-names' when
importing a new version of the Unicode Standard.

8 years agoAdd symref-filepattern entries for c?perl-mode
Dmitry Gutov [Fri, 11 Mar 2016 03:29:49 +0000 (05:29 +0200)]
Add symref-filepattern entries for c?perl-mode

* lisp/cedet/semantic/symref/grep.el
(semantic-symref-filepattern-alist): Add entries for perl-mode and
cperl-mode.

8 years agoDon't use XRANDR 1.3 extensions if the server doesn't support them.
Ken Raeburn [Wed, 9 Mar 2016 03:17:16 +0000 (22:17 -0500)]
Don't use XRANDR 1.3 extensions if the server doesn't support them.

* src/xterm.h (struct x_display_info): Add fields to save XRANDR
version number.
* src/xfns.c (x_get_monitor_attributes): Save the version numbers
after querying the X server.
(x_get_monitor_attributes_xrandr): Don't use XRRGetOutputPrimary or
XRRGetScreenResourcesCurrent if the server doesn't support at least
RANDR version 1.3.  Conditionalize the code blocks on compiling
against library version 1.3 or better, rather than feature tests for
each function.
* configure.ac: Stop testing for those two functions.

8 years ago; NEWS update for the last change in etags
Eli Zaretskii [Thu, 10 Mar 2016 16:31:11 +0000 (18:31 +0200)]
; NEWS update for the last change in etags