diff options
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/calendar/todo-mode.el | 6 | ||||
| -rw-r--r-- | lisp/eshell/em-smart.el | 10 | ||||
| -rw-r--r-- | lisp/leim/quail/sisheng.el | 65 | ||||
| -rw-r--r-- | lisp/minibuffer.el | 1 | ||||
| -rw-r--r-- | lisp/server.el | 53 | ||||
| -rw-r--r-- | lisp/term.el | 16 |
7 files changed, 80 insertions, 75 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b2982c56754..6dbd14f6a48 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2014-07-08 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2014-07-08 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * leim/quail/sisheng.el (sisheng-list): Don't bother with-case-table. | ||
| 4 | * eshell/em-smart.el (eshell-smart-scroll-window): Use | ||
| 5 | with-selected-window. | ||
| 6 | |||
| 3 | * xt-mouse.el (xterm-mouse-translate-1): Intern drag event (bug#17894). | 7 | * xt-mouse.el (xterm-mouse-translate-1): Intern drag event (bug#17894). |
| 4 | Remove also pointless window&mark manipulation. | 8 | Remove also pointless window&mark manipulation. |
| 5 | 9 | ||
diff --git a/lisp/calendar/todo-mode.el b/lisp/calendar/todo-mode.el index b4945c542c5..759b7773713 100644 --- a/lisp/calendar/todo-mode.el +++ b/lisp/calendar/todo-mode.el | |||
| @@ -2117,7 +2117,8 @@ the item at point." | |||
| 2117 | (save-excursion | 2117 | (save-excursion |
| 2118 | (todo-item-start) | 2118 | (todo-item-start) |
| 2119 | (if (re-search-forward (concat " \\[" (regexp-quote todo-comment-string) | 2119 | (if (re-search-forward (concat " \\[" (regexp-quote todo-comment-string) |
| 2120 | ": \\([^]]+\\)\\]") end t) | 2120 | ": \\([^]]+\\)\\]") |
| 2121 | end t) | ||
| 2121 | (if comment-delete | 2122 | (if comment-delete |
| 2122 | (when (todo-y-or-n-p "Delete comment? ") | 2123 | (when (todo-y-or-n-p "Delete comment? ") |
| 2123 | (delete-region (match-beginning 0) (match-end 0))) | 2124 | (delete-region (match-beginning 0) (match-end 0))) |
| @@ -2148,7 +2149,8 @@ the item at point." | |||
| 2148 | (cons item 0)))))) | 2149 | (cons item 0)))))) |
| 2149 | (when include-header | 2150 | (when include-header |
| 2150 | (while (not (string-match (concat todo-date-string-start | 2151 | (while (not (string-match (concat todo-date-string-start |
| 2151 | todo-date-pattern) new)) | 2152 | todo-date-pattern) |
| 2153 | new)) | ||
| 2152 | (setq new (read-from-minibuffer | 2154 | (setq new (read-from-minibuffer |
| 2153 | "Item must start with a date: " new)))) | 2155 | "Item must start with a date: " new)))) |
| 2154 | ;; Ensure lines following hard newlines are indented. | 2156 | ;; Ensure lines following hard newlines are indented. |
diff --git a/lisp/eshell/em-smart.el b/lisp/eshell/em-smart.el index ee6181000ba..70c53a809b5 100644 --- a/lisp/eshell/em-smart.el +++ b/lisp/eshell/em-smart.el | |||
| @@ -188,7 +188,8 @@ The options are `begin', `after' or `end'." | |||
| 188 | (add-hook 'eshell-post-command-hook | 188 | (add-hook 'eshell-post-command-hook |
| 189 | (function | 189 | (function |
| 190 | (lambda () | 190 | (lambda () |
| 191 | (setq eshell-smart-command-done t))) t t) | 191 | (setq eshell-smart-command-done t))) |
| 192 | t t) | ||
| 192 | 193 | ||
| 193 | (unless (eq eshell-review-quick-commands t) | 194 | (unless (eq eshell-review-quick-commands t) |
| 194 | (add-hook 'eshell-post-command-hook | 195 | (add-hook 'eshell-post-command-hook |
| @@ -200,8 +201,7 @@ The options are `begin', `after' or `end'." | |||
| 200 | (unless eshell-currently-handling-window | 201 | (unless eshell-currently-handling-window |
| 201 | (let ((inhibit-point-motion-hooks t) | 202 | (let ((inhibit-point-motion-hooks t) |
| 202 | (eshell-currently-handling-window t)) | 203 | (eshell-currently-handling-window t)) |
| 203 | (save-selected-window | 204 | (with-selected-window wind |
| 204 | (select-window wind) | ||
| 205 | (eshell-smart-redisplay))))) | 205 | (eshell-smart-redisplay))))) |
| 206 | 206 | ||
| 207 | (defun eshell-refresh-windows (&optional frame) | 207 | (defun eshell-refresh-windows (&optional frame) |
| @@ -212,12 +212,12 @@ The options are `begin', `after' or `end'." | |||
| 212 | (lambda (wind) | 212 | (lambda (wind) |
| 213 | (with-current-buffer (window-buffer wind) | 213 | (with-current-buffer (window-buffer wind) |
| 214 | (if eshell-mode | 214 | (if eshell-mode |
| 215 | (let (window-scroll-functions) | 215 | (let (window-scroll-functions) ;;FIXME: Why? |
| 216 | (eshell-smart-scroll-window wind (window-start)) | 216 | (eshell-smart-scroll-window wind (window-start)) |
| 217 | (setq affected t)))))) | 217 | (setq affected t)))))) |
| 218 | 0 frame) | 218 | 0 frame) |
| 219 | (if affected | 219 | (if affected |
| 220 | (let (window-scroll-functions) | 220 | (let (window-scroll-functions) ;;FIXME: Why? |
| 221 | (eshell-redisplay))))) | 221 | (eshell-redisplay))))) |
| 222 | 222 | ||
| 223 | (defun eshell-smart-display-setup () | 223 | (defun eshell-smart-display-setup () |
diff --git a/lisp/leim/quail/sisheng.el b/lisp/leim/quail/sisheng.el index f87204f4db4..324188e88e8 100644 --- a/lisp/leim/quail/sisheng.el +++ b/lisp/leim/quail/sisheng.el | |||
| @@ -250,39 +250,38 @@ Example: nve5 -> nüe | |||
| 250 | ;; Call quail-make-sisheng-rules for all syllables in sisheng-syllable-table. | 250 | ;; Call quail-make-sisheng-rules for all syllables in sisheng-syllable-table. |
| 251 | ;; | 251 | ;; |
| 252 | (let (sisheng-list) | 252 | (let (sisheng-list) |
| 253 | (with-case-table (standard-case-table) ;FIXME: Why? | 253 | (dolist (syllable sisheng-syllable-table) |
| 254 | (dolist (syllable sisheng-syllable-table) | 254 | (setq sisheng-list |
| 255 | (setq sisheng-list | 255 | (append (quail-make-sisheng-rules syllable) |
| 256 | (append (quail-make-sisheng-rules syllable) | 256 | sisheng-list))) |
| 257 | sisheng-list))) | 257 | |
| 258 | 258 | (dolist (syllable sisheng-syllable-table) | |
| 259 | (dolist (syllable sisheng-syllable-table) | 259 | (setq sisheng-list |
| 260 | (setq sisheng-list | 260 | (append (quail-make-sisheng-rules (upcase-initials syllable)) |
| 261 | (append (quail-make-sisheng-rules (upcase-initials syllable)) | 261 | sisheng-list))) |
| 262 | sisheng-list))) | 262 | |
| 263 | 263 | (dolist (syllable sisheng-syllable-table) | |
| 264 | (dolist (syllable sisheng-syllable-table) | 264 | (setq sisheng-list |
| 265 | (setq sisheng-list | 265 | (append (quail-make-sisheng-rules (upcase syllable)) |
| 266 | (append (quail-make-sisheng-rules (upcase syllable)) | 266 | sisheng-list))) |
| 267 | sisheng-list))) | 267 | |
| 268 | 268 | (eval `(quail-define-rules | |
| 269 | (eval `(quail-define-rules | 269 | ,@sisheng-list |
| 270 | ,@sisheng-list | 270 | |
| 271 | 271 | ("lv5" ["lü"]) | |
| 272 | ("lv5" ["lü"]) | 272 | ("lve5" ["lüe"]) |
| 273 | ("lve5" ["lüe"]) | 273 | ("nv5" ["nü"]) |
| 274 | ("nv5" ["nü"]) | 274 | ("nve5" ["nüe"]) |
| 275 | ("nve5" ["nüe"]) | 275 | |
| 276 | 276 | ("Lv5" ["Lü"]) | |
| 277 | ("Lv5" ["Lü"]) | 277 | ("Lve5" ["Lüe"]) |
| 278 | ("Lve5" ["Lüe"]) | 278 | ("Nv5" ["Nü"]) |
| 279 | ("Nv5" ["Nü"]) | 279 | ("Nve5" ["Nüe"]) |
| 280 | ("Nve5" ["Nüe"]) | 280 | |
| 281 | 281 | ("LV5" ["LÜ"]) | |
| 282 | ("LV5" ["LÜ"]) | 282 | ("LVE5" ["LÜE"]) |
| 283 | ("LVE5" ["LÜE"]) | 283 | ("NV5" ["NÜ"]) |
| 284 | ("NV5" ["NÜ"]) | 284 | ("NVE5" ["NÜE"])))) |
| 285 | ("NVE5" ["NÜE"]))))) | ||
| 286 | 285 | ||
| 287 | ;; Local Variables: | 286 | ;; Local Variables: |
| 288 | ;; coding: utf-8 | 287 | ;; coding: utf-8 |
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index f8b77cddbc5..f998843cd85 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el | |||
| @@ -3306,6 +3306,7 @@ the same set of elements." | |||
| 3306 | (string-match completion-pcm--delim-wild-regex str | 3306 | (string-match completion-pcm--delim-wild-regex str |
| 3307 | (car bounds))) | 3307 | (car bounds))) |
| 3308 | (if (zerop (car bounds)) | 3308 | (if (zerop (car bounds)) |
| 3309 | ;; FIXME: Don't hardcode "-" (bug#17559). | ||
| 3309 | (mapconcat 'string str "-") | 3310 | (mapconcat 'string str "-") |
| 3310 | ;; If there's a boundary, it's trickier. The main use-case | 3311 | ;; If there's a boundary, it's trickier. The main use-case |
| 3311 | ;; we consider here is file-name completion. We'd like | 3312 | ;; we consider here is file-name completion. We'd like |
diff --git a/lisp/server.el b/lisp/server.el index 681d93d6f5d..19c3c050bc5 100644 --- a/lisp/server.el +++ b/lisp/server.el | |||
| @@ -794,32 +794,33 @@ This handles splitting the command if it would be bigger than | |||
| 794 | (error "Invalid terminal type")) | 794 | (error "Invalid terminal type")) |
| 795 | (add-to-list 'frame-inherited-parameters 'client) | 795 | (add-to-list 'frame-inherited-parameters 'client) |
| 796 | (let ((frame | 796 | (let ((frame |
| 797 | (server-with-environment (process-get proc 'env) | 797 | (server-with-environment |
| 798 | '("LANG" "LC_CTYPE" "LC_ALL" | 798 | (process-get proc 'env) |
| 799 | ;; For tgetent(3); list according to ncurses(3). | 799 | '("LANG" "LC_CTYPE" "LC_ALL" |
| 800 | "BAUDRATE" "COLUMNS" "ESCDELAY" "HOME" "LINES" | 800 | ;; For tgetent(3); list according to ncurses(3). |
| 801 | "NCURSES_ASSUMED_COLORS" "NCURSES_NO_PADDING" | 801 | "BAUDRATE" "COLUMNS" "ESCDELAY" "HOME" "LINES" |
| 802 | "NCURSES_NO_SETBUF" "TERM" "TERMCAP" "TERMINFO" | 802 | "NCURSES_ASSUMED_COLORS" "NCURSES_NO_PADDING" |
| 803 | "TERMINFO_DIRS" "TERMPATH" | 803 | "NCURSES_NO_SETBUF" "TERM" "TERMCAP" "TERMINFO" |
| 804 | ;; rxvt wants these | 804 | "TERMINFO_DIRS" "TERMPATH" |
| 805 | "COLORFGBG" "COLORTERM") | 805 | ;; rxvt wants these |
| 806 | (make-frame `((window-system . nil) | 806 | "COLORFGBG" "COLORTERM") |
| 807 | (tty . ,tty) | 807 | (make-frame `((window-system . nil) |
| 808 | (tty-type . ,type) | 808 | (tty . ,tty) |
| 809 | ;; Ignore nowait here; we always need to | 809 | (tty-type . ,type) |
| 810 | ;; clean up opened ttys when the client dies. | 810 | ;; Ignore nowait here; we always need to |
| 811 | (client . ,proc) | 811 | ;; clean up opened ttys when the client dies. |
| 812 | ;; This is a leftover from an earlier | 812 | (client . ,proc) |
| 813 | ;; attempt at making it possible for process | 813 | ;; This is a leftover from an earlier |
| 814 | ;; run in the server process to use the | 814 | ;; attempt at making it possible for process |
| 815 | ;; environment of the client process. | 815 | ;; run in the server process to use the |
| 816 | ;; It has no effect now and to make it work | 816 | ;; environment of the client process. |
| 817 | ;; we'd need to decide how to make | 817 | ;; It has no effect now and to make it work |
| 818 | ;; process-environment interact with client | 818 | ;; we'd need to decide how to make |
| 819 | ;; envvars, and then to change the | 819 | ;; process-environment interact with client |
| 820 | ;; C functions `child_setup' and | 820 | ;; envvars, and then to change the |
| 821 | ;; `getenv_internal' accordingly. | 821 | ;; C functions `child_setup' and |
| 822 | (environment . ,(process-get proc 'env))))))) | 822 | ;; `getenv_internal' accordingly. |
| 823 | (environment . ,(process-get proc 'env))))))) | ||
| 823 | 824 | ||
| 824 | ;; ttys don't use the `display' parameter, but callproc.c does to set | 825 | ;; ttys don't use the `display' parameter, but callproc.c does to set |
| 825 | ;; the DISPLAY environment on subprocesses. | 826 | ;; the DISPLAY environment on subprocesses. |
diff --git a/lisp/term.el b/lisp/term.el index 95660eae9ad..825a202c046 100644 --- a/lisp/term.el +++ b/lisp/term.el | |||
| @@ -165,15 +165,13 @@ | |||
| 165 | ;; full advantage of this package | 165 | ;; full advantage of this package |
| 166 | ;; | 166 | ;; |
| 167 | ;; (add-hook 'term-mode-hook | 167 | ;; (add-hook 'term-mode-hook |
| 168 | ;; (function | 168 | ;; (function |
| 169 | ;; (lambda () | 169 | ;; (lambda () |
| 170 | ;; (setq term-prompt-regexp "^[^#$%>\n]*[#$%>] *") | 170 | ;; (setq term-prompt-regexp "^[^#$%>\n]*[#$%>] *") |
| 171 | ;; (make-local-variable 'mouse-yank-at-point) | 171 | ;; (setq-local mouse-yank-at-point t) |
| 172 | ;; (make-local-variable 'transient-mark-mode) | 172 | ;; (setq-local transient-mark-mode nil) |
| 173 | ;; (setq mouse-yank-at-point t) | 173 | ;; (auto-fill-mode -1) |
| 174 | ;; (setq transient-mark-mode nil) | 174 | ;; (setq tab-width 8 )))) |
| 175 | ;; (auto-fill-mode -1) | ||
| 176 | ;; (setq tab-width 8 )))) | ||
| 177 | ;; | 175 | ;; |
| 178 | ;; | 176 | ;; |
| 179 | ;; ---------------------------------------- | 177 | ;; ---------------------------------------- |