summaryrefslogtreecommitdiff
path: root/doc
Commit message (Collapse)AuthorAgeFilesLines
* Add file-local-nameMichael Albinus2016-11-201-8/+8
| | | | | | | | | | | | | | | | | | | * doc/lispref/files.texi (Magic File Names): Add `file-local-name'. (Unique File Names): Use it. * etc/NEWS: Mention `file-local-name'. * lisp/files.el (file-local-name): New defun. (file-expand-wildcards): * lisp/eshell/em-tramp.el (eshell/su, eshell/sudo): * lisp/eshell/esh-ext.el (eshell-remote-command): * lisp/eshell/esh-proc.el (eshell-gather-process-output): * lisp/org/ob-core.el (org-babel-local-file-name): * lisp/progmodes/gud.el (gud-common-init, gud-format-command): * lisp/progmodes/python.el (python-shell-send-file): * lisp/shell.el (shell): * lisp/vc/ediff-diff.el (ediff-same-file-contents): * lisp/vc/vc-git.el (vc-git-checkin): Use it.
* Document format-time-string %qPaul Eggert2016-11-191-0/+2
| | | | | * doc/lispref/os.texi (Time Parsing): * etc/NEWS: Document new %q functionality taken from gnulib.
* Merge from origin/emacs-25Paul Eggert2016-11-191-4/+9
|\ | | | | | | | | | | | | | | | | | | 07f45d7 ; Spelling fix 1a210f0 * admin/release-process: Update versions and blocking bug num... 36bafc9 Improve documentation of functions that accept time values # Conflicts: # admin/release-process # src/editfns.c
| * Improve documentation of functions that accept time valuesEli Zaretskii2016-11-181-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/os.texi (Time Calculations): Mention the meaning of 'nil' or a scalar number as the time-value argument. Add a cross-reference to 'float-time' for computing a time difference as a scalar number of seconds. * src/editfns.c (Fformat_time_string, Ftime_less_p) (Ftime_subtract, Ftime_add, Fdecode_time, Fcurrent_time_string) (Fcurrent_time_zone): Mention in the doc strings the meaning of nil argument and the fact that a time value can be a scalar number of seconds since the epoch. (Ftime_subtract): Mention 'float-time'.
* | Merge from origin/emacs-25Paul Eggert2016-11-1929-167/+195
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4af5981 Add a comment in generated refcards about the source ef880a5 ; * etc/refcards/calccard.tex: Remove obsolete comment. 4887e7c js-mode: Fix indent problem after a regexp e992ac0 Fix sluggish display of symbols in UTF-8 language environment 1fc101b Don't confuse how Texinfo outputs @var with the input 91aa5d1 * doc/lispref/display.texi (Scroll Bars): * doc/lispref/frame... f758fcd * doc/emacs/cmdargs.texi (Initial Options): Copyedit for --da... 5b0cddd More fixes in copyright notices in etc/refcards/ f994c20 Update copyright text in refcards 9ad2ae7 Fix Outline command names 26c3554 Send text received by bracketed paste to process db0b58d Correct the statement about programming modes always running ... 78aece4 Improve documentation of 'occur' eb364fd Do call debugger on failed cl-assert 3ef4ee8 Avoid infloop in python 8da810f Don't refer to obsolete FEATURE-unload-hook 4f478ca Improve documentation of dabbrevs 7272e5d * lisp/chistory.el (list-command-history): Doc fix. (Bug#24890) 89b7482 * lisp/simple.el (set-mark-command): Doc fix. (Bug#24890) 3b199f7 Improve documentation of some Help commands 93d3a0e Fix documentation of yes-or-no prompts af04919 Fix documentation of partial completion style ed80184 Fix documentation of the mode line on emacsclient frames e6be855 Fix description of 'C-z' in User manual 16f7007 Improve and clarify documentation of Outline Mode 31d93aa Add Emacs version number to nt/README.W32 0b6b815 Fix python-mode hideshow regexp dc152c5 Modernize usage of 'macOS' in doc and comments 84c5343 Prefer comments /* like this */ in C code bb61e50 * doc/lispref/loading.texi (Autoload): Better link (Bug#24845). 3ef86fd Clarify documentation of face attribute functions de51d59 ; * nt/README.W32: Minor copyedits. db436e9 Don't call debug on failed cl-assert # Conflicts: # doc/emacs/cmdargs.texi # etc/NEWS # etc/PROBLEMS # lisp/auth-source.el # lisp/net/tramp-sh.el
| * Don't confuse how Texinfo outputs @var with the inputGlenn Morris2016-11-156-14/+14
| | | | | | | | | | | | | | | | | | | | * doc/emacs/rmail.texi (Movemail): * doc/lispref/control.texi (Pattern matching case statement): * doc/lispref/frames.texi (Size and Position): * doc/lispref/processes.texi (Asynchronous Processes): * doc/lispref/text.texi (Document Object Model): * doc/lispref/windows.texi (Coordinates and Windows): Do not upper-case the argument of @var.
| * * doc/lispref/display.texi (Scroll Bars):Glenn Morris2016-11-153-4/+4
| | | | | | | | | | * doc/lispref/frames.texi (Size and Position): * doc/lispref/windows.texi (Window Sizes): Fix arglist typos.
| * * doc/emacs/cmdargs.texi (Initial Options): Copyedit for --daemon.Glenn Morris2016-11-151-5/+2
| |
| * Fix Outline command namesEli Zaretskii2016-11-121-9/+11
| | | | | | | | | | * doc/emacs/text.texi (Foldout): Use the outline-* names instead of the obsolete aliases. (Bug#24890)
| * Correct the statement about programming modes always running prog-mode-hook.Alan Mackenzie2016-11-101-4/+7
| | | | | | | | | | | | doc/emacs/modes.texi (Major Modes): Amend the statement about programming modes running prog-mode-hook to say that it applies to many (not all) such modes, and specifying exactly which modes.
| * Improve documentation of 'occur'Eli Zaretskii2016-11-101-13/+13
| | | | | | | | | | * doc/emacs/search.texi (Other Repeating Search): Clarify how to use Occur with search strings from last Isearch. (Bug#24890)
| * Don't refer to obsolete FEATURE-unload-hookEli Zaretskii2016-11-071-4/+4
| | | | | | | | | | | | * doc/lispref/tips.texi (Coding Conventions): Refer to FEATURE-unload-function rather than its obsolete variant FEATURE-unload-hook. (Bug#24890)
| * Improve documentation of dabbrevsEli Zaretskii2016-11-071-6/+11
| | | | | | | | | | | | | | | | * lisp/dabbrev.el (dabbrev-expand): Doc fix. (Bug#24890) * doc/emacs/abbrevs.texi (Dynamic Abbrevs): Mention 'dabbrev-check-all-buffers', 'dabbrev-check-other-buffers', and 'dabbrev-ignored-buffer-names' and their purpose. (Bug#24890)
| * Improve documentation of some Help commandsEli Zaretskii2016-11-071-3/+9
| | | | | | | | | | | | | | * doc/emacs/help.texi (Help Mode): Fix mistake in key sequences. Mention the 'l' and 'r' keys. (Misc Help): Mention that 'C-h m' describes key bindings. (Bug#24890)
| * Fix documentation of yes-or-no promptsEli Zaretskii2016-11-071-3/+3
| | | | | | | | | | * doc/emacs/mini.texi (Yes or No Prompts): Fix mistakes in key sequences. (Bug#24890)
| * Fix documentation of partial completion styleEli Zaretskii2016-11-071-2/+2
| | | | | | | | | | * doc/emacs/mini.texi (Completion Styles): Fix the description of the wildcard '*'. (Bug#24890)
| * Fix documentation of the mode line on emacsclient framesEli Zaretskii2016-11-071-1/+6
| | | | | | | | | | * doc/emacs/screen.texi (Mode Line): Document the '@' indicator on emacsclient frames.
| * Fix description of 'C-z' in User manualEli Zaretskii2016-11-071-1/+1
| | | | | | | | | | * doc/emacs/entering.texi (Exiting): 'C-z' is bound to 'suspend-frame'. (Bug#24890)
| * Improve and clarify documentation of Outline ModeEli Zaretskii2016-11-071-50/+59
| | | | | | | | | | | | | | | | * doc/emacs/text.texi (Outline Visibility): Use the outline-* names instead of the obsolete aliases. (Bug#24890) * lisp/outline.el (outline-hide-sublevels, outline-hide-other) (outline-hide-body): Doc fixes. (Bug#24890)
| * Modernize usage of 'macOS' in doc and commentsPaul Eggert2016-11-0613-47/+44
| | | | | | | | | | | | | | | | Apple changed the spelling of its operating system again, to "macOS", effective with macOS 10.12 Sierra (2016-09-20). Change Emacs documentation and comments to match this. Stick with older OS spellings ("OS X", "Mac OS X") when talking about older releases where the older names are more correct.
| * * doc/lispref/loading.texi (Autoload): Better link (Bug#24845).Noam Postavsky2016-11-051-2/+2
| |
| * Clarify documentation of face attribute functionsEli Zaretskii2016-11-051-4/+5
| | | | | | | | | | | | * doc/lispref/display.texi (Attribute Functions): Make sure to document that an omitted FRAME argument means the same as nil. (Bug#24879)
* | ; Replace "25.2" with "26.1" where appropriate, which is almost everywhereGlenn Morris2016-11-171-1/+1
| | | | | | | | | | | | Ref: http://lists.gnu.org/archive/html/emacs-devel/2016-09/msg00692.html http://lists.gnu.org/archive/html/emacs-devel/2016-01/msg01215.html
* | Add --new-daemon, which runs in the foreground and does not forkGlenn Morris2016-11-155-22/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is intended for modern init systems such as systemd, which manage many of the traditional aspects of daemon behavior themselves. (Bug#2677) * src/emacs.c (daemon_type): New integer. (usage, standard_args): Add --old-daemon and --new-daemon. (main): Handle --old-daemon and --new-daemon arguments. Restrict all the forking and complicated daemon stuff to old-daemon. (Fdaemon_initialized): Handle new-style daemon. * src/lisp.h (IS_DAEMON, DAEMON_RUNNING) [!WINDOWNT]: Replace daemon_pipe with daemon_type. * doc/emacs/cmdargs.texi (Initial Options): * doc/emacs/glossary.texi (Glossary): * doc/emacs/misc.texi (Emacs Server): * doc/lispref/display.texi (Window Systems): * doc/lispref/os.texi (Startup Summary): Related doc updates. * etc/NEWS: Mention this. * etc/emacs.service: Use Type=simple and --new-daemon.
* | * src/emacs.c (usage_message): Mention named daemon. (Bug#24949)Glenn Morris2016-11-151-4/+6
| | | | | | | | * doc/man/emacs.1.in: Likewise.
* | Implement file name handler for `file-name-case-insensitive-p'Michael Albinus2016-11-151-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/files.texi (Truenames): `file-name-case-insensitive-p' is also applicable for remote hosts. * lisp/net/tramp.el (tramp-methods): Improve docstring. (tramp-file-name-for-operation): Add `file-name-case-insensitive-p'. (tramp-handle-file-name-case-insensitive-p): New defun. * lisp/net/tramp-smb.el (tramp-methods) <smb>: Add `tramp-case-insensitive' entry. * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist) * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist) * lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist) * lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist) <file-name-case-insensitive-p>: Add handler. (Bug#22300, Bug#24441)
* | Revert "Improve case-insensitive checks (Bug#24441)"Eli Zaretskii2016-11-141-3/+11
| | | | | | | | | | | | This reverts commit 2f5e0b1bf7b0ac4f450847db34d599a072020600. I see no reason for removing code, documentation, and comments in the original commit.
* | Improve case-insensitive checks (Bug#24441)Paul Eggert2016-11-141-11/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/files.texi (Truenames): Simplify documentation, to avoid giving too much platform-specific information that may not be accurate anyway. * src/fileio.c (file_name_case_insensitive_p): Use pathconf with _PC_CASE_SENSITIVE if _PC_CASE_INSENSITIVE is not available. Otherwise if one approach fails (e.g., with errno == EINVAL), fall back on an alternative rather than returning false. Try skipping the Darwin code, as it (1) no longer seems to be needed and (2) does not seem to match the Apple documentation. Leave in two alternatives conditionally compiled based on DARWIN_OS_CASE_SENSITIVE_FIXME in case (1) or (2) is incorrect.
* | Fix documentation changes of connection-local variablesEli Zaretskii2016-11-142-2/+3
| | | | | | | | | | | | * etc/NEWS: Fix last change. * doc/lispref/variables.texi (Connection Local Variables): Minor fixes. * doc/lispref/elisp.texi (Top): Update the master menu.
* | Implement connection-local variablesMichael Albinus2016-11-141-0/+165
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/variables.texi (Connection Local Variables): New section. * etc/NEWS: Mention connection-local variables. * lisp/files-x.el (enable-connection-local-variables) (connection-local-variables-alist, connection-local-class-alist) (connection-local-criteria-alist): New defvars. (connection-local-get-classes) (connection-local-get-class-variables): New defsubst. (connection-local-set-classes) (connection-local-set-class-variables) (hack-connection-local-variables) (hack-connection-local-variables-apply): New defuns. (with-connection-local-classes): New defmacro. * lisp/net/tramp.el (tramp-set-connection-local-variables): New defun. * lisp/net/tramp-adb.el (tramp-adb-maybe-open-connection): * lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection): * lisp/net/lisp/net/tramp-sh.el (tramp-maybe-open-connection): * lisp/net/tramp-smb.el (tramp-smb-maybe-open-connection): Use it. * test/lisp/files-x-tests.el: New file.
* | Include a systemd user unit file. (Bug#16507)Glenn Morris2016-11-131-19/+18
| | | | | | | | | | | | | | | | * etc/emacs.service: New file. * doc/emacs/misc.texi (Emacs Server): Mention systemcl --user. * Makefile.in (libdir): New, set by configure. (systemdunitdir): New variable. (install-etc, uninstall): Handle the emacs.service file.
* | Check case-sensitivity when renaming filesKen Brown2016-11-121-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/fileio.c (file_name_case_insensitive_p) (Ffile_name_case_insensitive_p): New functions. (Frename_file): Allow renames that simply change case when the FILE argument is on a case-insensitive filesystem. (Bug#24441) * lisp/dired-aux.el (dired-do-create-files): Use 'file-name-case-insensitive-p' instead of 'system-type' to check for case-insensitivity. (Bug#24441) * doc/lispref/files.texi (Truenames): Document 'file-name-case-insensitive-p'.
* | ; Spelling fixesPaul Eggert2016-11-041-1/+1
| |
* | Merge from origin/emacs-25Paul Eggert2016-11-045-9/+29
|\ \ | |/ | | | | | | | | | | | | | | | | | | acae275 ; Spelling fixes d8fac73 Update README for precompiled windows Emacs. 23570fd Clarify documentation of 'vc-responsible-backend' wrt symlinks f708cb2 Clarify doc string of 'transpose-sexps' cd05b1d Fix docstring of 'browse-url-firefox-new-window-is-tab' bdc89eb Improve documentation of 'font-lock-remove-keywords' 4a0c590 Fix documentation of the command summary key 0221b7a Mark relocation workarounds with REL_ALLOC
| * ; Spelling fixesPaul Eggert2016-11-041-1/+1
| |
| * Clarify documentation of 'vc-responsible-backend' wrt symlinksHong Xu2016-11-042-1/+16
| | | | | | | | | | | | | | | | | | | | * lisp/vc/vc.el (vc-responsible-backend): Clarify that symlinks are not resolved when the VC backend is reported. * doc/lispref/files.texi (Truenames): Document 'vc-responsible-backend'. (Bug#23436) * doc/emacs/maintaining.texi (Version Control Systems): Fix a typo.
| * Improve documentation of 'font-lock-remove-keywords'Eli Zaretskii2016-11-041-1/+3
| | | | | | | | | | | | * doc/lispref/modes.texi (Customizing Keywords): Clarify the 'keywords' argument of 'font-lock-remove-keywords'. Suggested by Hong Xu <hong@topbug.net>. (Bug#24830)
| * Fix documentation of the command summary keyEli Zaretskii2016-11-041-6/+9
| | | | | | | | | | | | * doc/misc/info.texi (Help-^L, Help-Xref, Top): Emacs Info uses '?' for the summary of commands, whereas the stand-alone reader uses 'H'. (Bug#24825)
| * Fix documentation for 'eudc-options-file'Thomas Fitzsimmons2016-11-021-6/+5
| | | | | | | | | | | | | | | | | | * doc/misc/eudc.texi (The Server Hotlist): Update the default value of 'eudc-options-file'. Backport: (cherry picked from commit 0575fd95d0b92a9a0ebff8df183a449190f74dbc)
| * Fix documentation of 'eudc-inline-expansion-format'Tibor Csögör2016-11-021-2/+1
| | | | | | | | | | | | | | | | | | * doc/misc/eudc.texi (Inline Query Expansion): Fix the default value of 'eudc-inline-expansion-format'. (Bug#24840) Backport: (cherry picked from commit 1fef1387c387d80f8ece326621539b89a6965702)
* | Fix references to long obsoleted functions/aliasesMark Oteiza2016-11-043-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispintro/emacs-list-intro.texi (Miscellaneous): * doc/misc/cl.texi (Conditionals): * doc/misc/speedbar.texi (Major Display Modes): Use string-to-number, not string-to-int. * lisp/emulation/viper.el (viper-go-away): Use major-mode, not default-major-mode. * lisp/textmodes/reftex-toc.el (reftex-toc-visit-location): show-window here is not a function call, but shorten the binding names anyways. Also, use pop-to-buffer-same-window instead of switch-to-buffer cf Bug#22244. * lisp/textmodes/sgml-mode.el (html-tag-alist): Use read-string, not read-input.
* | Add 'x-ctrl-keysym' support on X window systemVasilij Schneidermann2016-11-041-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/xterm.c (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Support 'x-ctrl-keysym'. (syms_of_xterm): DEFSYM "ctrl" and put a proper modifier-value property on it. <x-ctrl-keysym>: New DEFVAR_LISP. <x-alt-keysym, x-hyper-keysym, x-meta-keysym, x-super-keysym>: Doc fix. (Bug#24822) * etc/NEWS: Mention the addition of 'x-ctrl-keysym'. * doc/lispref/os.texi (X11 Keysyms): Document 'x-ctrl-keysym'.
* | Add eww-open-in-new-buffer to EWWMark Oteiza2016-11-021-0/+6
| | | | | | | | | | | | | | | | | | * doc/misc/eww.texi (Basic): Document new command and key. * etc/NEWS: Mention new key and its purpose. * lisp/net/eww.el (eww-suggest-uris): Remove eww-current-url. (eww): Append (eww-current-url) to the prompt defaults. (eww-open-in-new-buffer): New command. (eww-mode-map): Bind it and add a menu item.
* | Fix documentation for 'eudc-options-file'Thomas Fitzsimmons2016-11-011-6/+5
| | | | | | | | | | * doc/misc/eudc.texi (The Server Hotlist): Update the default value of 'eudc-options-file'.
* | Fix documentation of 'eudc-inline-expansion-format'Tibor Csögör2016-11-011-2/+1
| | | | | | | | | | * doc/misc/eudc.texi (Inline Query Expansion): Fix the default value of 'eudc-inline-expansion-format'. (Bug#24840)
* | Add double-buffering support to reduce flickerDaniel Colascione2016-10-281-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/dispextern.h (struct glyph_string): Remove window member (block_buffer_flips, unblock_buffer_flips) (buffer_flipping_blocked_p): Declare. * src/xterm.h (struct x_display_info): New member supports_xdbe. (struct x_output): New members draw_desc and need_buffer_flip. (FRAME_X_DRAWABLE, FRAME_X_RAW_DRAWABLE) (FRAME_X_DOUBLE_BUFFERED_P) (FRAME_X_NEED_BUFFER_FLIP): New macros. (set_up_x_back_buffer, tear_down_x_back_buffer) (initial_set_up_x_back_buffer): Declare. * src/xterm.c: Include Xdbe.h. (x_begin_cr_clip, x_fill_rectangle, x_draw_rectangle) (x_draw_vertical_window_border, x_update_end) (x_setup_relief_color, x_draw_relief_rect) (x_draw_fringe_bitmap, x_shift_glyphs_for_insert) (x_scroll_run, x_draw_hollow_cursor, x_draw_bar_cursor): Use FRAME_X_DRAWABLE instead of FRAME_X_WINDOW; rename local variables appropriately; substitute calls to XClearArea with x_clear_area, which DTRT for double buffering. (x_clear_window, x_clear_area): In double-buffering mode, use rect-drawing X functions instead of XClearWindow and XClearArea, which always operate on the front buffer. (show_back_buffer): New function. (XTframe_up_to_date): Call show_back_buffer when done. (x_clear_frame, x_clear_frame_area): Remove obsolete calls to gtk_widget_queue_draw to refresh scroll bars; scroll bars are now independent X windows. (handle_one_xevent): Call font_drop_xrender_surfaces when XftDraw might need regenerating; perform buffer flip when responding to Expose events; issue front-buffer clearing commands as stopgap while we wait for redisplay. Call flush_dirty_back_buffers. (x_make_frame_visible): Un-bitrot comment; move XSETFRAME earlier in function. (x_free_frame_resources): Call tear_down_x_back_buffer when destroying frame. (x_term_init): Attempt to initialize double buffer extension. (x_flip_and_flush): New function. (x_redisplay_interface): Point to x_flip_and_flush instead of x_flip directly. (flush_dirty_back_buffers): New function. (x_create_terminal): Register buffer_flipping_unblocked_hook. * src/xftfont.c (xftfont_drop_xrender_surfaces): Use FRAME_X_DRAWABLE instead of FRAME_X_WINDOW. (xftfont_draw): Call x_mark_frame_dirty. (xftfont_drop_xrender_surfaces): New function. (syms_of_xftfont): Register it. * src/xfont.c (xfont_draw): Use FRAME_X_DRAWABLE instead of FRAME_X_WINDOW. * src/xfns.c: Include Xdbe.h. (x_set_inhibit_double_buffering, set_up_x_back_buffer) (Fx_double_buffered_p): New functions. (x_window): Call initial_set_up_x_back_buffer. (x_make_gc): Use FRAME_X_DRAWABLE instead of FRAME_X_WINDOW. (Fx_create_frame): Configure `inhibit-double-buffering' frame parameter. (x_create_tip_frame): Call initial_set_up_x_back_buffer. (x_frame_parm_handlers): Register x_set_inhibit_double_buffering. (syms_of_xfns): Register Sx_double_buffered_p. (x_mark_frame_dirty): Define. * src/xfaces.c (x_create_gc): Use FRAME_X_DRAWABLE instead of FRAME_X_WINDOW. * src/xdisp.c (remember_mouse_glyph, init_glyph_string): Use FRAME_X_DRAWABLE instead of FRAME_X_WINDOW. (redisplay_internal): Restart redisplay if a frame is garbaged during updating; explain why. Block buffer flips during redisplay. (redisplay_preserve_echo_area): Block buffer flip during call to redisplay_internal. (buffer_flip_blocked_depth): New variable. (block_buffer_flips, unblock_buffer_flips) (buffer_flipping_blocked_p): New functions. (init_glyph_string): Stop setting window member of struct glyph_string. * src/w32fns.c (w32_frame_parm_handlers): Add placeholder for x_set_inhibit_double_buffering. * src/termhooks.h (struct terminal): Add buffer_flipping_unblocked_hook. * src/nsfns.m (ns_frame_parm_handlers): Add placeholder for x_set_inhibit_double_buffering. * src/image.c (x_create_bitmap_from_data) (x_create_bitmap_from_file, x_create_x_image_and_pixmap) (Create_Pixmap_From_Bitmap_Data) (x_create_bitmap_from_xpm_data, xpm_load, gs_load): Use FRAME_X_DRAWABLE instead of FRAME_X_WINDOW; rename local variables appropriately. * src/gtkutil.c: Include Xdbe.h. (xg_get_widget_from_map): Forward declare. (xg_clear_under_internal_border): Remove obsolete calls to refresh scroll bars. (xg_create_frame_widgets): Call initial_set_up_x_back_buffer. (xg_free_frame_widgets): Call tear_down_x_back_buffer; reset FRAME_X_DRAWABLE as well as FRAME_X_WINDOW and for the same reason. (xg_set_background_color): Set scroll bar background colors. (xg_finish_scroll_bar_creation): New function with common logic of xg_create_scroll_bar, xg_create_horizontal_scroll_bar. Force scroll bars to be real X11 windows. (xg_create_scroll_bar, xg_create_horizontal_scroll_bar): Call xg_finish_scroll_bar_creation. (xg_update_scrollbar_pos, xg_update_horizontal_scrollbar_pos): Remove obsolete calls to refresh scroll bars; fix comments. * src/ftxfont.c (ftxfont_get_gcs, ftxfont_draw_bitmap, (ftxfont_draw_background): Use FRAME_X_DRAWABLE instead of FRAME_X_WINDOW. * src/frame.c (frame_parms): Add table entry for new `inhibit-double-buffering' frame parameter (syms_of_frame): Register Qinhibit_double_buffering. * src/font.h (struct font_driver): Add new `flush_frame_caches' hook. (font_drop_xrender_surfaces): Declare. * src/font.c (font_drop_xrender_surfaces): New function. * src/Makefile.in (XDBE_LIBS, XDBE_CFLAGS): Substitute. * etc/NEWS: Mention use of double buffering * doc/lispref/frames.texi (Management Parameters): Document `inhibit-double-buffering' frame parameters. (Visibility of Frames): Document `x-double-buffered-p'. * configure.ac: Check for the X double buffer extension
* | New user variable 'electric-quote-chars'Göktuğ Kayaalp2016-10-271-2/+12
| | | | | | | | | | | | * doc/emacs/text.texi (Quotation Marks), etc/NEWS: Document this. * lisp/electric.el (electric-quote-chars): New defcustom. (electric-quote-post-self-insert-function): Use it.
* | Minor fix in the documentation of seq-random-eltNicolas Petton2016-10-251-1/+0
| | | | | | | | | | * doc/lispref/sequences.texi (Sequence Functions): Remove false sentence.
* | Minor copyedits in documentation of 'seq-random-elt'Eli Zaretskii2016-10-251-2/+3
| | | | | | | | | | * doc/lispref/sequences.texi (Sequence Functions): Fix markup in last change. Use 2 spaces between sentences.
* | Add seq-random-elt to seq.elDamien Cassou2016-10-251-0/+20
| | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/seq.el (seq-random-elt): Add function to return a random element from it's sequence parameter. * test/lisp/emacs-lisp/seq-tests.el (test-seq-random-elt-take-all test-seq-random-elt-return-nil): Test the new function * doc/lispref/sequences.texi: Document the new function