2360
|
|
|
David Bremner |
12 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
2359
|
|
emacs: Fix search tab completion in terminals
In X, Emacs distinguishes the tab key, which produces a 'tab event; from C-i, which produces a ?\t event. However, in a terminal, these are indistinguishable and only produce a ?\t event. In order to simplify things, Emacs automatically translates from 'tab to ?\t (see "Function key translations" in M-x describe-bindings), so functions only need to be bound to ?\t to work in all situations.
Previously, the search tab completion code usedq (kbd "<tab>"), which produced the event sequence [tab], which only matched the 'tab event and hence only worked in X. This patch changes it to (kbd "TAB"), which matches the general ?\t event and works in all situations.
|
Austin Clements |
12 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
2358
|
|
|
Mark Walters |
12 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
2357
|
|
|
Mark Walters |
12 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
2356
|
|
|
Mark Walters |
12 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
2355
|
|
|
Austin Clements |
12 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
2354
|
|
|
Austin Clements |
12 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
2353
|
|
|
Mark Walters |
12 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
2352
|
|
|
Dmitry Kurochkin |
12 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
2351
|
|
|
Dmitry Kurochkin |
12 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
2350
|
|
|
Austin Clements |
12 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
2349
|
|
show: Convert raw format to the new self-recursive style, properly support interior parts
This is fully compatible for root and leaf parts, but now has proper support for interior parts. This requires some design decisions that were guided by what I would want if I were to save a part. Specifically:
- Leaf parts are printed without headers and with transfer decoding. This is what makes sense for saving attachments. (Furthermore, the transfer decoding is necessary since, without the headers, the caller would not be able to interpret non-transfer-decoded output.)
- Message parts are printed with their message headers, but without enclosing part headers. This is what makes sense for saving a message as a whole (which is a message part) and for saving attached messages. This is symmetric for whole messages and for attached messages, though we special-case the whole message for performance reasons (and corner-case correctness reasons: given malformed input, GMime may not be able to reproduce it from the parsed representation).
- Multipart parts are printed with their headers and all child parts. It's not clear what the best thing to do for multipart is, but this was the most natural to implement and can be justified because such parts can't be interpreted without their headers.
As an added benefit, we can move the special-case code for part 0 into the raw formatter.
|
Austin Clements |
12 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
2348
|
|
|
Austin Clements |
12 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
2347
|
|
|
Austin Clements |
12 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
2346
|
|
|
Austin Clements |
12 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
2345
|
|
|
Austin Clements |
12 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
2344
|
|
|
Austin Clements |
12 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
2343
|
|
|
Austin Clements |
12 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
2342
|
|
|
David Bremner |
12 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
2341
|
|
|
David Bremner |
12 years ago
|
![Diff](/static/images/ico_diff.gif) |
|