1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-26 10:49:33 +00:00
Commit Graph

117563 Commits

Author SHA1 Message Date
Martin Rudalics
3c6ba8b49b Add documentation for horizontal scroll bars and fix some minor issues.
* buffer.c (scroll_bar_width, scroll_bar_height): Fix
doc-strings.
* window.c (Fset_window_scroll_bars): Fix doc-string.
(Fwindow_scroll_bars): Have it return what the doc-string says.

* window.el (window-full-height-p): Make it behave correctly for
minibuffer window.
(window-current-scroll-bars): Fix code.
(fit-frame-to-buffer): Use window-scroll-bar-height instead of
window-scroll-bars.
* frame.el (frame-current-scroll-bars): Fix doc-string.
* scroll-bar.el (toggle-horizontal-scroll-bar): New command.

* frames.texi (Scroll Bars): Describe use of horizontal scroll
bars.

* display.texi (Scroll Bars): Add description of horizontal scroll
bars and associated functions.
* frames.texi (Layout Parameters): Add horizontal scroll bar
entries.  Remove paragraph on "combined fringe widths".
* windows.texi (Window Sizes): Describe affects of horizontal
scroll bars on window layout and sizes.  Fix description of
window-full-height-p.
(Resizing Windows): Mention horizontal scroll bar.
2014-10-04 10:20:24 +02:00
Mark Oteiza
cebc89eea1 * lisp/files.el (auto-mode-alist): Use sh-mode for .zsh files.
Fixes: debbugs:18488
2014-10-04 00:27:10 -07:00
Glenn Morris
d311e8d04b * configure.ac: Silence warning with some old Xrandr.h.
Fixes: debbugs:18465
2014-10-04 00:22:51 -07:00
Glenn Morris
10501882f7 Merge from emacs-24; up to 2014-07-20T16:14:58Z!dmantipov@yandex.ru 2014-10-04 00:05:21 -07:00
Glenn Morris
9352c1465f * doc/lispref/commands.texi (Generic Commands): Copyedits. 2014-10-03 23:59:30 -07:00
Glenn Morris
93e408d7c5 * doc/misc/vip.texi (Other Vi Commands): Markup fix. 2014-10-03 23:55:37 -07:00
Glenn Morris
e2634d9197 Small copyedits for doc/lispref
* doc/lispref/display.texi (Scroll Bars):
* doc/lispref/modes.texi (Header Lines): Copyedits.
2014-10-03 23:45:19 -07:00
Glenn Morris
fc7db7066b Small doc/ fixes re @var usage.
* doc/emacs/cmdargs.texi (Misc X):
* doc/emacs/display.texi (Optional Mode Line):
* doc/emacs/misc.texi (emacsclient Options):
* doc/emacs/vc1-xtra.texi (VC Delete/Rename):
* doc/lispref/buffers.texi (Buffer List):
* doc/lispref/display.texi (Image Descriptors, Defining Images):
* doc/lispref/functions.texi (Core Advising Primitives):
Small fixes re @var usage.
2014-10-03 23:35:55 -07:00
Glenn Morris
b7529d917a * doc/lispref/windows.texi (Window Sizes, Resizing Windows): Copyedits. 2014-10-03 23:33:00 -07:00
Stefan Monnier
03c4553666 Merge trivially safe differences from standalone CC-mode.
* lisp/progmodes/cc-mode.el (c-initialize-cc-mode): Don't quote a symbol
just to then pass it to `symbol-value'.
(prog-mode): Provide fallback definition, if needed.
* lisp/progmodes/cc-langs.el: Always load `cl'.  Don't load `cl-lib'.
Remove "cl-" prefix accordingly.
* lisp/progmodes/cc-fonts.el (c-font-lock-invalid-string): Use integerp or
characterp depending on the type of characters.
(c-font-lock-enum-tail): Remove unused var `start'.
* lisp/progmodes/cc-engine.el: Load CL at compile-time.
(c-declare-lang-variables): Use mapcan.
(c-append-to-state-cache): Remove unused var `ce+1'.
(c-parse-state-state): Make buffer-local.
(c-ssb-lit-begin): Remove unused var `pps-end-pos'.
(c-just-after-func-arglist-p): Remove unused var `end'.
* lisp/progmodes/cc-defs.el: Load cc-fix if delete-dups is undefined.
(c-<-as-paren-syntax, c->-as-paren-syntax): Move definition earlier.
(c-make-keywords-re): Use delete-dups.
(c-get-current-file): Avoid file-name-base.
* lisp/progmodes/cc-cmds.el (c-electric-lt-gt): Remove unused var
`close-paren-inserted'.
* lisp/progmodes/cc-awk.el (c-forward-sws): Remove unused declaration.
2014-10-04 00:03:49 -04:00
Stefan Monnier
94ab176a44 * lisp/erc/erc.el (erc-channel-receive-names): Silence compiler warning.
(erc-format-@nick, erc-update-modes): Idem.
2014-10-03 23:04:51 -04:00
Glenn Morris
62cd8845a3 Doc tweaks re multi-monitor
* doc/lispref/frames.texi (Multiple Terminals): Copyedits re multiple monitors.

* lisp/frame.el (frame-monitor-attributes, display-monitor-attributes-list):
Doc fixes.
2014-10-03 20:03:52 -07:00
Glenn Morris
1a06ba3736 doc/emacs copyedits re rectangle-mark-mode
* doc/emacs/killing.texi (Rectangles): Copyedits re rectangle-mark-mode.
(CUA Bindings): Mention rectangle-mark-mode.
2014-10-03 19:36:49 -07:00
Stefan Monnier
cb325041b0 * lisp/progmodes/python.el: Avoid building unneeded markers.
(python-font-lock-keywords, python-indent-dedent-line)
(python-fill-paren, python-shell-completion-complete-or-indent):
Prefer point over point-marker.
(inferior-python-mode): Remove redundant completion settings.
2014-10-03 22:35:28 -04:00
Glenn Morris
259a0b6d3b Merge from emacs-24; up to 2014-07-17T10:18:19Z!dmantipov@yandex.ru 2014-10-03 09:07:31 -07:00
Glenn Morris
caafef5ddc ChangeLog fixes 2014-10-03 09:06:02 -07:00
Glenn Morris
2ae68b8b15 ChangeLog merge fix
Yet another unlabelled backport.
2014-10-03 09:05:12 -07:00
Glenn Morris
b324e68eb0 ChangeLog fix 2014-10-03 08:46:27 -07:00
Glenn Morris
79a90058ec Merge from emacs-24; up to 2014-07-16T17:06:12Z!rgm@gnu.org 2014-10-03 08:44:46 -07:00
Glenn Morris
3ef486a9ac ChangeLog fixes 2014-10-03 08:33:37 -07:00
Glenn Morris
3df14aa689 A few tiny doc/ copyedits. 2014-10-03 08:26:26 -07:00
Dmitry Gutov
c799337f12 Fix vc-svn-ignore
* lisp/vc/vc-svn.el (vc-svn-ignore-completion-table): Implement.
(vc-svn-ignore): Use it.

Fixes: debbugs:18619
2014-10-03 17:15:05 +04:00
Eli Zaretskii
09ca95288c doc/misc/erc.texi (Connecting): Remove stray "OA" that failed the manual build. 2014-10-03 16:02:53 +03:00
Kelvin White
f0848fadaa Updating ERC documentation 2014-10-03 08:13:31 -04:00
Kelvin White
efb615a711 erc.el (erc-rename-buffers): Use defcustom instead of defvar. 2014-10-03 07:08:37 -04:00
Martin Rudalics
f63bd04be9 Mention `frame-resize-pixelwise' to make frames truly fullscreen or maximized.
* frame.el (toggle-frame-maximized, toggle-frame-fullscreen):
In doc-string mention need of setting `frame-resize-pixelwise'.

* frames.texi (Frame Commands):
* cmdargs.texi (Window Size X): Mention the use of
`frame-resize-pixelwise' to make frames truly fullscreen or
maximized.

* frames.texi (Size Parameters, Size and Position): Mention that
with some window managers you have to set
`frame-resize-pixelwise' in order make a frame truly fullscreen
or maximized.
2014-10-03 11:18:49 +02:00
Bastien Guerry
a81e5de3a3 Sync with Org 8.2.8. 2014-10-03 10:13:51 +02:00
Dmitry Antipov
955d5d047d * fileio.c (emacs_readlinkat, Finsert_file_contents):
* w32fns.c, xfns.c (x_create_tip_frame): Use AUTO_STRING.
2014-10-03 09:31:17 +04:00
Dmitry Antipov
6846b0036a Consistently use min and max macros from lisp.h.
* coding.c (min, max):
* font.c (MAX):
* unexhp9k800.c (min):
* unexw32.c (min, max): Use definitions from lisp.h.
* regex.c (MAX, MIN) [!emacs]: Define own max and min as such.
Adjust users.
* gmalloc.c (min): Tiny style change.
2014-10-03 08:35:10 +04:00
Dmitry Antipov
e197284d47 * font.c (font_list_entities): Do not add empty vector to font cache.
(font_matching_entity): Likewise.  If matching entity is found, insert
1-item vector with this entity instead of an entity itself (Bug#17125).
2014-10-03 07:46:53 +04:00
Paul Eggert
11bd10a7df Fix x-focus-frame bug with "Not an in-range integer".
* xselect.c (X_SHRT_MAX, X_SHRT_MIN, X_LONG_MAX, X_LONG_MIN)
(X_ULONG_MAX): Move these macros to xterm.h.
(x_fill_property_data): Be more generous about allowing either
signed or unsigned data of the appropriate width.
* xterm.h (x_display_set_last_user_time): New function.
All setters of last_user_time changd to use this function.
If ENABLE_CHECKING, check that the times are in range.

Fixes: debbugs:18586
2014-10-02 19:20:52 -07:00
Stefan Monnier
7118822435 * lisp/select.el: Add commentary discussion. 2014-10-02 22:15:42 -04:00
Stefan Monnier
d6f8fef3fc New gui-selection-value consolidating x-selection-value.
* lisp/select.el (gui-selection-value-alist): New method.
(gui-selection-value): New function.
(x-selection-value): Make it an obsolete alias.
* lisp/simple.el (interprogram-paste-function): Default to gui-selection-value.
* lisp/w32-common-fns.el (w32-get-selection-value): Simplify.
(x-selection-value): Remove alias.
(interprogram-paste-function): Don't set.
(gui-selection-value): Define for w32.
* lisp/term/x-win.el (gui-selection-value): Define for x.
(x--selection-value): Rename from x--selection-value.
(interprogram-paste-function): Don't set.
* lisp/term/pc-win.el (w16-get-selection-value): Simplify.
(msdos-initialize-window-system): Don't set interprogram-paste-function.
(gui-selection-value): Define for pc.
* lisp/term/ns-win.el (x-selection-value): Remove.
(gui-selection-value): Define for ns, instead.
* lisp/term/common-win.el (x-setup-function-keys): Don't set
interprogram-paste-function.
* lisp/obsolete/mouse-sel.el (mouse-sel-get-selection-function):
Use gui-selection-value.
2014-10-02 21:39:49 -04:00
Stefan Monnier
f0db348816 * lisp/vc/vc-svn.el (vc-svn-after-dir-status): Fix the non-remote regexp,
similarly to Roger's 2010-06-12 change for the remote change.

Fixes: debbugs:18605
2014-10-02 20:42:28 -04:00
David Raynes
f0da11bd39 * lisp/term/ns-win.el: Add functions to ns frame, not x frame.
Fixes: debbugs:18614
2014-10-02 20:15:34 -04:00
Paul Eggert
6d5bb00fd1 * configure.ac: Port to strict POSIX shells on non-MinGW.
Fixes: debbugs:18612
2014-10-02 15:29:39 -07:00
Paul Eggert
f3c69fb76f * erc.el (erc-nick-at-point): Fix format-string typo (Bug#17755). 2014-10-02 12:28:26 -07:00
Stefan Monnier
a7f5d04fbf * lisp/obsolete/lucid.el (read-number): Remove, redundant.
* lisp/obsolete/cl-compat.el (cl-floor, cl-ceiling, cl-round, cl-truncate):
Remove, broken.
2014-10-02 13:18:57 -04:00
Eli Zaretskii
253428c4fb src/dispnew.c (adjust_decode_mode_spec_buffer): Use 'int' instead of 'ssize_t'.
Suggested by Paul Eggert <eggert@cs.ucla.edu>.
2014-10-02 18:33:55 +03:00
Stefan Monnier
d7f413b893 Merge from emacs-24 2014-10-02 11:13:05 -04:00
Eli Zaretskii
3d900a84e4 Fix bug #18584 with assertion violations while scrolling.
src/xdisp.c (move_it_by_lines): Call reseat_1 after moving the
 iterator backwards, to resync the bidi iterator.
2014-10-02 17:57:05 +03:00
Dmitry Antipov
8eb61e5261 * alloc.c (mark_overlay): Assume that overlay boundaries are
always markers.  Add comment.
* lread.c (read_internal_start): Use convenient validate_subarray.
Adjust docstring.
(Fread_from_string): Adjust docstring.
2014-10-02 18:01:27 +04:00
Stefan Monnier
1c1425565d * lisp/frame.el: Use lexical-binding.
(make-frame): Use t rather than nil for tty's window-system.
* lisp/startup.el (command-line): Use gui-method.

Fixes: debbugs:18598
2014-10-02 09:26:23 -04:00
Stefan Monnier
4ea7bee0ab * simple.el (deactivate-mark): Fix typo. 2014-10-02 08:44:48 -04:00
Stefan Monnier
b861616a6c * src/lisp.h: Fix up compilation for USE_STACK_LISP_OBJECTS=false. 2014-10-02 08:27:19 -04:00
Kelvin White
64a67db3cd Use local variable to determine if buffers should be renamed
Fixes: debbugs:18300
2014-10-02 07:55:22 -04:00
Ivan Shmakov
3af2917c91 Do not reset input ring if one exists
Fixes: debbugs:18599
2014-10-02 07:31:56 -04:00
Glenn Morris
5f8947c700 Rotate etc/NEWS files for version 25 2014-10-01 21:24:07 -07:00
Stefan Monnier
31300bee24 Consolidate management/ownership of selections.
* lisp/select.el (gui-get-selection-alist): New method.
(gui-get-selection): Use it.  Rename from x-get-selection.
(x-get-selection): Define as obsolete alias.
(x-get-clipboard): Mark obsolete.
(gui-get-primary-selection): New function.
(x-get-selection-value): Mark obsolete.
(gui-own-selection-alist, gui-disown-selection-alist)
(gui-selection-owner-p-alist): New methods.
(gui-set-selection): Use them.  Rename from x-set-selection.
(x-set-selection): Define as obsolete alias.
(gui--valid-simple-selection-p): Rename from
x-valid-simple-selection-p.
* lisp/w32-common-fns.el (gui-own-selection, gui-disown-selection)
(gui-selection-owner-p, gui-get-selection): Define for w32.
(w32-get-selection-value): Rename from x-get-selection-value.
Use the new gui-last-selected-text.
* lisp/term/x-win.el (x-get-selection-value): Remove.
(x-clipboard-yank): Declare obsolete.
(gui-own-selection, gui-disown-selection, gui-get-selection)
(gui-selection-owner-p): Define for x.
* lisp/term/w32-win.el (w32-win-suspend-error): Rename from
x-win-suspend-error.
* lisp/term/pc-win.el (w16-get-selection-value): Rename from
x-get-selection-value.
(w16-selection-owner-p): Rename from x-selection-owner-p.
(gui-own-selection, gui-disown-selection, gui-get-selection)
(gui-selection-owner-p): Define for pc.
(w16--select-text): New function.
* lisp/term/ns-win.el (gui-own-selection, gui-disown-selection)
(gui-get-selection, gui-selection-owner-p): Define for ns.
* lisp/term.el (term-mouse-paste):
* lisp/mouse.el (mouse-yank-primary): Use gui-get-primary-selection.
* src/nsselect.m (ns-own-selection-internal, ns-disown-selection-internal):
Rename from the "x-" prefix.
2014-10-01 23:19:32 -04:00
Jay Belanger
c7c0acd47b Add missing name to Changelog. 2014-10-01 21:09:30 -05:00