]> git.eshelyaron.com Git - emacs.git/log
emacs.git
9 years ago; Revert inadvertent premature commit.
Eli Zaretskii [Wed, 30 Sep 2015 19:42:59 +0000 (22:42 +0300)]
; Revert inadvertent premature commit.

9 years agoDisable some display optimizations when frames need redisplay
Eli Zaretskii [Wed, 30 Sep 2015 19:32:14 +0000 (22:32 +0300)]
Disable some display optimizations when frames need redisplay

These optimizations were previously disabled by the
windows_or_buffers_changed flag, which now is not set
when only some frames need to be redrawn.
* src/xdisp.c (redisplay_internal): Redisplay any frame whose
'redisplay' flag is set.
(try_window_reusing_current_matrix, try_window_id)
(try_cursor_movement): Disable these optimizations when the
frame's 'redisplay' flag is set.

9 years agoDon't modify buffer by unprettification
Tassilo Horn [Wed, 30 Sep 2015 18:15:22 +0000 (20:15 +0200)]
Don't modify buffer by unprettification

* lisp/progmodes/prog-mode.el (prettify-symbols--compose-symbol):
(prettify-symbols--post-command-hook, prettify-symbols-mode): Don't
modify buffer when setting/removing custom prettify-symbols-start/end
text properties.  Add them to font-lock-extra-managed-props, too.

9 years agoTry to avoid redisplaying all frames when creating a new one
Stefan Monnier [Wed, 30 Sep 2015 14:00:13 +0000 (10:00 -0400)]
Try to avoid redisplaying all frames when creating a new one

* src/xfns.c (x_set_menu_bar_lines, x_change_tool_bar_height):
* src/xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
(Finternal_set_lisp_face_attribute, update_face_from_frame_parameter):
* src/frame.c (x_set_screen_gamma): Set the specific frame's
`redisplay' bit rather than windows_or_buffers_changed.

* src/window.c (apply_window_adjustment): Remove redundant setting of
windows_or_buffers_changed.

* src/xdisp.c (redisplay_internal): Set the specific frame's
`redisplay' bit rather than update_mode_lines in response to
cursor_type_changed.
(syms_of_xdisp): Use hash-tables for redisplay_*_cause tables.
(AINC): Adjust accordingly.

9 years ago; Yet another tweak of pos-visible-in-window-p doc string
Eli Zaretskii [Wed, 30 Sep 2015 13:51:48 +0000 (16:51 +0300)]
; Yet another tweak of pos-visible-in-window-p doc string

9 years ago; Minor updates in admin/MAINTAINERS
Michael Albinus [Wed, 30 Sep 2015 13:28:41 +0000 (15:28 +0200)]
; Minor updates in admin/MAINTAINERS

9 years agoImplement unprettification of symbol at point
Tassilo Horn [Tue, 29 Sep 2015 19:34:18 +0000 (21:34 +0200)]
Implement unprettification of symbol at point

* lisp/progmodes/prog-mode.el: Implement feature for unprettifying the
symbol at point.
(prettify-symbols--current-symbol-bounds): New variable.
(prettify-symbols--post-command-hook): New function.
(prettify-symbols-unprettify-at-point): New defcustom.
(prettify-symbols-mode): Use it.
(prettify-symbols--compose-symbol): Use them.

9 years ago* src/macfont.m (mac_font_descriptor_supports_languages): Regard "zh" as synonym...
YAMAMOTO Mitsuharu [Wed, 30 Sep 2015 10:05:27 +0000 (19:05 +0900)]
* src/macfont.m (mac_font_descriptor_supports_languages): Regard "zh" as synonym of "zh-Hans".

9 years agoWork around crash when displaying etc/HELLO on OS X 10.11
YAMAMOTO Mitsuharu [Wed, 30 Sep 2015 09:56:30 +0000 (18:56 +0900)]
Work around crash when displaying etc/HELLO on OS X 10.11

* src/macfont.m (mac_font_get_weight)
(mac_font_descriptor_get_adjusted_weight): New functions.
(macfont_store_descriptor_attributes): Adjust weight.

9 years ago; Clarify docs of pos-visible-in-window-p some more
Eli Zaretskii [Wed, 30 Sep 2015 09:46:17 +0000 (12:46 +0300)]
; Clarify docs of pos-visible-in-window-p some more

9 years ago* src/macfont.m: Fix compilation with USE_CT_GLYPH_INFO.
YAMAMOTO Mitsuharu [Wed, 30 Sep 2015 09:43:25 +0000 (18:43 +0900)]
* src/macfont.m: Fix compilation with USE_CT_GLYPH_INFO.

9 years ago* lisp/arc-mode.el (archive-rar-summarize): Better alignment of the columns.
Nicolas Petton [Wed, 30 Sep 2015 08:12:26 +0000 (10:12 +0200)]
* lisp/arc-mode.el (archive-rar-summarize): Better alignment of the columns.

9 years agoUse unar and lsar to handle RAR archives in arc-mode
Nicolas Petton [Wed, 30 Sep 2015 08:04:09 +0000 (10:04 +0200)]
Use unar and lsar to handle RAR archives in arc-mode

* lisp/arc-mode.el (archive-rar-extract, archive-extract-by-file): Rely
on unar and lsar instead of unrar-free for RAR archives (Bug#17663).

9 years ago; * Add admin/MAINTAINERS entries
Vibhav Pant [Wed, 30 Sep 2015 07:48:17 +0000 (13:18 +0530)]
; * Add admin/MAINTAINERS entries

* Add entries for Vibhav Pant.

* Add entries for files in lisp/net that don't have a maintainer.

9 years agoClarify :create in auth-source's docs
Wieland Hoffmann [Tue, 1 Sep 2015 16:28:30 +0000 (18:28 +0200)]
Clarify :create in auth-source's docs

* auth-source.el (auth-source-search): Clarify :create's meaning.

Copyright-paperwork-exempt: yes

9 years agoAvoid empty -path arguments in rgrep
Phil Sainty [Wed, 30 Sep 2015 07:39:21 +0000 (10:39 +0300)]
Avoid empty -path arguments in rgrep

* lisp/progmodes/grep.el (rgrep-default-command): Remove nil from
the list produced according to grep-find-ignored-directories,
before passing it to Find/Grep invocation.  (Bug#21548)

9 years agoClarify documentation of pos-visible-in-window-p
Eli Zaretskii [Wed, 30 Sep 2015 07:19:41 +0000 (10:19 +0300)]
Clarify documentation of pos-visible-in-window-p

* src/window.c (Fpos_visible_in_window_p): Clarify the meaning of
t for POS.  See
http://lists.gnu.org/archive/html/emacs-devel/2015-09/msg01040.html
for the original report.

* doc/lispref/windows.texi (Window Start and End): Clarify the
meaning of t for the POSITION argument of pos-visible-in-window-p.

9 years ago* lisp/progmodes/prolog.el: Fix various indentation cases
Stefan Monnier [Wed, 30 Sep 2015 03:28:32 +0000 (23:28 -0400)]
* lisp/progmodes/prolog.el: Fix various indentation cases

(prolog-operator-chars): New const (add \\).
(prolog-smie-forward-token, prolog-smie-backward-token): Use it.
(prolog-smie-rules): Add rules according to bug#21526.

9 years ago; * admin/MAINTAINERS: Add entries for Dmitry Gutov
Dmitry Gutov [Wed, 30 Sep 2015 02:17:30 +0000 (05:17 +0300)]
; * admin/MAINTAINERS: Add entries for Dmitry Gutov

Author:

9 years ago* lisp/progmodes/sh-script.el: Old "dumb" continued line indent
Stefan Monnier [Wed, 30 Sep 2015 01:43:07 +0000 (21:43 -0400)]
* lisp/progmodes/sh-script.el: Old "dumb" continued line indent

(sh-indent-after-continuation): Add new value `always' (bug#17620)
(sh-smie-sh-rules): Remove old handling of continued lines.
(sh-smie--indent-continuation): New function.
(sh-set-shell): Use it.

9 years ago* lisp/progmodes/octave.el: Use grammar more; Handle enumeration fun
Stefan Monnier [Tue, 29 Sep 2015 19:13:44 +0000 (15:13 -0400)]
* lisp/progmodes/octave.el: Use grammar more; Handle enumeration fun

Remove redundant :group keyword args.
(octave-begin-keywords, octave-else-keywords, octave-end-keywords):
Remove variables.
(octave-operator-table, octave-smie-bnf-table): Use let-when-compile to
turn them into compile-time variables.
Auto-generate the "foo ... end" rules from the "foo ... endfoo" rules.
Add rules for break, continue, return, global, and persistent.
Refine the rule for "until".
(octave-smie--funcall-p, octave-smie--end-index-p)
(octave-smie--in-parens-p): New functions.
(octave-smie-backward-token, octave-smie-forward-token): Use them to
distinguish the "enumeration" function and the "end" index from
their corresponding keywords.
(octave--block-offset-keywords): New constant.
(octave-smie-rules): Use it.  Adjust rules for new global/persistent parsing.
(octave-reserved-words): Redefine using octave-smie-grammar.
(octave-font-lock-keywords): Use octave-smie--funcall-p and
octave-smie--end-index-p.

9 years ago* lisp/emacs-lisp/lisp-mode.el (let-when-compile): Work like let*
Stefan Monnier [Tue, 29 Sep 2015 19:08:55 +0000 (15:08 -0400)]
* lisp/emacs-lisp/lisp-mode.el (let-when-compile): Work like let*

9 years agont/INSTALL: Remove references to GTK site
Eli Zaretskii [Tue, 29 Sep 2015 16:34:25 +0000 (19:34 +0300)]
nt/INSTALL: Remove references to GTK site

That site no longer offers Windows downloads.

9 years ago; ChangeLog fix
Glenn Morris [Tue, 29 Sep 2015 16:31:41 +0000 (12:31 -0400)]
; ChangeLog fix

9 years ago* nt/INSTALL: Add instructions for installing Git.
Eli Zaretskii [Tue, 29 Sep 2015 07:08:29 +0000 (10:08 +0300)]
* nt/INSTALL: Add instructions for installing Git.

9 years ago* net/shr.el (shr-colorize-region): Allow 88-color tty to use colors.
Katsumi Yamaoka [Tue, 29 Sep 2015 06:30:48 +0000 (06:30 +0000)]
* net/shr.el (shr-colorize-region): Allow 88-color tty to use colors.
Suggested by Eli Zaretskii.

9 years ago* net/shr.el (shr-colorize-region):
Katsumi Yamaoka [Tue, 29 Sep 2015 02:01:50 +0000 (02:01 +0000)]
* net/shr.el (shr-colorize-region):
Don't do it on a system not supporting 256 above colors (bug#21557).

9 years ago; Remove extraneous "coding: utf-8" specifications in Elisp files
Dmitry Gutov [Mon, 28 Sep 2015 22:39:14 +0000 (01:39 +0300)]
; Remove extraneous "coding: utf-8" specifications in Elisp files

9 years agoRevert "Don't rely on defaults in decoding UTF-8 encoded Lisp files"
Dmitry Gutov [Mon, 28 Sep 2015 19:41:47 +0000 (22:41 +0300)]
Revert "Don't rely on defaults in decoding UTF-8 encoded Lisp files"

This reverts commit db828f62f6f17414fbbc3206dac123dc73dd6055.

9 years ago; * CONTRIBUTE: Tweak the "Non-ASCII characters in Emacs files" section
Dmitry Gutov [Mon, 28 Sep 2015 19:03:22 +0000 (22:03 +0300)]
; * CONTRIBUTE: Tweak the "Non-ASCII characters in Emacs files" section

9 years agoAdd documentation for seq.el
Nicolas Petton [Mon, 28 Sep 2015 20:18:26 +0000 (22:18 +0200)]
Add documentation for seq.el

* doc/lispref/sequences.texi: Add documentation regarding extending
seq.el, as well as missing documentation for seq-elt, seq-length, seq-p,
seq-do and seq-map.

9 years agoBetter documentation for seq-some
Nicolas Petton [Mon, 28 Sep 2015 19:11:05 +0000 (21:11 +0200)]
Better documentation for seq-some

* doc/lispref/sequences.texi:
* lisp/emacs-lisp/seq.el: Update the documentation of seq-some to
guarantee that the returned value is the first non-nil value that
resulted from applying the predicate.

9 years ago* lisp/arc-mode.el: Sharp-quote function arguments.
Nicolas Petton [Sun, 27 Sep 2015 15:59:35 +0000 (17:59 +0200)]
* lisp/arc-mode.el: Sharp-quote function arguments.

9 years agoAvoid redisplay error in ediff-regions-wordwise
Eli Zaretskii [Mon, 28 Sep 2015 15:53:26 +0000 (18:53 +0300)]
Avoid redisplay error in ediff-regions-wordwise

* lisp/vc/ediff-util.el
(ediff-clone-buffer-for-region-comparison): Make sure the mark is
set before activating it.  (Bug#21567)

9 years ago; Remove unnecessary resetting of inhibit_free_realized_faces
Eli Zaretskii [Mon, 28 Sep 2015 13:48:52 +0000 (16:48 +0300)]
; Remove unnecessary resetting of inhibit_free_realized_faces

9 years ago; Fix last commit
Eli Zaretskii [Mon, 28 Sep 2015 13:00:13 +0000 (16:00 +0300)]
; Fix last commit

9 years agoAnother attempt to fix crashes due to prematurely freed faces
Eli Zaretskii [Mon, 28 Sep 2015 12:50:29 +0000 (15:50 +0300)]
Another attempt to fix crashes due to prematurely freed faces

* src/xdisp.c (redisplay_internal): Inhibit freeing of realized
faces for as long as we might have desired matrices that reference
those faces.  (Bug#21428)

9 years agoAdd auctex development list email address
Tassilo Horn [Mon, 28 Sep 2015 08:59:21 +0000 (10:59 +0200)]
Add auctex development list email address

9 years agoAdd admin/MAINTAINERS entries
Tassilo Horn [Mon, 28 Sep 2015 07:37:33 +0000 (09:37 +0200)]
Add admin/MAINTAINERS entries

* admin/MAINTAINERS: Add entries for AUCTeX team and myself.

9 years agoImprove wrapfig package support and caption parsing
(tiny change) Arash Esbati [Mon, 28 Sep 2015 06:30:01 +0000 (08:30 +0200)]
Improve wrapfig package support and caption parsing

* lisp/textmodes/reftex-vars.el (reftex-label-alist-builtin): Correct
description string and add wraptable environment.
(reftex-default-context-regexps): Improve caption regexp.

Copyright-paperwork-exempt: yes

9 years agoRespect value of frame_resize_pixelwise when handling fullscreen state.
Anders Lindgren [Mon, 28 Sep 2015 06:11:14 +0000 (08:11 +0200)]
Respect value of frame_resize_pixelwise when handling fullscreen state.

* src/nsterm.m (handleFS): Respect frame_resize_pixelwise when
setting size increments.

9 years ago* src/gfilenotify.c (Fgfile_add_watch): Cleanup temporary variable.
Michael Albinus [Sun, 27 Sep 2015 18:16:06 +0000 (20:16 +0200)]
* src/gfilenotify.c (Fgfile_add_watch): Cleanup temporary variable.

9 years ago; Auto-commit of ChangeLog files.
Glenn Morris [Sun, 27 Sep 2015 10:24:03 +0000 (06:24 -0400)]
; Auto-commit of ChangeLog files.

9 years ago; Mention non-ASCII encoding issues in CONTRIBUTE
Eli Zaretskii [Sun, 27 Sep 2015 08:30:35 +0000 (11:30 +0300)]
; Mention non-ASCII encoding issues in CONTRIBUTE

* CONTRIBUTE: Document recommendations for encoding non-ASCII
characters in Emacs sources.

9 years agoAdd prettify-symbols-alist for js-mode
Simen Heggestøyl [Sun, 27 Sep 2015 08:04:09 +0000 (10:04 +0200)]
Add prettify-symbols-alist for js-mode

* lisp/progmodes/js.el (js--prettify-symbols-alist): New defconst.
(js-mode): Use it.

9 years ago; * CONTRIBUTE: Mention admin/MAINTAINERS.
Eli Zaretskii [Sun, 27 Sep 2015 07:56:30 +0000 (10:56 +0300)]
; * CONTRIBUTE: Mention admin/MAINTAINERS.

9 years ago* nt/subdirs.el: File deleted (no longer used).
Eli Zaretskii [Sun, 27 Sep 2015 07:50:46 +0000 (10:50 +0300)]
* nt/subdirs.el: File deleted (no longer used).

9 years ago; * admin/MAINTAINERS: Minor copyedits
Eli Zaretskii [Sun, 27 Sep 2015 07:48:44 +0000 (10:48 +0300)]
; * admin/MAINTAINERS: Minor copyedits

9 years ago; * admin/MAINTAINERS: Add an entry for Xue Fuqiao.
Xue Fuqiao [Sun, 27 Sep 2015 01:25:52 +0000 (09:25 +0800)]
; * admin/MAINTAINERS: Add an entry for Xue Fuqiao.

9 years ago; * admin/MAINTAINERS: Add entries for Nicolas Petton
Nicolas Petton [Sat, 26 Sep 2015 23:58:38 +0000 (01:58 +0200)]
; * admin/MAINTAINERS: Add entries for Nicolas Petton

9 years agoFix follow-scroll-up/down, making them replacements for scroll-up/down.
Alan Mackenzie [Sat, 26 Sep 2015 19:03:35 +0000 (19:03 +0000)]
Fix follow-scroll-up/down, making them replacements for scroll-up/down.

1. Allow point to move between follow windows in scroll operations.
2. Fix bug where `right-char' just before EOB caused spurious scrolling,
when EOB was isolated in the last follow window.

lisp/follow.el (follow-fixed-window): New variable.
(follow-get-scrolled-point): New function.
(follow-scrol-up, follow-scroll-down): Add autoload cookies.
Reformulate
the code.  Put `scroll-command' properties on the functions.  Correct
minor errors in ...-down's doc string and code.
(follow-calc-win-end): Amend incomplete doc string.  Use
`pos-visible-in-window-p' to check whether EOB is in the window.
(follow-estimate-first-window-start): Correct an off-by-1 error.
(follow-adjust-window): Add handling for explicit scrolling operations.

9 years ago; * admin/MAINTAINERS: Add entry for Simen Heggestøyl
Simen Heggestøyl [Sat, 26 Sep 2015 18:58:49 +0000 (20:58 +0200)]
; * admin/MAINTAINERS: Add entry for Simen Heggestøyl

9 years ago; * admin/MAINTAINERS: Add entries for Michael Albinus
Michael Albinus [Sat, 26 Sep 2015 18:46:53 +0000 (20:46 +0200)]
; * admin/MAINTAINERS: Add entries for Michael Albinus

9 years ago* admin/MAINTAINERS: Add self, plus list some more files sans maintaners.
Paul Eggert [Sat, 26 Sep 2015 17:00:00 +0000 (10:00 -0700)]
* admin/MAINTAINERS: Add self, plus list some more files sans maintaners.

9 years ago; * admin/MAINTAINERS: Add entries for Artur Malabarba
Artur Malabarba [Sat, 26 Sep 2015 16:40:57 +0000 (17:40 +0100)]
; * admin/MAINTAINERS: Add entries for Artur Malabarba

9 years ago; * admin/MAINTAINERS: Update Eli Zaretskii's interests
Eli Zaretskii [Sat, 26 Sep 2015 09:48:44 +0000 (12:48 +0300)]
; * admin/MAINTAINERS: Update Eli Zaretskii's interests

9 years agoNew DWIM commands for changing letter-case
Zachary Kanfer [Sat, 26 Sep 2015 08:09:19 +0000 (11:09 +0300)]
New DWIM commands for changing letter-case

* lisp/simple.el (upcase-dwim, downcase-dwim, capitalize-dwim):
New functions.  (Bug#21501)

Copyright-paperwork-exempt: yes

9 years ago* etc/PROBLEMS: Document problems with pasting on MS-Windows
Eli Zaretskii [Sat, 26 Sep 2015 07:25:58 +0000 (10:25 +0300)]
* etc/PROBLEMS: Document problems with pasting on MS-Windows

9 years agoMake face realization be more frame-specific
Eli Zaretskii [Sat, 26 Sep 2015 06:50:58 +0000 (09:50 +0300)]
Make face realization be more frame-specific

* src/frame.h (struct f): New flag face_change.
* src/xfaces.c (Finternal_make_lisp_face)
(Finternal_copy_lisp_face, Finternal_set_lisp_face_attribute)
(update_face_from_frame_parameter): Set the face_change flag only
for the frame whose faces are affected.
* src/xdisp.c (init_iterator): If a frame's face_change flag is
set, free faces only on that frame.
(redisplay_internal): Disable "display optimization 1" if the
frame's face_change flag is set.
(redisplay_window): Don't allow skipping a window's redisplay if
its frame's face_change flag is set.
* src/frame.c (x_set_screen_gamma): Instead of calling
Fclear_face_cache, call clear_face_cache and set
windows_or_buffers_changed to a non-zero value.  This avoids
setting the global face_change flag that triggers face realization
on all frames and thorough redisplay of all of them.

* lisp/term/tty-colors.el (tty-register-default-colors): Don't
clear face cache if the selected frame is a GUI frame.

9 years agoRemove font-latex specific check
Tassilo Horn [Sat, 26 Sep 2015 05:23:21 +0000 (07:23 +0200)]
Remove font-latex specific check

* lisp/textmodes/tex-mode.el (tex--prettify-symbols-compose-p): Use
syntax-ppss data to identify verbatim contents.

9 years agoFix false negatives in tex--prettify-symbols-compose-p.
Tassilo Horn [Fri, 25 Sep 2015 21:02:28 +0000 (23:02 +0200)]
Fix false negatives in tex--prettify-symbols-compose-p.

* lisp/textmodes/tex-mode.el (tex--prettify-symbols-compose-p): Fix some
false negatives.

9 years agoReorder Windows version in Emacs manifests
Eli Zaretskii [Fri, 25 Sep 2015 19:22:31 +0000 (22:22 +0300)]
Reorder Windows version in Emacs manifests

* nt/emacs-x64.manifest:
* nt/emacs-x86.manifest: Reorder Windows version from lowest to
highest.

9 years agoUpdate Emacs manifest files for Windows 10
Eli Zaretskii [Fri, 25 Sep 2015 19:01:54 +0000 (22:01 +0300)]
Update Emacs manifest files for Windows 10

* nt/emacs-x86.manifest:
* nt/emacs-x64.manifest: Declare compatibility with Windows 10.

9 years agoAvoid non-ASCII decoding errors in C src files
Eli Zaretskii [Fri, 25 Sep 2015 17:29:27 +0000 (20:29 +0300)]
Avoid non-ASCII decoding errors in C src files

* src/nsterm.m:
* src/lisp.h:
* src/editfns.c:
* src/doprnt.c: Add 'coding' cookies -- these files include
Unicode characters and should be decoded as UTF-8.

9 years agoResurrect edebug-set-initial-mode, repurposing it to set the global mode.
Alan Mackenzie [Fri, 25 Sep 2015 11:31:50 +0000 (11:31 +0000)]
Resurrect edebug-set-initial-mode, repurposing it to set the global mode.

lisp/emacs-lisp/edebug.el (edebug-initial-mode-alist): Uncomment, and
amend to match current modes and functions.
(edebug-set-initial-mode): Uncomment and change from setting a defun's
`edebug-initial-mode''s property to setting the variable
`edebug-initial-mode'.
(top level): Create new binding C-x C-a C-m for
`edebug-set-initial-mode'.

doc/lispref/edebug.texi (Edebug Execution Modes): document
`edebug-set-initial-mode' and its new key binding.
(Edebug Options): Mention the new command in the pertinent place.

etc/NEWS: Write entry for this change.

9 years agoAvoid non-ASCII decoding errors in Texinfo files
Eli Zaretskii [Fri, 25 Sep 2015 09:32:13 +0000 (12:32 +0300)]
Avoid non-ASCII decoding errors in Texinfo files

* doc/misc/tramp.texi:
* doc/lispref/strings.texi:
* doc/lispref/positions.texi:
* doc/lispref/help.texi:
* doc/lispref/functions.texi:
* doc/lispintro/emacs-lisp-intro.texi:
* doc/emacs/text.texi:
* doc/emacs/modes.texi:
* doc/emacs/mini.texi:
* doc/emacs/display.texi:
* doc/emacs/custom.texi:
* doc/emacs/basic.texi: Add 'coding' cookies -- these files use
Unicode characters and should be decoded as UTF-8.
* doc/lispref/frames.texi (Size Parameters): Don't use a non-ASCII
apostrophe unnecessarily.

9 years agoMerge from gnulib
Paul Eggert [Fri, 25 Sep 2015 07:21:58 +0000 (00:21 -0700)]
Merge from gnulib

This incorporates:
2015-09-25 c-ctype: rewrite to use inline functions
2015-09-24 maint: add coding cookies to non-ASCII sources
2015-09-24 gitlog-to-changelog: trim only trailing whitespaces
* build-aux/gitlog-to-changelog, doc/misc/texinfo.tex:
* lib/acl-internal.c, lib/acl-internal.h, lib/c-ctype.c:
* lib/c-ctype.h, lib/get-permissions.c, lib/qcopy-acl.c:
* lib/set-permissions.c:
Copy from gnulib.

9 years agoUpdate publicsuffix.txt from upstream
Paul Eggert [Thu, 24 Sep 2015 18:12:36 +0000 (11:12 -0700)]
Update publicsuffix.txt from upstream

* etc/publicsuffix.txt: Update from
https://publicsuffix.org/list/effective_tld_names.dat
dated 2015-09-24 17:29:21 UTC.

9 years agoPrevent timers from messing up TTY menus
Eli Zaretskii [Thu, 24 Sep 2015 18:04:42 +0000 (21:04 +0300)]
Prevent timers from messing up TTY menus

* src/term.c (tty_menu_activate): Inhibit redisplay for as long as
the TTY menu is open.  (Bug#21530)

9 years agoNo need to mention K&R C in c-mode intro
Paul Eggert [Thu, 24 Sep 2015 16:13:36 +0000 (09:13 -0700)]
No need to mention K&R C in c-mode intro

9 years agoFix recent bootstrap problems
Stefan Monnier [Thu, 24 Sep 2015 12:54:39 +0000 (08:54 -0400)]
Fix recent bootstrap problems

* src/syntax.c (parse_sexp_propertize): Fix last fix.
* lisp/nxml/nxml-mode.el (nxml-comment-quote-nested): Fix paren typo.
* lisp/emacs-lisp/lisp-mode.el: Require cl-lib for cl-progv.

9 years ago* src/gfilenotify.c (Fgfile_add_watch): Decrease polling rate.
Michael Albinus [Thu, 24 Sep 2015 07:36:12 +0000 (09:36 +0200)]
* src/gfilenotify.c (Fgfile_add_watch): Decrease polling rate.

9 years ago; Implement Stefan's feedback on last two commits
Ivan Andrus [Wed, 23 Sep 2015 15:21:32 +0000 (09:21 -0600)]
; Implement Stefan's feedback on last two commits

9 years agoProperly quote nested xml comments (Bug#6267) (Bug#20001)
Ivan Andrus [Tue, 8 Sep 2015 22:38:13 +0000 (16:38 -0600)]
Properly quote nested xml comments (Bug#6267) (Bug#20001)

* nxml-mode.el (nxml-comment-quote-nested): New function
(nxml-mode): Set comment-quote-nested-function

9 years agoAllow major-modes full control over quoting nested comments
Ivan Andrus [Tue, 8 Sep 2015 22:37:06 +0000 (16:37 -0600)]
Allow major-modes full control over quoting nested comments

* newcomment.el (comment-quote-nested-function): New variable.
(comment-quote-nested-default): New function.
(comment-quote-nested): Use `comment-quote-nested-function'.

9 years agoPrefer CALLN in a few more places
Paul Eggert [Wed, 23 Sep 2015 21:43:26 +0000 (14:43 -0700)]
Prefer CALLN in a few more places

* src/macfont.m (macfont_set_family_cache):
* src/nsterm.m (append2):
* src/xterm.c (x_cr_export_frames):
Prefer CALLN to allocating the arg arrays by hand.

9 years agoAdapt file-notify-test02-events test case
Michael Albinus [Wed, 23 Sep 2015 20:25:02 +0000 (22:25 +0200)]
Adapt file-notify-test02-events test case

* test/automated/file-notify-tests.el (file-notify-test02-events):
Create a new watch for every test.

9 years ago; Fix thinko in last commit of filenotify.el
Michael Albinus [Wed, 23 Sep 2015 19:21:49 +0000 (21:21 +0200)]
; Fix thinko in last commit of filenotify.el

9 years agoContinue gfilenotify.c implementation of missing parts
Michael Albinus [Wed, 23 Sep 2015 18:34:22 +0000 (20:34 +0200)]
Continue gfilenotify.c implementation of missing parts

* lisp/filenotify.el (file-notify-add-watch): Append `flags' to
`gfile-add-watch' call.
(file-notify-rm-watch): Modify `file-notify-descriptors' only
after calling the low level functions.

* src/gfilenotify.c (dir_monitor_callback): Check, whether
event_type is expected.
(Fgfile_add_watch): Allow also `change'and `attribute-change' for FLAGS.
(Fgfile_rm_watch): Fix typo.
(syms_of_gfilenotify): Declare Qchange and Qattribute_change.

9 years ago* src/syntax.c: Handle spurious e_property_truncated flag
Stefan Monnier [Wed, 23 Sep 2015 16:33:48 +0000 (12:33 -0400)]
* src/syntax.c: Handle spurious e_property_truncated flag

* src/syntax.c (parse_sexp_propertize): Handle spurious
e_property_truncated flag.
(update_syntax_table_forward): Remove invalid assertion.

9 years agoSupport ':relative-width' space display spec on text-mode terminals
Eli Zaretskii [Wed, 23 Sep 2015 13:20:10 +0000 (16:20 +0300)]
Support ':relative-width' space display spec on text-mode terminals

* src/xdisp.c (produce_stretch_glyph): Support ':relative-width'
space display spec on text-mode terminals, by calling
PRODUCE_GLYPHS instead of x_produce_glyphs.  Remove the HAVE_WINDOW_SYSTEM
guards from the supporting code, as well as the test for a GUI frame.

9 years agoMove let-when-compile to lisp-mode.el
Oleh Krehel [Wed, 23 Sep 2015 11:50:15 +0000 (13:50 +0200)]
Move let-when-compile to lisp-mode.el

This fixes the bootstrapping problem of `let-when-compile' using
`cl-progv' while being in subr.el (i.e. before cl stuff was loaded).

9 years agoDo not include authorization header in an HTTP redirect
Thomas Fitzsimmons [Wed, 23 Sep 2015 05:45:29 +0000 (01:45 -0400)]
Do not include authorization header in an HTTP redirect

* lisp/url/url-http.el (url-http-parse-headers): Do not
automatically include Authorization header in redirect.
(Bug#21350)

9 years agoClarify documentation of ':relative-width'
Eli Zaretskii [Tue, 22 Sep 2015 16:51:47 +0000 (19:51 +0300)]
Clarify documentation of ':relative-width'

* doc/lispref/display.texi (Specified Space): Document that
':relative-width' is only supported on GUI frames.

9 years agoFix 'current-column' in presence of :relative-width
Eli Zaretskii [Tue, 22 Sep 2015 16:33:47 +0000 (19:33 +0300)]
Fix 'current-column' in presence of :relative-width

* src/indent.c (check_display_width): Support ':relative-width'
in a display spec that specifies a stretch glyph.  (Bug#21533)

9 years agoReformat the pdbtrack remote-file fix ChangeLog.2 entry
Ken Manheimer [Tue, 22 Sep 2015 15:26:13 +0000 (11:26 -0400)]
Reformat the pdbtrack remote-file fix ChangeLog.2 entry

... to conform better to CONTRIBUTE guidelines.

9 years ago* prolog.el: Fix indentation of empty line
Stefan Monnier [Tue, 22 Sep 2015 15:11:50 +0000 (11:11 -0400)]
* prolog.el: Fix indentation of empty line

* lisp/emacs-lisp/smie.el (smie-rules-function): Document new
`empty-line-token' element.
(smie-indent-empty-line): New function.
(smie-indent-functions): Add it.

* lisp/progmodes/prolog.el (prolog-smie-rules): Fix :list-intro behavior
and use the new `empty-line-token' element (bug#21526).
(prolog-mode-variables): Fix comment-start-skip setting to match
comment-start.

* test/indent/prolog.prolog: Add nested indentation tests.

* lisp/newcomment.el (comment-normalize-vars): Fix default value of
comment-start-skip not to misuse submatch 1.

9 years agoMake description of `edebug-initial-mode' user friendly.
Alan Mackenzie [Tue, 22 Sep 2015 12:45:00 +0000 (12:45 +0000)]
Make description of `edebug-initial-mode' user friendly.

Fixes debbugs#21365.

dec/lispref/edebug.texi (Edebug Execution Modes): Change the
desscription
of `edebug-initial-mode' from that of its implementation to that of its
visual effect and use.  Move the paragraph higher up.

9 years agolisp/progmodes/gud.el (gud-format-command): Fix last commit
Eli Zaretskii [Tue, 22 Sep 2015 10:16:11 +0000 (13:16 +0300)]
lisp/progmodes/gud.el (gud-format-command): Fix last commit

* lisp/progmodes/gud.el (gud-format-command): Don't use Tramp internal
functions 'tramp-file-name-localname' and 'tramp-dissect-file-name'.

9 years ago; * doc/lispref/os.texi (File Notifications): Minor copy-edits.
Eli Zaretskii [Tue, 22 Sep 2015 10:08:02 +0000 (13:08 +0300)]
; * doc/lispref/os.texi (File Notifications): Minor copy-edits.

9 years agoImprove last commit to process.c
Tassilo Horn [Tue, 22 Sep 2015 08:19:25 +0000 (10:19 +0200)]
Improve last commit to process.c

9 years agoImplement gfile-valid-p
Michael Albinus [Tue, 22 Sep 2015 06:40:08 +0000 (08:40 +0200)]
Implement gfile-valid-p

* lisp/filenotify.el (file-notify-callback): Fix typo.
(gfile-valid-p): Remove defalias.

* src/gfilenotify.c (dir_monitor_callback): Cancel the monitor if
the file or directory to be watched is deleted.
(Fgfile_add_watch): Make watch_object a triple.
(Fgfile_rm_watch): Check, whether watch is cancelled already.
(Fgfile_valid_p): New defun.
(syms_of_gfilenotify): Declare Sgfile_valid_p.

9 years agoRemove callback-handled channels from Available set
Tassilo Horn [Tue, 22 Sep 2015 05:43:39 +0000 (07:43 +0200)]
Remove callback-handled channels from Available set

* src/process.c (wait_reading_process_output): Remove channel from
Available set if it is handled by a callback, e.g., dbus or
inotify (bug#21313).

9 years agoUse lunate epsilon for TeX \epsilon
Mark Oteiza [Mon, 21 Sep 2015 20:45:58 +0000 (16:45 -0400)]
Use lunate epsilon for TeX \epsilon

* lisp/textmodes/tex-mode.el (tex--prettify-symbols-alist): Add
\varepsilon using GREEK SMALL LETTER EPSILON, and change \epsilon to use
GREEK LUNATE EPSILON SYMBOL

9 years ago* lisp/progmodes/prolog.el: Fix nested electric if-then-else
Stefan Monnier [Mon, 21 Sep 2015 20:22:17 +0000 (16:22 -0400)]
* lisp/progmodes/prolog.el: Fix nested electric if-then-else

* lisp/progmodes/prolog.el (prolog-find-unmatched-paren): Use innermost
rather than outermost paren (bug#21526).

9 years agoImprove git diff hunk headers for .el, .texi
Paul Eggert [Mon, 21 Sep 2015 18:56:01 +0000 (11:56 -0700)]
Improve git diff hunk headers for .el, .texi

Problem reported by Alan Mackenzie in:
http://lists.gnu.org/archive/html/emacs-devel/2015-09/msg00826.html
* .gitattributes (*.el, *.texi): New patterns.
* autogen.sh: Configure diff.elisp.xfuncname and
diff.texinfo.xfuncname if using Git.

9 years agoDon't rely on defaults in decoding UTF-8 encoded Lisp files
Eli Zaretskii [Mon, 21 Sep 2015 16:51:20 +0000 (19:51 +0300)]
Don't rely on defaults in decoding UTF-8 encoded Lisp files

* lisp/replace.el:
* lisp/textmodes/rst.el:
* lisp/whitespace.el: Add an explicit UTF-8 encoding tag.

9 years agoClarify or replace a few \u escapes.
Paul Eggert [Mon, 21 Sep 2015 14:58:41 +0000 (07:58 -0700)]
Clarify or replace a few \u escapes.

* doc/lispref/nonascii.texi (Character Properties)
More-detailed commentary for \u escapes.
* lisp/progmodes/python.el (python--prettify-symbols-alist):
* lisp/replace.el (query-replace-from-to-separator):
* lisp/textmodes/rst.el (rst-bullets, rst-re-alist-def)
(rst-mode-syntax-table):
* lisp/whitespace.el (whitespace-display-mappings):
Prefer actual character to \u escape when this makes the code
easier to follow in the usual case where Unicode chars can be
displayed.

9 years agoPacify GCC -Wmaybe-uninitialized in xdisp.c
Paul Eggert [Mon, 21 Sep 2015 14:45:31 +0000 (07:45 -0700)]
Pacify GCC -Wmaybe-uninitialized in xdisp.c

* src/xdisp.c (face_before_or_after_it_pos): Use do-while rather
than while loop to avoid GCC -Wmaybe-uninitialized diagnostic with
charpos.  The loop should always execute at least once anyway.

9 years agoSignal error on invalid regexp
Tassilo Horn [Mon, 21 Sep 2015 14:09:17 +0000 (16:09 +0200)]
Signal error on invalid regexp

* lisp/textmodes/reftex-cite.el (reftex-extract-bib-entries): Signal an
error when the user tries searching with a regexp matching the empty
string.