1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-14 09:39:42 +00:00
Commit Graph

54 Commits

Author SHA1 Message Date
Eli Zaretskii
3077d1f623 Fix Bug#3888:
w32-vars.el (x-select-enable-clipboard): Doc fix.
term/pc-win.el (x-display-name, x-colors)
(x-select-enable-clipboard, x-select-text): Doc fix.
term/common-win.el (x-display-name, x-colors): Doc fix.
term/ns-win.el (x-select-text, x-setup-function-keys, x-colors)
(xw-defined-colors): Doc fix.
w32-fns.el (x-select-text, x-setup-function-keys)
(x-get-selection, x-set-selection): Doc fix.
term/x-win.el (x-select-text, x-setup-function-keys)
(x-select-enable-clipboard, xw-defined-colors): Doc fix.
select.el (x-set-selection): Doc fix.
2009-07-25 09:31:05 +00:00
Chong Yidong
f9be2e3569 * simple.el (deactivate-mark): Optional argument FORCE.
(set-mark): Use deactivate-mark.

* info.el (Info-search): No need to check transient-mark-mode
before calling deactivate-mark.

* select.el (x-set-selection): Doc fix.
(x-valid-simple-selection-p): Allow buffer values.
(xselect--selection-bounds): Handle buffer values.  Suggested by
David De La Harpe Golden.

* mouse.el (mouse-set-region, mouse-drag-track): Call
copy-region-as-kill before setting the mark, to let
select-active-regions work.

* simple.el (deactivate-mark): If select-active-regions is
non-nil, copy the selection data into a string.
(activate-mark): If select-active-regions is non-nil, set the
selection to the current buffer.
(set-mark): Update selection if select-active-regions is non-nil.

* select.el (x-valid-simple-selection-p): Allow buffer values.
2009-07-15 01:25:32 +00:00
Chong Yidong
f470187ffb * select.el (x-set-selection): Doc fix.
(x-valid-simple-selection-p): Disallow selection data consisting
of a list or cons of integers, since that is not used.
(xselect--selection-bounds, xselect--int-to-cons): New functions.
(xselect-convert-to-string, xselect-convert-to-length)
(xselect-convert-to-filename, xselect-convert-to-charpos)
(xselect-convert-to-lineno, xselect-convert-to-colno): Use them.
2009-07-14 16:58:25 +00:00
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Glenn Morris
96ead4f94b (x-set-cut-buffer): Fix signal arguments. 2008-11-25 04:23:59 +00:00
Juanma Barranquero
6cda144ffe Fix typos in docstrings.
* cus-edit.el (customize-apropos-options, custom-comment)
  (custom-comment-tag, custom-face-edit-attribute-tag):
  Fix typos in docstrings.
  (custom-buffer-done-kill): Remove * from defcustom docstring.
  (custom-file): Fix typo in doc of defcustom choice.

* frame.el (display-visual-class): Fix typo in docstring.
  (initial-frame-alist, minibuffer-frame-alist, pop-up-frame-alist)
  (special-display-frame-alist, show-trailing-whitespace)
  (auto-hscroll-mode, blink-cursor-delay, blink-cursor-interval)
  (display-hourglass, hourglass-delay, cursor-in-non-selected-windows):
  Remove * from defcustom docstrings.

* md4.el (md4-buffer): Fix typo in docstring.
  (md4, md4-64): Doc fixes.
  (md4-pack-int32): Reflow docstring.

* paths.el (rmail-file-name): Remove * from defcustom docstring.
  (prune-directory-list, gnus-nntp-service): Fix typos in docstrings.

* rect.el (open-rectangle): Reflow docstring.
  (spaces-string): Fix docstring typo.  Use "?\s" instead of "? ".

* select.el (x-get-cut-buffer): Fix typo in docstring.

* timezone.el (timezone-zone-to-minute, timezone-time-from-absolute)
  (timezone-time-zone-from-absolute, timezone-leap-year-p):
  Fix typos in docstrings.

* emacs-lisp/assoc.el (asort, aelement, aput, aget, amake):
  Fix typos in docstrings.
2008-11-01 01:24:33 +00:00
Stefan Monnier
fdbe0096c5 Fix commenting convenition. 2008-09-14 21:18:56 +00:00
Glenn Morris
aa360da10d Add some compiler declarations, for builds without X. 2008-06-12 03:56:20 +00:00
Juanma Barranquero
29128339b1 (x-get-selection): Fix typo. 2008-06-01 11:54:47 +00:00
Glenn Morris
eb3fa2cfcf Switch to recommended form of GPLv3 permissions notice. 2008-05-06 08:06:51 +00:00
Chong Yidong
569ac23f8a (xselect-convert-to-string): Send a C_STRING only if the polymorphic
target TEXT is requested.
2008-04-21 02:02:01 +00:00
Stefan Monnier
cbee283dd7 Fix up comment convention on the arch-tag lines. 2008-04-10 14:10:46 +00:00
Glenn Morris
b50690ccaf (selection-coding-system): Make it a defcustom, and add the properties
from cus-start.el.  Bump :version.
2008-02-08 20:16:52 +00:00
Miles Bader
430d2ee291 Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-312
2008-01-09 01:21:15 +00:00
Miles Bader
59ce725a3b Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
2008-01-08 20:46:54 +00:00
Glenn Morris
409cc4a3ea Add 2008 to copyright years. 2008-01-07 02:45:14 +00:00
Miles Bader
0bd5084171 Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-294
2007-12-06 09:51:45 +00:00
Juanma Barranquero
c2649d3f84 (x-get-cut-buffer-internal, x-rotate-cut-buffers-internal,
x-store-cut-buffer-internal): Declare as functions.
2007-11-22 13:51:38 +00:00
Kenichi Handa
502597985d (selection-coding-system)
(next-selection-coding-system): Declaration moded from xselect.c.
(x-get-selection): Decode by selection-coding-system if it is
non-nil.  If it is nil, decode by a proper coding system.  Handle
C_STRING.
(ccl-check-utf-8, string-utf-8-p): Delete them.
(xselect-convert-to-string): Fix determining data-type in the case
that TEXT is requested.  Don't use selection-coding-system if it's
not proper for the data-type.
2007-11-18 09:12:14 +00:00
Glenn Morris
4837b516ea Replace `iff' in doc-strings and comments. 2007-08-08 07:40:09 +00:00
Glenn Morris
b4aa60262c Switch license to GPLv3 or later. 2007-07-25 04:50:21 +00:00
Glenn Morris
d7a0267c8d Add 2007 to copyright years. 2007-01-21 03:53:13 +00:00
Glenn Morris
c90f275771 Update copyright years. 2006-12-05 07:06:08 +00:00
Jan Djärv
1df04e22ca * select.el (ccl-check-utf-8, string-utf-8-p): New functions
(by Kenichi Handa).
 (xselect-convert-to-string): Decline requests for UTF8_STRING if
 the selection is not UTF-8.
2006-10-19 07:16:27 +00:00
Jan Djärv
b984fed926 * select.el (xselect-convert-to-string): If UTF8_STRING is requested
and the data doesn't look like UTF8, send STRING instead.
2006-09-16 17:12:38 +00:00
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
Thien-Thi Nguyen
0d30b33766 Update years in copyright notice; nfc. 2005-08-06 22:13:43 +00:00
Lute Kamstra
086add1519 Update FSF's address. 2005-07-04 23:32:44 +00:00
Kenichi Handa
832fe7204e (x-set-cut-buffer): Cancel previous change. 2004-10-25 00:46:04 +00:00
Kenichi Handa
c0f7266a85 (x-set-cut-buffer): Encode STRING if necessary. 2004-10-25 00:22:02 +00:00
Luc Teirlinck
15a24762a4 (x-get-selection, x-set-selection): Doc fixes. 2004-07-24 21:53:10 +00:00
Luc Teirlinck
b36ee2a6ec (xselect-convert-to-string): Move comment to intended line. 2004-05-03 21:46:00 +00:00
Luc Teirlinck
deae888e00 (xselect-convert-to-string): Bind `inhibit-read-only' to t. 2004-05-03 01:24:47 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Kenichi Handa
f147fd76db (x-get-selection): If the string returned by
x-get-selection-internal has text property `foreign-selection',
decode it while preserving that property.
2003-06-17 10:54:39 +00:00
Juanma Barranquero
47fb27231c (x-set-cut-buffer): Fix docstring. Check type with `stringp' instead of
`substring'.
2003-01-29 09:19:46 +00:00
Kenichi Handa
eb1416b9bc (xselect-convert-to-string): If TYPE is non-nil,
encode the selection data string.  Always return cons of type and
string.
(selection-converter-alist): Add (UTF8_STRING .
xselect-convert-to-string).
2002-08-14 00:57:55 +00:00
Eli Zaretskii
d176a839b0 (xselect-convert-to-string): If VALUE is a string,
return a cons of TYPE and the string.
2002-06-05 17:14:16 +00:00
Pavel Janík
307645975c Follow coding conventions. 2002-05-02 05:41:46 +00:00
Pavel Janík
47a31c6bab (xselect-convert-to-class, xselect-convert-to-name): Documented. 2001-12-14 19:58:10 +00:00
Pavel Janík
8157ac1432 Follow doc-string conventions. 2001-12-12 20:07:32 +00:00
Pavel Janík
60370d4073 Some fixes to follow coding conventions. 2001-07-15 19:53:53 +00:00
Eli Zaretskii
76058c27ab (x-get-selection): Docstring dix. 2000-11-27 15:35:32 +00:00
Gerd Moellmann
1b270b55c0 (x-set-selection): Call buffer-substring, not
substring.  Also fix docstring
1999-11-12 13:09:37 +00:00
Richard M. Stallman
4029fd9a3f (x-get-selection): Change default for data-type
back to `STRING'.
1997-08-04 07:46:26 +00:00
Karl Heuer
79501c8dd3 (x-get-selection): Set default data-type of selection
to COMPOUND_TEXT.
(selection-converter-alist): Add an entry for COMPOUND_TEXT.
1997-02-20 05:49:58 +00:00
Erik Naggum
b578f267af Update FSF's address. 1996-01-14 07:34:30 +00:00
Richard M. Stallman
5038b790cf (x-set-selection): Fix up interactive defaults. 1995-04-13 02:34:03 +00:00
Karl Heuer
8f1204db34 Update copyright. 1994-05-03 23:47:06 +00:00
Richard M. Stallman
6eac0de696 (x-valid-simple-selection-p): Accept an overlay.
(xselect-convert-to-string, xselect-convert-to-length):
(xselect-convert-to-filename xselect-convert-to-charpos):
(xselect-convert-to-lineno, xselect-convert-to-colno): Likewise.
1994-03-20 21:12:45 +00:00