diff options
| author | Po Lu | 2023-03-14 13:19:01 +0800 |
|---|---|---|
| committer | Po Lu | 2023-03-14 13:19:01 +0800 |
| commit | d6bddca26c7cf827e098ae783e865fcbcdd48799 (patch) | |
| tree | aba22e667c97e4418e84171309f46b9f2e4e7509 /src/textconv.c | |
| parent | 5964051fcefc52e02c88a41b91797cc7a785d550 (diff) | |
| download | emacs-d6bddca26c7cf827e098ae783e865fcbcdd48799.tar.gz emacs-d6bddca26c7cf827e098ae783e865fcbcdd48799.zip | |
Update Android port
* java/org/gnu/emacs/EmacsWindow.java (figureChange): Detect
mice on up events as well.
(onSomeKindOfMotionEvent): Work past framework bug.
* src/androidterm.c (android_perform_conversion_query):
* src/textconv.c (textconv_query):
* src/textconv.h (TEXTCONV_SKIP_ACTIVE_REGION): Remove unused
code.
Diffstat (limited to 'src/textconv.c')
| -rw-r--r-- | src/textconv.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/textconv.c b/src/textconv.c index 900277016f2..91f6e861c60 100644 --- a/src/textconv.c +++ b/src/textconv.c | |||
| @@ -147,9 +147,6 @@ select_window (Lisp_Object window, Lisp_Object norecord) | |||
| 147 | If FLAGS & TEXTCONV_SKIP_CONVERSION_REGION, then first move PT past | 147 | If FLAGS & TEXTCONV_SKIP_CONVERSION_REGION, then first move PT past |
| 148 | the conversion region in the specified direction if it is inside. | 148 | the conversion region in the specified direction if it is inside. |
| 149 | 149 | ||
| 150 | If FLAGS & TEXTCONV_SKIP_ACTIVE_REGION, then also move PT past the | ||
| 151 | region if the mark is active. | ||
| 152 | |||
| 153 | Value is 0 if QUERY->operation was not TEXTCONV_SUBSTITUTION | 150 | Value is 0 if QUERY->operation was not TEXTCONV_SUBSTITUTION |
| 154 | or if deleting the text was successful, and 1 otherwise. */ | 151 | or if deleting the text was successful, and 1 otherwise. */ |
| 155 | 152 | ||
| @@ -234,37 +231,6 @@ textconv_query (struct frame *f, struct textconv_callback_struct *query, | |||
| 234 | } | 231 | } |
| 235 | } | 232 | } |
| 236 | 233 | ||
| 237 | /* Likewise for the region if the mark is active. */ | ||
| 238 | |||
| 239 | if (flags & TEXTCONV_SKIP_ACTIVE_REGION) | ||
| 240 | { | ||
| 241 | temp = mark; | ||
| 242 | |||
| 243 | if (temp == -1) | ||
| 244 | goto escape; | ||
| 245 | |||
| 246 | start = min (temp, PT); | ||
| 247 | end = max (temp, PT); | ||
| 248 | |||
| 249 | if (pos >= start && pos < end) | ||
| 250 | { | ||
| 251 | switch (query->direction) | ||
| 252 | { | ||
| 253 | case TEXTCONV_FORWARD_CHAR: | ||
| 254 | case TEXTCONV_FORWARD_WORD: | ||
| 255 | case TEXTCONV_CARET_DOWN: | ||
| 256 | case TEXTCONV_NEXT_LINE: | ||
| 257 | case TEXTCONV_LINE_START: | ||
| 258 | pos = end; | ||
| 259 | break; | ||
| 260 | |||
| 261 | default: | ||
| 262 | pos = max (BEGV, start); | ||
| 263 | break; | ||
| 264 | } | ||
| 265 | } | ||
| 266 | } | ||
| 267 | |||
| 268 | escape: | 234 | escape: |
| 269 | 235 | ||
| 270 | /* If pos is outside the accessible part of the buffer or if it | 236 | /* If pos is outside the accessible part of the buffer or if it |