]> git.eshelyaron.com Git - emacs.git/log
emacs.git
8 years agoRemove never-set var handle_user_signal_hook
Paul Eggert [Tue, 26 Jan 2016 15:41:41 +0000 (07:41 -0800)]
Remove never-set var handle_user_signal_hook

* src/keyboard.c, src/keyboard.h (handle_user_signal_hook):
Remove never-set var.  All uses removed.

8 years agoBackport:fix previous change of src/ftfont.c (ftfont_shape_by_flt)
K. Handa [Thu, 14 Jan 2016 12:48:44 +0000 (21:48 +0900)]
Backport:fix previous change of src/ftfont.c (ftfont_shape_by_flt)

* src/ftfont.c (ftfont_shape_by_flt): Fix previous change.  Access the
second glyph only when there are enough glyphs.

(cherry picked from commit 9835757013569673854b692ccbb58bfb3c3ed1f7)

8 years agosupport rendering of wider range of combinging characters by ftfont backend
K. Handa [Sat, 2 Jan 2016 07:36:21 +0000 (16:36 +0900)]
support rendering of wider range of combinging characters by ftfont backend

* lisp/language/hebrew.el (hebrew-shape-gstring): If the font backend
supports rendering of combining characters, call
font-shape-gstring.

* src/font.c (Ffont_get): Handle `combining-capability' property.
(syms_of_font): New symbol ":combining-capability'.

* src/font.h (struct font_driver): New member combining_capability.

* src/ftfont.c: Include "category.h".
(ftfont_driver): Initialize combining_capability to
ftfont_combining_capability.
(ftfont_shape_by_flt): If OTF is null, try to find a suitable
FLT in advance.
(ftfont_combining_capability): New function.

(cherry picked from commit 536f48e9a2251b9e654ea974bd90ff2f40218753)

8 years agoFixed NextStep fullscreen issue (bug#22468)
Anders Lindgren [Tue, 26 Jan 2016 12:51:59 +0000 (13:51 +0100)]
Fixed NextStep fullscreen issue (bug#22468)

When in fullscreen mode, `[screen visibleFrame]' sometimes
includes, sometimes excludes the menu bar. This could cause
a frame to be placed too low when in fullscreen mode.

* src/nsterm.m (ns_menu_bar_should_be_hidden): Trace.
(constrain_frame_rect): New parameter, isFullscreen, when true don't
query the height of the menu bar.
(ns_constrain_all_frames): Pass `false' (isFullscreen) to
`constrain_frame_rect'.
([EmacsView initFrameFromEmacs:]): Trace.
([EmacsView isFullscreen]): Trace.
([EmacsWindow constrainFrameRect:toScreen:]): Pass fullscreen
state to `constrain_frame_rect'.

8 years ago* lisp/files.el: Use a fixed file name for the second dir-locals file
Artur Malabarba [Mon, 25 Jan 2016 22:42:50 +0000 (22:42 +0000)]
* lisp/files.el: Use a fixed file name for the second dir-locals file

(dir-locals-file): Revert to its original fixed value.
(dir-locals-file-2): New const.
(dir-locals--all-files): Don't use `file-name-all-completions'.
Instead, just check for the 2 dir-locals files and return a list
of the ones that exit (if any).

* etc/NEWS: Document the change.

* doc/emacs/custom.texi (Directory Variables): Document the change.

* doc/lispref/variables.texi (Directory Local Variables): Update
accordingly.

8 years ago* lisp/files-x.el (modify-dir-local-variable): Small rewrite
Artur Malabarba [Mon, 25 Jan 2016 16:56:08 +0000 (16:56 +0000)]
* lisp/files-x.el (modify-dir-local-variable): Small rewrite

Change a variable name to be more meaningful, and reorder some of
the code with no change in behaviour.

8 years ago* lisp/files.el (dir-locals-find-file): Refactor return values
Artur Malabarba [Mon, 25 Jan 2016 16:54:08 +0000 (16:54 +0000)]
* lisp/files.el (dir-locals-find-file): Refactor return values

Returning a cache remains unchanged, but the case of returning a
file (or pattern) is now changed to return the contaning
directory.

(dir-locals-read-from-file): Rename to `dir-locals-read-from-dir'
and make obsolete.
(dir-locals-read-from-dir): Simplify accordingly.
(hack-dir-local-variables): Simplify accordingly and rename a
variable.

8 years ago* lisp/textmodes/flyspell.el (flyspell--prev-meta-tab-binding):
Glenn Morris [Mon, 25 Jan 2016 23:31:04 +0000 (18:31 -0500)]
* lisp/textmodes/flyspell.el (flyspell--prev-meta-tab-binding):
Declare.

8 years ago* configure.ac (USE_CAIRO): Rename to more standard HAVE_CAIRO.
Glenn Morris [Mon, 25 Jan 2016 23:29:53 +0000 (18:29 -0500)]
* configure.ac (USE_CAIRO): Rename to more standard HAVE_CAIRO.

8 years ago* configure.ac (--with-cairo): Say it's experimental.
Glenn Morris [Mon, 25 Jan 2016 23:28:30 +0000 (18:28 -0500)]
* configure.ac (--with-cairo): Say it's experimental.

8 years ago; Spelling fix (American spelling)
Glenn Morris [Mon, 25 Jan 2016 23:26:42 +0000 (18:26 -0500)]
; Spelling fix (American spelling)

8 years ago; Spelling fixes (American spelling)
Glenn Morris [Mon, 25 Jan 2016 23:24:09 +0000 (18:24 -0500)]
; Spelling fixes (American spelling)

8 years ago* lisp/xwidget.el (xwidget-webkit-scroll-behavior):
Glenn Morris [Mon, 25 Jan 2016 23:19:34 +0000 (18:19 -0500)]
* lisp/xwidget.el (xwidget-webkit-scroll-behavior):
Rename using American spelling.  Update all uses.

8 years agoYet more xwidget doc fixes.
Glenn Morris [Mon, 25 Jan 2016 23:17:33 +0000 (18:17 -0500)]
Yet more xwidget doc fixes.

* lisp/xwidget.el (xwidget-webkit-scroll-behaviour)
(xwidget-insert, xwidget-webkit-browse-url)
(xwidget-webkit-scroll-up, xwidget-webkit-scroll-down)
(xwidget-webkit-scroll-forward, xwidget-webkit-scroll-backward)
(xwidget-webkit-insert-string, xwidget-webkit-show-named-element)
(xwidget-webkit-show-id-element)
(xwidget-webkit-show-id-or-named-element)
(xwidget-webkit-adjust-size, xwidget-webkit-current-url)
(xwidget-webkit-execute-script-rv)
(xwidget-webkit-copy-selection-as-kill, xwidget-get)
(xwidget-put):  Doc fixes.
(xwidget-webkit-insert-string, xwidget-webkit-show-named-element)
(xwidget-webkit-show-id-element)
(xwidget-webkit-show-id-or-named-element): Prompt fixes.

8 years ago; * lisp/net/nsm.el: Fix typo.
Mark Oteiza [Mon, 25 Jan 2016 22:45:27 +0000 (17:45 -0500)]
; * lisp/net/nsm.el: Fix typo.

8 years ago* lisp/gnus/gnus-art.el (gnus-blocked-images):
Ted Zlatanov [Mon, 25 Jan 2016 22:07:40 +0000 (22:07 +0000)]
* lisp/gnus/gnus-art.el (gnus-blocked-images):
Add explicit nil choice and tags.

8 years ago; * lisp/net/browse-url.el: Fix obvious typos in recent.
Glenn Morris [Mon, 25 Jan 2016 16:49:09 +0000 (08:49 -0800)]
; * lisp/net/browse-url.el: Fix obvious typos in recent.

8 years agoSpelling fixes
Paul Eggert [Mon, 25 Jan 2016 16:08:24 +0000 (08:08 -0800)]
Spelling fixes

8 years ago(font-lock-ensure-function): Fix bug#22399
Stefan Monnier [Mon, 25 Jan 2016 14:28:37 +0000 (09:28 -0500)]
(font-lock-ensure-function): Fix bug#22399

* lisp/font-lock.el (font-lock-ensure-function): Fix handling when
font-lock-mode is not enabled (bug#22399).

8 years agoExpunge "allow" + infinitive from source and doc, part 2.
Alan Mackenzie [Mon, 25 Jan 2016 12:35:15 +0000 (12:35 +0000)]
Expunge "allow" + infinitive from source and doc, part 2.

Do the same for "permit", "enable", "prevent", and (where appropriate)
"require".

doc/misc/reftex.texi:
doc/misc/url.texi:
lib/get-permissions.c:
lib/strftime.c:
lisp/org/org-element.el:
lisp/org/org-mobile.el:
lisp/textmodes/reftex-vars.el:
src/bidi.c:
src/emacs.c:
src/xdisp.c:
test/etags/c-src/emacs/src/lisp.h:

Expunge the likes of "This allows to do something" from the above files.

8 years ago* lisp/emacs-lisp/tabulated-list.el (tabulated-list-mode): Redundant line
Artur Malabarba [Mon, 25 Jan 2016 09:48:22 +0000 (09:48 +0000)]
* lisp/emacs-lisp/tabulated-list.el (tabulated-list-mode): Redundant line

`special-mode' is already read-only.

8 years ago* lisp/emacs-lisp/ert.el (ert--results-move): Change error to user-error
Artur Malabarba [Mon, 25 Jan 2016 08:54:34 +0000 (08:54 +0000)]
* lisp/emacs-lisp/ert.el (ert--results-move): Change error to user-error

8 years agoPort "$@" to OpenIndiana ksh93
Paul Eggert [Mon, 25 Jan 2016 01:27:52 +0000 (17:27 -0800)]
Port "$@" to OpenIndiana ksh93

In http://lists.gnu.org/archive/html/bug-autoconf/2015-12/msg00000.html
Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
(derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
bug in long-dead shells, so remove the workaround.
* admin/check-doc-strings, configure.ac, lib-src/rcs2log:
Use plain "$@" rather than ${1+"$@"}.

8 years ago* src/xwidget.c (Fxwidget_set_adjustment): Fix doc string quoting typo.
Paul Eggert [Mon, 25 Jan 2016 01:24:51 +0000 (17:24 -0800)]
* src/xwidget.c (Fxwidget_set_adjustment): Fix doc string quoting typo.

8 years agoImprove wording for SMB support
Paul Eggert [Mon, 25 Jan 2016 00:09:15 +0000 (16:09 -0800)]
Improve wording for SMB support

* doc/misc/tramp.texi (External methods): Improve and modernize
wording for discussion of smbclient.  There is no longer any
need to mention the laundry list of old MS Windows implementations
of SMB and CIFS, nor to mention CIFS.  Also, give a URL for Samba.

8 years agoMerge from gnulib
Paul Eggert [Sun, 24 Jan 2016 22:50:47 +0000 (14:50 -0800)]
Merge from gnulib

This incorporates:
2016-01-24 openat_proc_name: fix last '/' overwritten on OS/2 kLIBC
2016-01-24 closedir, dirfd, opendir: port to OpenSolaris 5.10
2016-01-15 detect utimes() correctly on OS/2 kLIBC
2016-01-15 openat_proc_name: port to OS/2 kLIBC
2016-01-14 stdint: check _INTPTR_T_DECLARED for intptr_t etc.
2016-01-14 opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
2016-01-14 dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
2016-01-14 binary-io: don't put fd in binary mode if a console on EMX
2016-01-14 sig2str: list all signals on FreeBSD >= 7
2016-01-13 acl-permissions: port to USE_ACL==0 platforms
2016-01-12 mktime: rename macro to avoid glibc clash
2016-01-12 Port "$@" to OpenIndiana ksh93
2016-01-12 Port Universal Time settings to strict POSIX
* build-aux/gitlog-to-changelog, build-aux/update-copyright:
* doc/misc/texinfo.tex, lib/acl-internal.c, lib/acl-internal.h:
* lib/binary-io.h, lib/dirent.in.h, lib/dirfd.c, lib/dup2.c:
* lib/fcntl.c, lib/fdopendir.c, lib/mktime.c, lib/openat-proc.c:
* lib/sig2str.h, lib/stdint.in.h, m4/dirfd.m4, m4/dup2.m4:
* m4/fcntl.m4, m4/utimes.m4:
Copy from gnulib.
* m4/gnulib-comp.m4: Regenerate.

8 years agoExpunge "allow" + infinitive without direct object from source and doc.
Alan Mackenzie [Sun, 24 Jan 2016 20:30:39 +0000 (20:30 +0000)]
Expunge "allow" + infinitive without direct object from source and doc.

Do the same for "permit", "enable", and "prevent".

* doc/emacs/mule.texi:
* doc/lispref/control.texi:
* doc/lispref/display.texi:
* doc/lispref/frames.texi:
* doc/lispref/functions.texi:
* doc/lispref/nonascii.texi:
* doc/lispref/streams.texi:
* doc/lispref/windows.texi:
* doc/misc/dbus.texi:
* doc/misc/eww.texi:
* doc/misc/flymake.texi:
* doc/misc/octave-mode.texi:
* doc/misc/org.texi:
* doc/misc/reftex.texi:
* doc/misc/tramp.texi:
* doc/misc/wisent.texi:
* etc/NEWS:
* lisp/autorevert.el:
* lisp/cedet/mode-local.el:
* lisp/cedet/semantic/senator.el:
* lisp/cedet/semantic/wisent.el:
* lisp/dos-fns.el:
* lisp/frameset.el:
* lisp/gnus/gnus-agent.el:
* lisp/gnus/mm-util.el:
* lisp/international/characters.el:
* lisp/ldefs-boot.el:
* lisp/mail/mailclient.el:
* lisp/man.el:
* lisp/mh-e/mh-search.el:
* lisp/net/tramp-cmds.el:
* lisp/net/tramp-gvfs.el:
* lisp/org/org-crypt.el:
* lisp/org/org-element.el:
* lisp/org/org-feed.el:
* lisp/org/org.el:
* lisp/org/ox-ascii.el:
* lisp/org/ox-icalendar.el:
* lisp/org/ox-publish.el:
* lisp/org/ox.el:
* lisp/play/gamegrid.el:
* lisp/play/gomoku.el:
* lisp/progmodes/antlr-mode.el:
* lisp/progmodes/python.el:
* lisp/progmodes/vhdl-mode.el:
* lisp/strokes.el:
* lisp/textmodes/ispell.el:
* lisp/tree-widget.el:
* lisp/vc/pcvs.el:
* lisp/window.el:
* src/lisp.h:
* src/w32.c:
* src/w32heap.c:
* src/w32term.c:
* src/window.c:
* src/xfaces.c:

Replace solecisms like "This allow to do something" with a correct
alternative, such as "This allow you to do something", "This allows
something to be done" or "This allows the doing of something".

8 years agoMerge branch 'emacs-25' of git.sv.gnu.org:/srv/git/emacs into emacs-25
l3thal [Sun, 24 Jan 2016 20:20:31 +0000 (15:20 -0500)]
Merge branch 'emacs-25' of git.sv.gnu.org:/srv/git/emacs into emacs-25

8 years agoAdd NEWS entry for asynchronous reconnect in ERC
Kelvin White [Sun, 24 Jan 2016 20:19:08 +0000 (15:19 -0500)]
Add NEWS entry for asynchronous reconnect in ERC

8 years agoAdd NEWS entry for asynchronous reconnect in ERC
l3thal [Sun, 24 Jan 2016 20:19:08 +0000 (15:19 -0500)]
Add NEWS entry for asynchronous reconnect in ERC

8 years agobrowse-url.el: Add 'google-chrome' to supported browsers.
Kelvin White [Sun, 24 Jan 2016 19:37:38 +0000 (14:37 -0500)]
browse-url.el: Add 'google-chrome' to supported browsers.

8 years agoPort Tramp manual to latest Texinfo
Paul Eggert [Sun, 24 Jan 2016 19:40:26 +0000 (11:40 -0800)]
Port Tramp manual to latest Texinfo

Otherwise, 'make pdf' did not work (Bug#22416).
* doc/misc/tramp.texi (xxx, yyy): Remove macros.
(trampfn): Specialize to the case where METHOD is nonempty.
The 2nd argument is now user@host, not 2nd user and 3rd host args.
All uses changed.
(trampf): New macro.

8 years ago* eww.el (eww-render): Protect against empty content-types.
Lars Ingebrigtsen [Sun, 24 Jan 2016 16:50:27 +0000 (17:50 +0100)]
* eww.el (eww-render): Protect against empty content-types.

8 years agoauthors.el updates
Nicolas Petton [Sun, 24 Jan 2016 12:30:08 +0000 (13:30 +0100)]
authors.el updates

* admin/authors.el (authors-ignored-files, authors-renamed-files-alist):
  Additions.

8 years ago; ChangeLog fixes
Nicolas Petton [Sun, 24 Jan 2016 11:45:29 +0000 (12:45 +0100)]
; ChangeLog fixes

* ChangeLog.2:
* doc/emacs/ChangeLog.1:
* lisp/ChangeLog.17: Fix ChangeLog entries

8 years ago; Auto-commit of loaddefs files.
Glenn Morris [Sun, 24 Jan 2016 12:23:33 +0000 (07:23 -0500)]
; Auto-commit of loaddefs files.

8 years agoRename xref-query-replace to xref-query-replace-in-results
Dmitry Gutov [Sun, 24 Jan 2016 02:17:52 +0000 (05:17 +0300)]
Rename xref-query-replace to xref-query-replace-in-results

* lisp/progmodes/xref.el(xref-query-replace):
Rename to xref-query-replace-in-results.
(http://lists.gnu.org/archive/html/emacs-devel/2016-01/msg01240.html)

* lisp/progmodes/xref.el (xref--xref-buffer-mode-map):
* lisp/dired-aux.el (dired-do-find-regexp-and-replace):
* doc/emacs/dired.texi (Operating on Files):
* doc/emacs/maintaining.texi (Xref Commands)
(Identifier Search, Identifier Search): Update accordingly.

8 years agoUpdate cl-defgeneric and cl-defmethod docstrings
Dmitry Gutov [Sun, 24 Jan 2016 00:35:39 +0000 (03:35 +0300)]
Update cl-defgeneric and cl-defmethod docstrings

* lisp/emacs-lisp/cl-generic.el: Remove outdated TODO item.
(cl-defgeneric): Rename BODY to DEFAULT-BODY.
(cl-defmethod): Mention that multiple dispatch arguments are
allowed.  Document supported types.  (Bug#22336)

8 years agoComment out next-error-function integration in xref
Dmitry Gutov [Sat, 23 Jan 2016 09:09:55 +0000 (12:09 +0300)]
Comment out next-error-function integration in xref

* lisp/progmodes/xref.el (xref--xref-buffer-mode):
Comment out next-error-function integration
(http://lists.gnu.org/archive/html/emacs-devel/2016-01/msg01286.html).

8 years agoCorrect a use of "which" in intro.texi
John Wiegley [Sat, 23 Jan 2016 19:55:31 +0000 (11:55 -0800)]
Correct a use of "which" in intro.texi

8 years agoDistinguish the two meanings of Java's keyword "default". Fixes bug #22358.
Alan Mackenzie [Sat, 23 Jan 2016 19:38:49 +0000 (19:38 +0000)]
Distinguish the two meanings of Java's keyword "default".  Fixes bug #22358.

* lisp/progmodes/cc-engine.el (c-guess-basic-syntax CASE 14): Check the
context of case labels (including "default") more rigorously.
(c-guess-basic-syntax CASE 15): Consequential amendment.

* lisp/progmodes/cc-langs.el (c-modifier-kwds): Add "default" to Java's value.

8 years agoDon't operate on menu bar of nonexistent frame
Oscar Fuentes [Sat, 23 Jan 2016 13:11:29 +0000 (14:11 +0100)]
Don't operate on menu bar of nonexistent frame

* src/xfns.c (Fx_hide_tip) [USE_LUCID]: Check that the current frame
is valid before redisplaying its menu. Fixes bug#22438.

8 years agoUnbreak the GNUstep build.
Anders Lindgren [Sat, 23 Jan 2016 13:13:20 +0000 (14:13 +0100)]
Unbreak the GNUstep build.

* src/nsterm.m ([EmacsBell init]): In GNUstep, don't use the
predefined "caution" image. Add trace.
(x_set_window_size): Remove unused variables `cols' and `rows'.
(ns_draw_fringe_bitmap): Exclude assignment of `fromRect' when
GNUstep is used.
([EmacsView updateFrameSize:]): Remove unused variable `win'.
([EmacsWindow zoom:]): Remove unused variable `f'.

8 years ago; Auto-commit of loaddefs files.
Glenn Morris [Sat, 23 Jan 2016 12:22:26 +0000 (07:22 -0500)]
; Auto-commit of loaddefs files.

8 years ago; Another minor change in Dired docs
Eli Zaretskii [Sat, 23 Jan 2016 11:46:22 +0000 (13:46 +0200)]
; Another minor change in Dired docs

* doc/emacs/dired.texi (Operating on Files): Minor tweak in the
documentation of 'dired-do-find-regexp'.  Suggested by Dmitry Gutov
<dgutov@yandex.ru>.

8 years agoImprove documentation of 'pcase'
Eli Zaretskii [Sat, 23 Jan 2016 10:21:07 +0000 (12:21 +0200)]
Improve documentation of 'pcase'

* doc/lispref/control.texi (Pattern matching case statement):
Reorganize, expand, and improve wording.

* etc/NEWS: Mention that 'pcase' changes are documented.

Co-authored-by: John Wiegley <johnw@gnu.org>
Co-authored-by: Michael Heerdegen <michael_heerdegen@web.de>
8 years ago* etc/NEWS: Say that Cairo is experimental.
Paul Eggert [Sat, 23 Jan 2016 09:42:33 +0000 (01:42 -0800)]
* etc/NEWS: Say that Cairo is experimental.

8 years agoReport error for PNG under Cairo
Paul Eggert [Sat, 23 Jan 2016 09:40:29 +0000 (01:40 -0800)]
Report error for PNG under Cairo

* src/image.c (lookup_rgb_color): Signal a file error instead
of dumping core when mishandling an image.

8 years agoDelete a spurious backquote (tiny change)
Arash Esbati [Sun, 17 Jan 2016 10:28:58 +0000 (11:28 +0100)]
Delete a spurious backquote (tiny change)

* lisp/textmodes/reftex-ref.el (reftex-label): Delete a
spurious backquote which raises an error with emacs 25.

8 years agoPacify --enable-gcc-warnings --with-cairo
Paul Eggert [Sat, 23 Jan 2016 09:02:00 +0000 (01:02 -0800)]
Pacify --enable-gcc-warnings --with-cairo

Problem reported by Alexander Kuleshov in:
http://lists.gnu.org/archive/html/emacs-devel/2016-01/msg01289.html
* src/gtkutil.c (xg_get_page_setup):
Use switch rather than if-then-else.
* src/image.c (COLOR_TABLE_SUPPORT):
Define directly rather than via #define and optional later #undef.
(lookup_rgb_color) [USE_CAIRO && ENABLE_CHECKING]:
Crash when the pixel is undefined, as there is a genuine bug
here (Bug#22442).
* src/image.c (tiff_load, gif_load, svg_load_image)
(x_kill_gs_process) [USE_CAIRO]:
* src/xterm.c (x_draw_fringe_bitmap) [USE_CAIRO]:
Omit unused locals, or move them to where they’re needed.
(x_clear_area1): Now ATTRIBUTE_UNUSED.

8 years agoUpdate documentation for Dired search and replace
Eli Zaretskii [Sat, 23 Jan 2016 06:53:35 +0000 (08:53 +0200)]
Update documentation for Dired search and replace

* doc/emacs/dired.texi (Operating on Files): Update descriptions
of 'A' and 'Q' now bound to 'dired-do-find-regexp' and
'dired-do-find-regexp-and-replace'.

* etc/NEWS: Mention xref-related changes in Dired.

8 years ago; Improve commentary in sysdep.c
Eli Zaretskii [Sat, 23 Jan 2016 06:27:16 +0000 (08:27 +0200)]
; Improve commentary in sysdep.c

* src/sysdep.c: Explain in a comment why on Windows we don't load
GnuTLS during startup for calling gnutls_rnd.  (Bug#22202)

8 years agoPort recent xdisp.c fix to picky C compilers
Paul Eggert [Fri, 22 Jan 2016 23:27:55 +0000 (15:27 -0800)]
Port recent xdisp.c fix to picky C compilers

* src/xdisp.c (dump_glyph): Redo the call to fprintf to avoid
putting #if inside the arguments to a standard function, which
the C standard says has undefined behavior.

8 years agoPrevent spurious recognition of K&R argument declarations. Fixes bug #2203
Alan Mackenzie [Fri, 22 Jan 2016 22:31:23 +0000 (22:31 +0000)]
Prevent spurious recognition of K&R argument declarations.  Fixes bug #2203

* cc-engine.el (c-forward-declarator): New function.
(c-in-knr-argdecl): Before recognizing a K&R argument declaration, check it is
contained in the preceding arg list.

* cc-fonts.el (c-font-lock-declarators): Use the new function
`c-forward-declarator' in place of inline code.

8 years ago; Minor tweaks in etc/NEWS
Eli Zaretskii [Fri, 22 Jan 2016 21:27:13 +0000 (23:27 +0200)]
; Minor tweaks in etc/NEWS

8 years agoFix the build with --enable-checking=glyphs
Eli Zaretskii [Fri, 22 Jan 2016 21:14:01 +0000 (23:14 +0200)]
Fix the build with --enable-checking=glyphs

* src/xdisp.c (dump_glyph): Don't refer to glyph->u.xwidget in a
build without xwidget support.

8 years agoDocument cl-generic.el
Eli Zaretskii [Fri, 22 Jan 2016 21:06:22 +0000 (23:06 +0200)]
Document cl-generic.el

* doc/lispref/functions.texi (Generic Functions): New section.
(Bug#22336)
(Functions): Update the chapter menu.
* doc/lispref/elisp.texi: Update the master menu.

8 years agoxwidgets style cleanup
Paul Eggert [Fri, 22 Jan 2016 19:15:05 +0000 (11:15 -0800)]
xwidgets style cleanup

Adjust the newly-added Xwidgets code so that it uses a more-typical
Emacs style.  This should not affect behavior, except that in
a few places it adds runtime checks that Lisp arguments are of
the proper type, and in one place it uses more-precise arithmetic.
* src/buffer.c, src/dispnew.c, src/emacs.c, src/emacsgtkfixed.c:
* src/emacs.c, src/print.c, src/window.c, src/xdisp.c, src/xterm.c:
Include xwidget.h unconditionally.
* src/buffer.c (Fkill_buffer):
* src/dispnew.c (update_window):
* src/emacs.c (main):
* src/print.c (print_object):
* src/window.c (Fdelete_window_internal):
* src/xdisp.c (handle_single_display_spec, push_it, pop_it)
(get_next_element, set_iterator_to_next, next_element_from_xwidget)
(dump_glyph, calc_pixel_width_or_height, BUILD_GLYPH_STRINGS_XW)
(BUILD_GLYPH_STRINGS, x_produce_glyphs, get_window_cursor_type):
* src/xterm.c (x_draw_glyph_string, x_draw_bar_cursor):
Call xwidget functions and macros without worrying about
HAVE_XWIDGETS when the code is a no-op on non-xwidget
platforms.
* src/dispextern.h (XWIDGET_GLYPH, struct glyph_string.xwidget)
(IT_XWIDGET, GET_FROM_XWIDGET, struct it.u.xwidget)
(struct it.xwidget):
* src/lisp.h (PVEC_XWIDGET, PVEC_XWIDGET_VIEW):
Always define.
* src/emacsgtkfixed.h: Omit unnecessary comment.
* src/keyboard.c: Fix spacing.
* src/xdisp.c (BUILD_XWIDGET_GLYPH_STRING, produce_xwidget_glyph):
Define to be a no-op if not HAVE_XWIDGETS.
* src/xwidget.c: Include xwidget.h first (after config.h)
to make sure that it can stand by itself.
(Fmake_xwidget, Fxwidget_webkit_execute_script):
Fix typo in doc string.
(Fmake_xwidget): Check type of args.
(Fmake_xwidget, offscreen_damage_event)
(webkit_document_load_finished_cb, webkit_download_cb)
(webkit_new_window_policy_decision_requested_cb)
(webkit_navigation_policy_decision_requested_cb)
(xwidget_osr_draw_cb, xwidget_osr_event_forward)
(xwidget_osr_event_set_embedder, xwidget_init_view):
Omit unnecessary casts.
* src/xwidget.c (Fmake_xwidget, xwidget_hidden)
(xwidget_show_view, xwidget_hide_view)
(x_draw_xwidget_glyph_string, xwidget_start_redisplay, xwidget_touch)
(xwidget_touched):
* src/xwidget.h (struct xwidget.kill_without_query)
(struct xwidget_view.redisplayed, struct xwidget_view.hidden):
Use bool for boolean.
* src/xwidget.c (store_xwidget_event_string, Fxwidget_size_request):
Simplify by using list functions.
(WEBKIT_FN_INIT): Omit unnecessary test for nil.
(Fxwidget_resize): Check type of integer args
before doing any work.  Check that they are nonnegative.
(Fxwidget_set_adjustment): Check type of integer arg.
Avoid redundant call to gtk_scrolled_window_get_vadjustment.
Simplify.  Use double, not float.
(Fxwidget_info, Fxwidget_view_info): Simplify by using CALLN.
(valid_xwidget_spec_p): Simplify.
(xwidget_spec_value): Omit unused arg FOUND.  All callers changed.
* src/xwidget.h: Include lisp.h first, so that includers do
not need to worry about doing that before including this file.
Make this .h file safe to include even on non-HAVE_XWIDGETS
configurations, to simplify the includers.
(x_draw_xwidget_glyph_string, syms_of_xwidget, valid_xwidget_spec_p)
(xwidget_end_redisplay, lookup_xwidget)
(xwidget_view_delete_all_in_window, kill_buffer_xwidgets):
Now a no-op if !HAVE_XWIDGETS, to simplify callers.
(struct glyph_matrix, struct glyph_string, struct xwidget)
(struct xwidget_view, struct window):
New forward or incomplete decls, so that includers need not
assume the corresponding .h files are already included, or that
HAVE_XWIDGETS is defined.
(struct xwidget_type, xwidget_from_id): Remove; unused.

8 years agoBackport kqueue integration from master
Michael Albinus [Fri, 22 Jan 2016 18:56:09 +0000 (19:56 +0100)]
Backport kqueue integration from master

* configure.ac (--with-file-notification): Add kqueue.
(top): Remove special test for "${HAVE_NS}" and
${with_file_notification}, this is handled inside gfilenotify
tests.  Add kqueue tests.  Use NOTIFY_CFLAGS and NOTIFY_LIBS
instead of library specific variables.  Add error message for
gfile on Nextstep.

* doc/lispref/os.texi (File Notifications): Add kqueue as backend.
Fix some glitches in the example.

* etc/NEWS: Mention kqueue.

* lisp/filenotify.el (file-notify--library)
(file-notify-descriptors, file-notify-callback)
(file-notify-add-watch, file-notify-rm-watch)
(file-notify-valid-p): Add kqueue support.
(file-notify--rm-descriptor): Remove WHAT arg.

* src/Makefile.in: Use NOTIFY_CFLAGS and NOTIFY_LIBS.

* src/emacs.c (main): Call globals_of_kqueue and syms_of_kqueue.

* src/inotify.c (inotifyevent_to_event): Extract file name from
watch_object if the event doesn't provide it.
(Finotify_add_watch): Add file name to watch_object.

* src/keyboard.c (make_lispy_event): Check also for HAVE_KQUEUE.

* src/kqueue.c: New file.

* src/lisp.h: Declare extern globals_of_kqueue and syms_of_kqueue.

* test/automated/file-notify-tests.el
(file-notify--test-expected-events): Remove.
(file-notify--test-cleanup): Do not set that variable.
(file-notify--test-timeout) Use different timeouts for
different libraries.
(file-notify--test-library): New defun.
(file-notify--test-event-test): Make stronger checks.
(file-notify--test-with-events): EVENTS can also be a list of
lists.  Flush outstanding events before running the body.
Make timeout heuristically depend on the number of events.
(file-notify-test01-add-watch, file-notify-test02-events)
(file-notify-test04-file-validity, file-notify-test05-dir-validity):
Rewrite in order to call file monitors but directory monitors.
(file-notify-test02-events, file-notify-test04-file-validity): Do
not skip cygwin tests.  Add additional test for file creation.
Adapt expected result for different backends.
(file-notify-test03-autorevert): Some of the tests don't work for
w32notify.
(file-notify-test06-many-events): New test.

8 years agoFurther corrections to the pcase docstring
John Wiegley [Fri, 22 Jan 2016 17:55:52 +0000 (09:55 -0800)]
Further corrections to the pcase docstring

8 years ago* doc/emacs/anti.texi (Antinews): Rewrite for Emacs 25.
Eli Zaretskii [Fri, 22 Jan 2016 10:20:11 +0000 (12:20 +0200)]
* doc/emacs/anti.texi (Antinews): Rewrite for Emacs 25.

8 years agoIn xref-collect-references, force backends to respect the 'dir' arg
Stephen Leake [Fri, 22 Jan 2016 07:53:05 +0000 (01:53 -0600)]
In xref-collect-references, force backends to respect the 'dir' arg

* lisp/progmodes/xref.el (xref-collect-references): Force symref backends
to use `default-directory'.

8 years agoMinor correction to pcase docstring
John Wiegley [Fri, 22 Jan 2016 07:28:50 +0000 (23:28 -0800)]
Minor correction to pcase docstring

8 years agoWrite a new docstring for the pcase macro
John Wiegley [Fri, 22 Jan 2016 06:07:19 +0000 (22:07 -0800)]
Write a new docstring for the pcase macro

* lisp/emacs-lisp/pcase.el (pcase): Write a new docstring.

8 years agoAvoid byte-compiler warning in todo-mode (bug#21953)
Stephen Berman [Thu, 21 Jan 2016 11:01:12 +0000 (12:01 +0100)]
Avoid byte-compiler warning in todo-mode (bug#21953)

* todo-mode.el (todo-convert-legacy-files): Add limit argument
to looking-back to comply with advertised-calling-convention.

8 years agoFix desktop support in todo-mode and doc-view (bug#22377)
Stephen Berman [Thu, 21 Jan 2016 10:19:21 +0000 (11:19 +0100)]
Fix desktop support in todo-mode and doc-view (bug#22377)

* lisp/calendar/todo-mode.el (todo-restore-desktop-buffer):
* lisp/doc-view.el (doc-view-restore-desktop-buffer): Return current buffer.

* lisp/calendar/todo-mode.el (todo-modes-set-2):
* lisp/doc-view.el (doc-view-mode): Set desktop-save-buffer unconditionally.

8 years agoNo need to configure gobject-introspection
Paul Eggert [Wed, 20 Jan 2016 23:28:30 +0000 (15:28 -0800)]
No need to configure gobject-introspection

It wasn’t needed for the recently-installed xwidget_mvp code; see:
http://lists.gnu.org/archive/html/emacs-devel/2016-01/msg01154.html
* configure.ac (DOES_XWIDGETS_USE_GIR, GIR_REQUIRED, GIR_MODULES):
(HAVE_GIR):
* src/Makefile.in (GIR_LIBS, GIR_CFLAGS):
Remove.  All uses removed.
* configure.ac (emacs_config_features): Don’t worry about GIR.

8 years agoDon’t export C symbols not used elsewhere
Paul Eggert [Wed, 20 Jan 2016 22:55:09 +0000 (14:55 -0800)]
Don’t export C symbols not used elsewhere

These were recently added, mostly as part of xwidget code.
* src/emacsgtkfixed.c (emacs_fixed_get_type): Now static.
(EMACS_FIXED, EMACS_FIXED_GET_CLASS):
Now static functions here, not macros in emacsgtkfixed.h.
* src/emacsgtkfixed.h (EMACS_TYPE_FIXED):
Remove.  All uses replaced by definiens.
(EMACS_FIXED, EMACS_FIXED_GET_CLASS):
Remove; these are now static functions in emacsgtkfixed.c.
(EMACS_FIXED_CLASS, EMACS_IS_FIXED, EMACS_IS_FIXED_CLASS):
Remove; unused.
(emacs_fixed_get_type): Remove decl; no longer extern.
* src/xwidget.c (offscreen_damage_event)
(webkit_mime_type_policy_typedecision_requested_cb)
(webkit_new_window_policy_decision_requested_cb)
(webkit_navigation_policy_decision_requested_cb)
(xwidget_spec_value, xwidget_view_lookup)
(xwidget_start_redisplay, xwidget_touch):
Now static.
* src/xwidget.h (xwidget_start_redisplay, xwidget_touch):
Remove decls.

8 years agoSupport squiggly heredocs in ruby-mode
Dmitry Gutov [Wed, 20 Jan 2016 21:26:05 +0000 (00:26 +0300)]
Support squiggly heredocs in ruby-mode

* lisp/progmodes/ruby-mode.el (ruby-here-doc-beg-re):
Support squiggly heredocs added in Ruby 2.3.

* test/indent/ruby.rb: Add squiggly example.

8 years ago* configure.ac (emacs_config_features): Remove WEBKIT.
Glenn Morris [Wed, 20 Jan 2016 19:50:02 +0000 (14:50 -0500)]
* configure.ac (emacs_config_features): Remove WEBKIT.

8 years agoPort to platforms with gtk3 but not webkitgtk3
Paul Eggert [Wed, 20 Jan 2016 19:06:01 +0000 (11:06 -0800)]
Port to platforms with gtk3 but not webkitgtk3

I ran into this problem on my Fedora 23 installation;
Emacs configured but did not build when --with-xwidgets was specified.
* configure.ac (HAVE_WEBKIT, HAVE_GIR): Omit unnecessary initializations.
(DOES_XWIDGETS_USE_GIR): New var.
If --with-xwidgets is specified, report an error if not
doable, to be consistent with the other --with options.
Require webkitgtk3 to use Xwidgets, as the Xwidgets code does
not work at all without webkitgtk3.  Simplify use of
EMACS_CHECK_MODULES.  Output message about gobject
introspection only if xwidgets are used.
* etc/NEWS: Users need webkitgtk3, not merely webkit.
* src/xwidget.c (syms_of_xwidget): Don’t worry about HAVE_WEBKIT_OSR,
since this file is no longer compiled if webkitgtk3 is not available.

8 years agoFix doc string of 'isearch-search-fun-function'
Eli Zaretskii [Wed, 20 Jan 2016 13:09:09 +0000 (15:09 +0200)]
Fix doc string of 'isearch-search-fun-function'

* lisp/isearch.el (isearch-search-fun-function)
(isearch-search-string): Doc fixes.  (Bug#22411)

8 years ago* lisp/xwidget.el: Nitpicks
Stefan Monnier [Wed, 20 Jan 2016 01:53:10 +0000 (20:53 -0500)]
* lisp/xwidget.el: Nitpicks

* lisp/xwidget.el (xwidget-log, xwidget-webkit-callback):
Use with-current-buffer rather than save-excursion + set-buffer.

8 years agoDon't hard-code 1 as point-min.
Glenn Morris [Wed, 20 Jan 2016 00:09:45 +0000 (19:09 -0500)]
Don't hard-code 1 as point-min.

* lisp/image-mode.el (image-display-size):
* lisp/xwidget.el (xwidget-webkit-last-session)
(xwidget-webkit-current-session): Don't hard-code 1 as point-min.

8 years ago; * lisp/xwidget.el: Spelling fixes.
Glenn Morris [Wed, 20 Jan 2016 00:06:32 +0000 (19:06 -0500)]
; * lisp/xwidget.el: Spelling fixes.

8 years ago* lisp/xwidget.el: Add declarations to silence non-xwidget compilation.
Glenn Morris [Tue, 19 Jan 2016 23:44:29 +0000 (18:44 -0500)]
* lisp/xwidget.el: Add declarations to silence non-xwidget compilation.

8 years agoTrivial doc copyedits.
Glenn Morris [Tue, 19 Jan 2016 23:42:47 +0000 (18:42 -0500)]
Trivial doc copyedits.

* src/xwidget.c (Fmake_xwidget, Fget_buffer_xwidgets)
(Fxwidget_webkit_get_title, Fxwidget_resize)
(Fxwidget_set_adjustment, Fxwidgetp, Fxwidget_view_p)
(Fxwidget_info, Fxwidget_view_lookup)
(Fset_xwidget_query_on_exit_flag): Trivial doc copyedits.

8 years agoAvoid advising image-display-size for xwidgets.
Glenn Morris [Tue, 19 Jan 2016 23:13:07 +0000 (18:13 -0500)]
Avoid advising image-display-size for xwidgets.

* lisp/xwidget.el (xwidget-image-display-size): Remove.
(image-display-size): Remove advice.
* lisp/image-mode.el (xwidget-info, xwidget-at): Declare.
(image-display-size): Incorporate xwidget code directly.

8 years agoAvoid breaking non-xwidget Emacs that happen to load xwidget.el.
Glenn Morris [Tue, 19 Jan 2016 23:06:30 +0000 (18:06 -0500)]
Avoid breaking non-xwidget Emacs that happen to load xwidget.el.

* lisp/xwidget.el (window-configuration-change-hook)
(kill-buffer-query-functions): Only modify these hooks if
compiled with xwidget support.

8 years ago* lisp/xwidget.el (xwidget-webkit-scroll-behaviour): Fix custom spec.
Glenn Morris [Tue, 19 Jan 2016 23:03:37 +0000 (18:03 -0500)]
* lisp/xwidget.el (xwidget-webkit-scroll-behaviour): Fix custom spec.

8 years ago* configure.ac (WEBKIT, GIR, CAIRO): Use EMACS_CHECK_MODULES, not PKG_.
Glenn Morris [Tue, 19 Jan 2016 22:51:32 +0000 (17:51 -0500)]
* configure.ac (WEBKIT, GIR, CAIRO): Use EMACS_CHECK_MODULES, not PKG_.

8 years ago* configure.ac (emacs_config_features): Add XWIDGETS, WEBKIT, GIR.
Glenn Morris [Tue, 19 Jan 2016 22:49:40 +0000 (17:49 -0500)]
* configure.ac (emacs_config_features): Add XWIDGETS, WEBKIT, GIR.

8 years ago* configure.ac (HAVE_WEBKIT_OSR): Remove broken, duplicated gtk3 test.
Glenn Morris [Tue, 19 Jan 2016 22:48:35 +0000 (17:48 -0500)]
* configure.ac (HAVE_WEBKIT_OSR): Remove broken, duplicated gtk3 test.

8 years ago; * etc/NEWS: xwidgets isn't documented.
Glenn Morris [Tue, 19 Jan 2016 22:32:23 +0000 (17:32 -0500)]
; * etc/NEWS: xwidgets isn't documented.

8 years ago* lisp/gnus/nnir.el (nnir-request-update-mark):
Katsumi Yamaoka [Tue, 19 Jan 2016 22:10:09 +0000 (22:10 +0000)]
* lisp/gnus/nnir.el (nnir-request-update-mark):
Default to the original mark.
cf. <http://thread.gmane.org/gmane.emacs.gnus.general/86583>
and <http://thread.gmane.org/gmane.emacs.gnus.general/86640>

8 years ago* lisp/xwidget.el (report-xwidget-bug): Remove.
Glenn Morris [Tue, 19 Jan 2016 21:02:18 +0000 (16:02 -0500)]
* lisp/xwidget.el (report-xwidget-bug): Remove.

(top-level): No longer require reporter.

8 years ago; Add 2016 to copyright years of new files.
Glenn Morris [Tue, 19 Jan 2016 21:00:34 +0000 (16:00 -0500)]
; Add 2016 to copyright years of new files.

8 years agoSupport for the new Xwidget feature.
Joakim Verona [Tue, 19 Jan 2016 19:27:12 +0000 (20:27 +0100)]
Support for the new Xwidget feature.

* configure.ac:
(HAVE_XWIDGETS, WIDGET_OBJ, EMACS_CONFIG_FEATURES):
* xterm.c (x_draw_glyph_string, x_draw_bar_cursor):
* xdisp.c:
(handle_display_spec, handle_single_display_spec, push_it)
(pop_it, set_iterator_to_next, dump_glyph)
(calc_pixel_width_or_height, fill_xwidget_glyph_string)
(BUILD_XWIDGET_GLYPH_STRING, BUILD_GLYPH_STRINGS)
(produce_xwidget_glyph, x_produce_glyphs)
(get_window_cursor_type):
* window.c (Fdelete_window_internal):
* termhooks.h (e):
* print.c (print_object):
* lisp.h (ptrdiff_t):
* keyboard.c (kbd_buffer_get_event, make_lispy_event)
(syms_of_keyboard):
* emacs.c (main):
* dispnew.c (update_window, scrolling_window):
* dispextern.h (g, i):
* Makefile.in (XWIDGETS_OBJ, WEBKIT_CFLAGS, WEBKIT_LIBS)
(GIR_LIBS, ALL_CFLAGS, base_obj, LIBES):
* keyboard.c (kbd_buffer_get_event):
* emacsgtkfixed.c (emacs_fixed_gtk_widget_size_allocate)
(emacs_fixed_class_init): Add case for an xwidget view.

* xwidget.c, xwidget.h, xwidget.el: New files for xwidgets

Co-authored-by: Grégoire Jadi <daimrod@gmail.com>
Various improvements to the Xwidget feature.
* xwidgets.c:
* emacsgtkfixed.c:
* xwidget.el:

8 years agoImprove documentation of 'alist-get'
Eli Zaretskii [Tue, 19 Jan 2016 19:05:27 +0000 (21:05 +0200)]
Improve documentation of 'alist-get'

* doc/lispref/variables.texi (Setting Generalized Variables): Add
'alist-get' to the list of functions that can appear in PLACE
argument of 'setf'.

8 years ago; * etc/NEWS: No need to document 'system-name'.
Shakthi Kannan [Tue, 19 Jan 2016 18:36:33 +0000 (20:36 +0200)]
; * etc/NEWS: No need to document 'system-name'.

8 years agoMinor copyedits of doc/emacs/maintaining.texi
Eli Zaretskii [Tue, 19 Jan 2016 17:31:05 +0000 (19:31 +0200)]
Minor copyedits of doc/emacs/maintaining.texi

* doc/emacs/maintaining.texi (List Identifiers): More accurate
description of "C-M-i" wrt tags tables.
(Tags Tables): Move the definition of "tag" to a footnote.

8 years agoUnbreak the Cygwin-w32 build
Eli Zaretskii [Tue, 19 Jan 2016 16:11:04 +0000 (18:11 +0200)]
Unbreak the Cygwin-w32 build

* src/w32fns.c (globals_of_w32fns): Move the initialization of
resetstkoflw into a part that isn't compiled on Cygwin.
(Bug#22403)

8 years ago* shr.el (shr-table-body): Allow tables to have text children.
Lars Magne Ingebrigtsen [Tue, 19 Jan 2016 13:16:34 +0000 (14:16 +0100)]
* shr.el (shr-table-body): Allow tables to have text children.

8 years agoCope with multiple overlapping faces.
Phillip Lord [Sun, 17 Jan 2016 22:03:10 +0000 (22:03 +0000)]
Cope with multiple overlapping faces.

* lisp/htmlfontify.el (hfy-face-to-style-i): Treat inheritance right to
  left.
  (hfy-face-resolve-face): Handle font specification as well as font
  name. Documentation update. (Bug#21990)

8 years agoFix spurious escapes in describe-input-method
Paul Eggert [Tue, 19 Jan 2016 07:09:15 +0000 (23:09 -0800)]
Fix spurious escapes in describe-input-method

Problem reported by Vincent Belaïche (Bug#22309).
* lisp/international/mule-cmds.el (describe-language-environment):
* lisp/international/quail.el (quail-help):
Apply substitute-command-keys to doc strings before displaying them.

8 years agoMinor improvements to (random t) documentation
Paul Eggert [Tue, 19 Jan 2016 05:31:09 +0000 (21:31 -0800)]
Minor improvements to (random t) documentation

* doc/lispref/numbers.texi (Random Numbers):
* src/fns.c (Frandom):
Omit unnecessary details about randomness fallback.
Say that it is a fallback.

8 years ago; Fix a typo
Dmitry Gutov [Tue, 19 Jan 2016 05:05:23 +0000 (08:05 +0300)]
; Fix a typo

8 years agoRename methods in Ruby etags example file
Dmitry Gutov [Tue, 19 Jan 2016 05:03:41 +0000 (08:03 +0300)]
Rename methods in Ruby etags example file

* test/etags/ruby-src/test.rb: Rename the example methods to
correspond to the common terminology used in Ruby.
* test/etags/CTAGS.good:
* test/etags/ETAGS.good_1:
* test/etags/ETAGS.good_2:
* test/etags/ETAGS.good_3:
* test/etags/ETAGS.good_4:
* test/etags/ETAGS.good_5:
* test/etags/ETAGS.good_6: Adjust accordingly.

8 years agoPropertize backtick in 'def `(abc)' as symbol constituent
Dmitry Gutov [Tue, 19 Jan 2016 04:58:46 +0000 (07:58 +0300)]
Propertize backtick in 'def `(abc)' as symbol constituent

* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize):
Propertize backtick in 'def `(abc)' as symbol constituent.
(ruby-syntax-propertize-function):
Rename to ruby-syntax-propertize.

8 years agoFix scrolling under scroll-preserve-screen-position on TTY
Eli Zaretskii [Mon, 18 Jan 2016 19:53:34 +0000 (21:53 +0200)]
Fix scrolling under scroll-preserve-screen-position on TTY

* src/window.c (window_scroll_line_based): When setting point to
preserve screen coordinates, don't let cursor enter either of the
two scroll margins.  (Bug#22395)