diff options
| author | Joakim Verona | 2012-09-19 07:48:05 +0200 |
|---|---|---|
| committer | Joakim Verona | 2012-09-19 07:48:05 +0200 |
| commit | 99def29614db90aa00e3334c062a81d2d5dc9495 (patch) | |
| tree | b6df2925d3ed5e5fba17a8b0aa57d4dd829ac248 | |
| parent | 6c86337db3f2b22977d7b94b054458a2d446c504 (diff) | |
| parent | 2fd5e67d925be2b5fc945be5aaba27904cc65022 (diff) | |
| download | emacs-99def29614db90aa00e3334c062a81d2d5dc9495.tar.gz emacs-99def29614db90aa00e3334c062a81d2d5dc9495.zip | |
not compiling yet
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | configure.ac | 4 | ||||
| -rw-r--r-- | etc/NEWS | 12 | ||||
| -rw-r--r-- | lisp/ChangeLog | 323 | ||||
| -rw-r--r-- | lisp/dired-aux.el | 103 | ||||
| -rw-r--r-- | lisp/dired.el | 58 | ||||
| -rw-r--r-- | lisp/mail/rmail.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/ruby-mode.el | 44 | ||||
| -rw-r--r-- | nt/ChangeLog | 5 | ||||
| -rwxr-xr-x | nt/configure.bat | 5 | ||||
| -rw-r--r-- | src/emacsgtkfixed.c | 26 | ||||
| -rw-r--r-- | src/emacsgtkfixed.h | 2 | ||||
| -rw-r--r-- | test/automated/ruby-mode-tests.el | 16 |
13 files changed, 508 insertions, 96 deletions
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-09-18 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * configure.ac (HAVE_GTK): Mention if we use GTK2 or GTK3. | ||
| 4 | |||
| 1 | 2012-09-17 Andreas Schwab <schwab@linux-m68k.org> | 5 | 2012-09-17 Andreas Schwab <schwab@linux-m68k.org> |
| 2 | 6 | ||
| 3 | * Makefile.in (bootstrap): Revert last change. Run config.status | 7 | * Makefile.in (bootstrap): Revert last change. Run config.status |
diff --git a/configure.ac b/configure.ac index 0b4aece4daf..8f4d90afd53 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -1916,6 +1916,7 @@ if test "${with_gtk3}" = "yes" || test "${with_gtk}" = "yes" || test "$USE_X_TOO | |||
| 1916 | AC_DEFINE(HAVE_GTK3, 1, [Define to 1 if using GTK 3 or later.]) | 1916 | AC_DEFINE(HAVE_GTK3, 1, [Define to 1 if using GTK 3 or later.]) |
| 1917 | GTK_OBJ=emacsgtkfixed.o | 1917 | GTK_OBJ=emacsgtkfixed.o |
| 1918 | term_header=gtkutil.h | 1918 | term_header=gtkutil.h |
| 1919 | USE_GTK_TOOLKIT="GTK3" | ||
| 1919 | else | 1920 | else |
| 1920 | check_gtk2=yes | 1921 | check_gtk2=yes |
| 1921 | gtk3_pkg_errors="$GTK_PKG_ERRORS " | 1922 | gtk3_pkg_errors="$GTK_PKG_ERRORS " |
| @@ -1934,6 +1935,7 @@ if test "${with_gtk2}" = "yes" || test "$check_gtk2" = "yes"; then | |||
| 1934 | then | 1935 | then |
| 1935 | AC_MSG_ERROR($gtk3_pkg_errors$GTK_PKG_ERRORS) | 1936 | AC_MSG_ERROR($gtk3_pkg_errors$GTK_PKG_ERRORS) |
| 1936 | fi | 1937 | fi |
| 1938 | test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT="GTK2" | ||
| 1937 | fi | 1939 | fi |
| 1938 | 1940 | ||
| 1939 | if test x"$pkg_check_gtk" = xyes; then | 1941 | if test x"$pkg_check_gtk" = xyes; then |
| @@ -4457,7 +4459,7 @@ End: | |||
| 4457 | #### It makes printing result more understandable as using GTK sets | 4459 | #### It makes printing result more understandable as using GTK sets |
| 4458 | #### toolkit_scroll_bars to yes by default. | 4460 | #### toolkit_scroll_bars to yes by default. |
| 4459 | if test "${HAVE_GTK}" = "yes"; then | 4461 | if test "${HAVE_GTK}" = "yes"; then |
| 4460 | USE_X_TOOLKIT=GTK | 4462 | USE_X_TOOLKIT="$USE_GTK_TOOLKIT" |
| 4461 | fi | 4463 | fi |
| 4462 | 4464 | ||
| 4463 | echo " | 4465 | echo " |
| @@ -459,9 +459,17 @@ channel keys found, if any. | |||
| 459 | if the command ends in `;' (when operating on multiple files). | 459 | if the command ends in `;' (when operating on multiple files). |
| 460 | Otherwise, it executes the command on each file in parallel. | 460 | Otherwise, it executes the command on each file in parallel. |
| 461 | 461 | ||
| 462 | *** Typing M-n in the minibuffer of `dired-do-chmod', `dired-do-chgrp', | ||
| 463 | `dired-do-chown', `dired-do-touch' pulls the file attributes of the | ||
| 464 | file at point. | ||
| 465 | |||
| 466 | *** When the region is active, `m' (`dired-mark'), `u' (`dired-unmark'), | ||
| 467 | `DEL' (`dired-unmark-backward'), `d' (`dired-flag-file-deletion') | ||
| 468 | mark/unmark/flag all files in the active region. | ||
| 469 | |||
| 462 | *** The minibuffer default for `=' (`dired-diff) has changed. | 470 | *** The minibuffer default for `=' (`dired-diff) has changed. |
| 463 | It is now the backup file for the file at point, if one exists, rather | 471 | It is now the backup file for the file at point, if one exists. |
| 464 | than the file at the mark. | 472 | In Transient Mark mode the default is the file at the active mark. |
| 465 | 473 | ||
| 466 | *** `M-=' is no longer bound to `dired-backup-diff' in Dired buffers. | 474 | *** `M-=' is no longer bound to `dired-backup-diff' in Dired buffers. |
| 467 | The global binding for `M-=', `count-words-region' is in effect. | 475 | The global binding for `M-=', `count-words-region' is in effect. |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 549b70a1de1..8036e819d4d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,297 @@ | |||
| 1 | 2012-09-18 Juri Linkov <juri@jurta.org> | ||
| 2 | |||
| 3 | * dired-aux.el (dired-diff): Restore original functionality of | ||
| 4 | getting the default value, but keep new feature of using the | ||
| 5 | latest existing backup file (`diff-latest-backup-file'). | ||
| 6 | |||
| 7 | 2012-09-18 Juri Linkov <juri@jurta.org> | ||
| 8 | |||
| 9 | * dired.el (dired-mark): If the region is active in Transient Mark | ||
| 10 | mode, mark all files in the active region. Doc fix. | ||
| 11 | (dired-unmark, dired-flag-file-deletion, dired-unmark-backward): | ||
| 12 | Doc fix. (Bug#10624) | ||
| 13 | |||
| 14 | 2012-09-18 Juri Linkov <juri@jurta.org> | ||
| 15 | |||
| 16 | * dired-aux.el (dired-do-chxxx, dired-do-chmod): Default file | ||
| 17 | attributes for M-n are pulled from the file at point. | ||
| 18 | (dired-do-chgrp, dired-do-chown, dired-do-touch): Doc fix. | ||
| 19 | Suggested by Drew Adams. (Bug#10624) | ||
| 20 | |||
| 21 | 2012-09-18 Dmitry Gutov <dgutov@yandex.ru> | ||
| 22 | |||
| 23 | * progmodes/ruby-mode.el (ruby-brace-to-do-end): Don't add extra | ||
| 24 | whitespace after "end". | ||
| 25 | (ruby-do-end-to-brace): Collapse block to one line if it fits | ||
| 26 | within fill-column. | ||
| 27 | |||
| 28 | 2012-09-18 Martin Rudalics <rudalics@gmx.at> | ||
| 29 | |||
| 30 | * emacs-lisp/debug.el (debugger-bury-or-kill): Fix customization | ||
| 31 | value. | ||
| 32 | (debug): Don't remove debugger window when debugger is expected | ||
| 33 | to be back. | ||
| 34 | |||
| 35 | 2012-09-18 Chong Yidong <cyd@gnu.org> | ||
| 36 | |||
| 37 | * custom.el (defface): Doc fix. | ||
| 38 | |||
| 39 | * cus-edit.el (custom-unlispify-remove-prefixes): Add warning. | ||
| 40 | |||
| 41 | 2012-09-18 Martin Blais <blais@furius.ca> (tiny change) | ||
| 42 | |||
| 43 | * progmodes/compile.el (compilation-start): Use compilation-always-kill | ||
| 44 | to initialize query-on-exit; then test that instead (bug#12288). | ||
| 45 | |||
| 46 | 2012-09-17 Stefan Merten <smerten@oekonux.de> | ||
| 47 | |||
| 48 | * rst.el: Add support for `testcover'. | ||
| 49 | (rst-defcustom-testcover, rst-testcover-add-compose) | ||
| 50 | (rst-testcover-add-1value): New functions. | ||
| 51 | (rst-portable-mark-active-p): Replace by `use-region-p'. | ||
| 52 | (rst-update-section, rst-classify-adornment) | ||
| 53 | (rst-find-title-line): Mark `1value' forms. | ||
| 54 | (rst-classify-adornment): Remove superfluous form. | ||
| 55 | (rst-update-section, rst-get-adornments-around) | ||
| 56 | (rst-adornment-complete-p, rst-get-next-adornment) | ||
| 57 | (rst-adjust, rst-promote-region) | ||
| 58 | (rst-display-adornments-hierarchy, rst-straighten-adornments) | ||
| 59 | (rst-find-pfx-in-region, rst-section-tree-rec) | ||
| 60 | (rst-section-tree-point, rst-toc-insert, rst-toc-insert-node) | ||
| 61 | (rst-toc-node, rst-toc, rst-forward-section) | ||
| 62 | (rst-iterate-leftmost-paragraphs) | ||
| 63 | (rst-iterate-leftmost-paragraphs-2, rst-enumerate-region) | ||
| 64 | (rst-bullet-list-region) | ||
| 65 | (rst-convert-bullets-to-enumeration, rst-font-lock-keywords) | ||
| 66 | (rst-compile-find-conf, rst-compile) | ||
| 67 | (rst-repeat-last-character): Fix style. | ||
| 68 | |||
| 69 | 2012-09-17 Chong Yidong <cyd@gnu.org> | ||
| 70 | |||
| 71 | * comint.el (comint--complete-file-name-data): Don't add a space | ||
| 72 | if the status is `sole'; that adds a gratuitous space in the | ||
| 73 | completion-cycling case (Bug#12092). | ||
| 74 | |||
| 75 | * pcomplete.el (pcomplete-completions-at-point): Likewise. | ||
| 76 | |||
| 77 | 2012-09-17 Richard Stallman <rms@gnu.org> | ||
| 78 | |||
| 79 | * mail/rmailmm.el (rmail-mime-toggle-raw): Do rmail-mime-insert | ||
| 80 | only in the mime-shown mode, not in raw mode. | ||
| 81 | (rmail-mime): Toggle off mime by displaying the message without | ||
| 82 | mime processing. (Bug#12305) | ||
| 83 | |||
| 84 | * mail/rmail.el (rmail-retry-failure): | ||
| 85 | Turn off mime processing first. (Bug#12037) | ||
| 86 | |||
| 87 | * epa-mail.el (epa-mail-encrypt): Fix bug when a name has no key. | ||
| 88 | |||
| 89 | 2012-09-17 Chong Yidong <cyd@gnu.org> | ||
| 90 | |||
| 91 | * shell.el (shell-file-name-chars, shell-file-name-quote-list) | ||
| 92 | (shell-dynamic-complete-functions): Convert to defcustom. | ||
| 93 | (shell-prompt-pattern, shell-completion-fignore): Doc fix. | ||
| 94 | |||
| 95 | * bookmark.el (bookmark-bmenu-toggle-filenames): Doc fixes. | ||
| 96 | * comint.el (comint-prompt-read-only): | ||
| 97 | * custom.el (defcustom): | ||
| 98 | * hi-lock.el (hi-lock-mode): | ||
| 99 | * ibuffer.el (ibuffer-formats): | ||
| 100 | * ielm.el (ielm-prompt-read-only): | ||
| 101 | * novice.el (disable-command): | ||
| 102 | * saveplace.el (toggle-save-place): | ||
| 103 | * speedbar.el (speedbar-supported-extension-expressions): | ||
| 104 | * startup.el (auto-save-list-file-prefix, init-file-user) | ||
| 105 | (after-init-hook, inhibit-startup-echo-area-message): | ||
| 106 | * strokes.el (strokes-help): | ||
| 107 | * time-stamp.el (time-stamp): | ||
| 108 | * calendar/calendar.el (calendar, diary-file): | ||
| 109 | * calendar/diary-lib.el (diary-mail-entries, diary) | ||
| 110 | (diary-list-entries-hook): | ||
| 111 | * calendar/holidays.el (holidays, calendar-holidays): | ||
| 112 | * calendar/lunar.el (lunar-phases): | ||
| 113 | * calendar/solar.el (sunrise-sunset): | ||
| 114 | * emulation/edt.el (edt-load-keys): | ||
| 115 | * emulation/viper.el (viper-mode): | ||
| 116 | * eshell/em-alias.el (eshell-command-aliases-list): | ||
| 117 | * eshell/esh-util.el (eshell-convert-numeric-arguments): | ||
| 118 | * international/ogonek.el (ogonek-information): | ||
| 119 | * net/tramp-cmds.el (tramp-bug): | ||
| 120 | * net/quickurl.el (quickurl-reread-hook-postfix): | ||
| 121 | * play/decipher.el (decipher-font-lock-keywords): | ||
| 122 | * progmodes/cc-styles.el (c-set-style): | ||
| 123 | * progmodes/idlw-shell.el (idlwave-shell-prompt-pattern): | ||
| 124 | * progmodes/inf-lisp.el (inferior-lisp-prompt): | ||
| 125 | * progmodes/octave-mod.el (octave-mode): | ||
| 126 | * progmodes/sql.el (sql-mode, sql-interactive-mode, sql-password): | ||
| 127 | * progmodes/verilog-mode.el (verilog-read-defines): | ||
| 128 | * textmodes/two-column.el (2C-mode): Likewise. | ||
| 129 | |||
| 130 | 2012-09-16 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 131 | |||
| 132 | * mail/mailabbrev.el (mail-abbrev-expand-hook): Work for a mail aliasee | ||
| 133 | that holds many addresses. | ||
| 134 | |||
| 135 | 2012-09-16 Chong Yidong <cyd@gnu.org> | ||
| 136 | |||
| 137 | * align.el (align-areas): Call the indication function with | ||
| 138 | positions instead of markers for arguments (Bug#12343). | ||
| 139 | |||
| 140 | * files.el (parse-colon-path): Use split-string (Bug#12351). | ||
| 141 | |||
| 142 | * window.el (special-display-popup-frame): Doc fix (Bug#8853). | ||
| 143 | (display-buffer-function): Mark as obsolete. | ||
| 144 | |||
| 145 | * progmodes/compile.el (compilation-parse-errors): Accept list | ||
| 146 | values similar to font-lock-keywords (Bug#12136). Suggested by | ||
| 147 | Oleksandr Manzyuk. | ||
| 148 | (compilation-error-regexp-alist): Doc fix. | ||
| 149 | |||
| 150 | 2012-09-15 Glenn Morris <rgm@gnu.org> | ||
| 151 | |||
| 152 | * version.el (emacs-bzr-version-bzr): New function. | ||
| 153 | (emacs-bzr-get-version): Add optional EXTERNAL argument. | ||
| 154 | |||
| 155 | * vc/vc-bzr.el (vc-bzr-working-revision): For lightweight local | ||
| 156 | checkouts, check the parent dirstate matches the branch. | ||
| 157 | Add "--tree" to "bzr revno" arguments. Don't try to shorten the | ||
| 158 | empty string. | ||
| 159 | |||
| 160 | * version.el (emacs-bzr-version): Doc fix. | ||
| 161 | (emacs-bzr-version-dirstate): New function. | ||
| 162 | (emacs-bzr-get-version): For lightweight checkouts, if the parent | ||
| 163 | is local try and check that it matches the branch. If not, just | ||
| 164 | use dirstate information. (Bug#12441) | ||
| 165 | |||
| 166 | 2012-09-14 Juri Linkov <juri@jurta.org> | ||
| 167 | |||
| 168 | * dired-aux.el (dired-do-chmod): Use `eq' to detect empty input. | ||
| 169 | (Bug#12399) | ||
| 170 | |||
| 171 | 2012-09-14 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 172 | |||
| 173 | * emacs-lisp/advice.el (ad-prognify): Remove, use macroexp-progn. | ||
| 174 | |||
| 175 | * emacs-lisp/edebug.el: Miscellaneous cleanup. | ||
| 176 | Remove obsolete byte-compiler hack that tried to silence some warnings. | ||
| 177 | (edebug-submit-bug-report): Remove. | ||
| 178 | (edebug-get-buffer-window, edebug-sit-for, edebug-input-pending-p): | ||
| 179 | Remove aliases, use the un-prefixed name instead. | ||
| 180 | (edebug-pop-to-buffer): Consider other frames. | ||
| 181 | (edebug-original-read):: Make it more obvious that it's always defined. | ||
| 182 | (edebug--make-form-data-entry, edebug--form-data-name) | ||
| 183 | (edebug--form-data-begin, edebug--form-data-end): Rename from the | ||
| 184 | single-dashed name, and implement with cl-defstruct. | ||
| 185 | (edebug-set-form-data-entry): Use the standard accessors. | ||
| 186 | (edebug-make-top-form-data-entry): Use push. | ||
| 187 | (edebug-no-match): Drop useless `funcall'. | ||
| 188 | (mapcar, mapconcat, mapatoms, apply, funcall): Don't add debug specs | ||
| 189 | to functions. | ||
| 190 | (defsubst, dont-compile, eval-when-compile, eval-and-compile) | ||
| 191 | (delay-mode-hooks, with-temp-file, with-temp-message, ad-dolist) | ||
| 192 | (with-syntax-table, push, pop, 1value, noreturn, defadvice) | ||
| 193 | (easy-menu-define, with-custom-print): Remove redundant specs. | ||
| 194 | (edebug-outside-overriding-local-map) | ||
| 195 | (edebug-outside-overriding-terminal-local-map): Remove, unused. | ||
| 196 | (edebug--display): Bind unread-command-events directly to nil rather | ||
| 197 | than binding it to unread-command-events and later setting it to nil. | ||
| 198 | (edebug--display): Kill edebug-eval-buffer here... | ||
| 199 | (edebug--recursive-edit): ...rather than here. | ||
| 200 | Bind standard-output and standard-input. | ||
| 201 | (edebug-eval): Check cl-macroexpand-all is fboundp. | ||
| 202 | (edebug-temp-display-freq-count): Fix last change. | ||
| 203 | |||
| 204 | * emacs-lisp/easymenu.el (easy-menu-define): Add `debug' spec. | ||
| 205 | * subr.el (noreturn, 1value): Add `debug' spec. | ||
| 206 | * emacs-lisp/advice.el: Require cl-lib. | ||
| 207 | (ad-copy-tree): Remove, use copy-tree instead. | ||
| 208 | (ad-dolist): Remove use dolist or cl-dolist instead. | ||
| 209 | (ad-do-return): Remove, use cl-return instead. | ||
| 210 | (defadvice): Add `debug' spec. | ||
| 211 | |||
| 212 | 2012-09-13 Juri Linkov <juri@jurta.org> | ||
| 213 | |||
| 214 | * dired-aux.el (dired-do-chxxx): Use `eq' to detect empty input. | ||
| 215 | (Bug#12399) | ||
| 216 | |||
| 217 | 2012-09-13 Glenn Morris <rgm@gnu.org> | ||
| 218 | |||
| 219 | * calc/calc.el (math-compose-expr): | ||
| 220 | * calc/calc-ext.el (math-compose-expr): | ||
| 221 | * progmodes/cc-defs.el (cl-macroexpand-all): | ||
| 222 | * progmodes/cc-langs.el (delete-duplicates, mapcan) | ||
| 223 | (cl-macroexpand-all): Update declarations. | ||
| 224 | |||
| 225 | * vc/vc.el: No need to require ediff. | ||
| 226 | (ediff-load-version-control): Declare. | ||
| 227 | (ediff-vc-internal): Fix declaration. | ||
| 228 | (vc-version-ediff): Require ediff. | ||
| 229 | |||
| 230 | 2012-09-13 Paul Eggert <eggert@cs.ucla.edu> | ||
| 231 | |||
| 232 | Use a more backwards-compatible timer format (Bug#12430). | ||
| 233 | * emacs-lisp/timer.el (timer): PSECS is now at the end, rather than | ||
| 234 | being right after USECS, as that better supports old code that | ||
| 235 | inadvisedly looked directly at the timer vector. | ||
| 236 | |||
| 237 | 2012-09-13 Kenichi Handa <handa@gnu.org> | ||
| 238 | |||
| 239 | * language/chinese.el ("Chinese-GB", "Chinese-BIG5") | ||
| 240 | ("Chinese-CNS", "Chinese-EUC-TW"): Add chinese-gbk to | ||
| 241 | `coding-priority' property of these language environment. | ||
| 242 | |||
| 243 | 2012-09-13 Paul Eggert <eggert@cs.ucla.edu> | ||
| 244 | |||
| 245 | Fix glitches caused by addition of psec to timers (Bug#12430). | ||
| 246 | * image.el (image-animate-timer): | ||
| 247 | * time.el (display-time-world-timer): | ||
| 248 | Use timer--function and timer--args rather than raw access to | ||
| 249 | timer vector. | ||
| 250 | |||
| 251 | 2012-09-13 Glenn Morris <rgm@gnu.org> | ||
| 252 | |||
| 253 | * emacs-lisp/bytecomp.el (byte-compile-warning-prefix): | ||
| 254 | If not compiling a file, try using load-file-name. | ||
| 255 | |||
| 256 | 2012-09-13 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 257 | |||
| 258 | * emacs-lisp/edebug.el (edebug-outside-unread-command-events): | ||
| 259 | Fix last change. | ||
| 260 | (edebug-update-eval-list): Use `push'. | ||
| 261 | |||
| 262 | * emacs-lisp/edebug.el: Use lexical-binding. | ||
| 263 | Remove the "edebug-" prefix from non-dynamically-scoped variables. | ||
| 264 | Mark unused args with underscore. | ||
| 265 | (edebug-save-restriction, edebug-outside-excursion): Use `declare'. | ||
| 266 | (edebug-form-data): Use defvar-local. | ||
| 267 | (edebug-make-before-and-after-form, edebug-make-after-form): | ||
| 268 | Use backquote. | ||
| 269 | (edebug-args, edebug-value, edebug-after-index, edebug-arg-mode): | ||
| 270 | Not dynamically scoped any more. | ||
| 271 | (edebug--enter-trace): Add arguments `function' and `args'. | ||
| 272 | Rename from edebug-enter-trace. | ||
| 273 | (edebug-enter): Call it accordingly. Bind edebug-function explicitly. | ||
| 274 | (edebug--update-coverage): Add `after-index' and `value' args. | ||
| 275 | Rename from edebug-update-coverage. | ||
| 276 | (edebug-slow-after): Call it accordingly. | ||
| 277 | (edebug--recursive-edit): Add arg `arg-mode'. Rename from | ||
| 278 | edebug-recursive-edit. | ||
| 279 | (edebug--display): Call it accordingly. Add args `value', | ||
| 280 | `offset-index', and `arg-mode'. Rename from edebug-display. | ||
| 281 | (edebug-debugger, edebug): Call it accordingly. | ||
| 282 | (edebug-eval-display-list): Use dolist. | ||
| 283 | |||
| 284 | 2012-09-12 Juri Linkov <juri@jurta.org> | ||
| 285 | |||
| 286 | * info.el (Info-search): Don't check for isearch-mode and | ||
| 287 | isearch-regexp before let-binding search-spaces-regexp to | ||
| 288 | Info-search-whitespace-regexp. | ||
| 289 | (Info-isearch-search): Let-bind Info-search-whitespace-regexp to | ||
| 290 | search-whitespace-regexp if isearch-lax-whitespace or | ||
| 291 | isearch-regexp-lax-whitespace is non-nil. | ||
| 292 | (Info-mode): Don't set local variable search-whitespace-regexp. | ||
| 293 | http://lists.gnu.org/archive/html/emacs-devel/2012-08/msg00811.html | ||
| 294 | |||
| 1 | 2012-09-12 Stefan Monnier <monnier@iro.umontreal.ca> | 295 | 2012-09-12 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 296 | ||
| 3 | * emacs-lisp/debug.el (debugger-outer-unread-command-char, debug) | 297 | * emacs-lisp/debug.el (debugger-outer-unread-command-char, debug) |
| @@ -44,16 +338,16 @@ | |||
| 44 | 2012-09-11 Bastien Guerry <bzg@gnu.org> | 338 | 2012-09-11 Bastien Guerry <bzg@gnu.org> |
| 45 | 339 | ||
| 46 | * subr.el (set-temporary-overlay-map): Add a docstring. | 340 | * subr.el (set-temporary-overlay-map): Add a docstring. |
| 47 | (bug#12346) | 341 | (Bug#12346) |
| 48 | 342 | ||
| 49 | 2012-09-11 Bastien Guerry <bzg@gnu.org> | 343 | 2012-09-11 Bastien Guerry <bzg@gnu.org> |
| 50 | 344 | ||
| 51 | * minibuffer.el (completion-table-subvert): Fix docstring. | 345 | * minibuffer.el (completion-table-subvert): Fix docstring. |
| 52 | (bug#12347) | 346 | (Bug#12347) |
| 53 | 347 | ||
| 54 | 2012-09-11 Bastien Guerry <bzg@gnu.org> | 348 | 2012-09-11 Bastien Guerry <bzg@gnu.org> |
| 55 | 349 | ||
| 56 | * help-fns.el (describe-variable): Fix typo. (bug#12346) | 350 | * help-fns.el (describe-variable): Fix typo. (Bug#12346) |
| 57 | 351 | ||
| 58 | 2012-09-10 Michael R. Mauger <mmaug@yahoo.com> | 352 | 2012-09-10 Michael R. Mauger <mmaug@yahoo.com> |
| 59 | 353 | ||
| @@ -73,9 +367,8 @@ | |||
| 73 | 2012-09-10 Stefan Monnier <monnier@iro.umontreal.ca> | 367 | 2012-09-10 Stefan Monnier <monnier@iro.umontreal.ca> |
| 74 | 368 | ||
| 75 | * emacs-lisp/lisp-mode.el (emacs-list-byte-code-comment-re): New var. | 369 | * emacs-lisp/lisp-mode.el (emacs-list-byte-code-comment-re): New var. |
| 76 | (emacs-lisp-byte-code-comment) | 370 | (emacs-lisp-byte-code-comment, emacs-lisp-byte-code-syntax-propertize) |
| 77 | (emacs-lisp-byte-code-syntax-propertize, emacs-lisp-byte-code-mode): | 371 | (emacs-lisp-byte-code-mode): New functions. |
| 78 | New functions. | ||
| 79 | (eval-sexp-add-defvars): Don't skip defvars in column >0. | 372 | (eval-sexp-add-defvars): Don't skip defvars in column >0. |
| 80 | (eval-defun-2): Remove bogus interactive spec. | 373 | (eval-defun-2): Remove bogus interactive spec. |
| 81 | (lisp-indent-line): Remove redundant whole-exp code, now done in | 374 | (lisp-indent-line): Remove redundant whole-exp code, now done in |
| @@ -1454,7 +1747,7 @@ | |||
| 1454 | :local as the address. | 1747 | :local as the address. |
| 1455 | (list-processes): Doc fix. | 1748 | (list-processes): Doc fix. |
| 1456 | 1749 | ||
| 1457 | 2012-08-04 Michal Nazarewicz <mina86@mina86.com> (tiny change) | 1750 | 2012-08-04 Michal Nazarewicz <mina86@mina86.com> |
| 1458 | 1751 | ||
| 1459 | * lisp/mpc.el: Support password in host argument. | 1752 | * lisp/mpc.el: Support password in host argument. |
| 1460 | (mpc--proc-connect): Parse and use new password element. | 1753 | (mpc--proc-connect): Parse and use new password element. |
| @@ -1562,7 +1855,7 @@ | |||
| 1562 | * calc-mode.el (calc-basic-simplification-mode): Rename from | 1855 | * calc-mode.el (calc-basic-simplification-mode): Rename from |
| 1563 | `calc-limited-simplification-mode'. | 1856 | `calc-limited-simplification-mode'. |
| 1564 | (calc-alg-simplification-mode): New function. | 1857 | (calc-alg-simplification-mode): New function. |
| 1565 | (calc-set-simplify-mode): Adjust message. | 1858 | (calc-set-simplify-mode): Adjust message. |
| 1566 | 1859 | ||
| 1567 | * calc.el (calc-set-mode-line): Adjust mode line display for | 1860 | * calc.el (calc-set-mode-line): Adjust mode line display for |
| 1568 | basic simplification mode. | 1861 | basic simplification mode. |
| @@ -1760,7 +2053,7 @@ | |||
| 1760 | * notifications.el (notifications-on-action-signal) | 2053 | * notifications.el (notifications-on-action-signal) |
| 1761 | (notifications-on-closed-signal): Use also the bus address for the map. | 2054 | (notifications-on-closed-signal): Use also the bus address for the map. |
| 1762 | (notifications-notify, notifications-close-notification) | 2055 | (notifications-notify, notifications-close-notification) |
| 1763 | (notifications-get-capabilities): Add optional argument BUS. | 2056 | (notifications-get-capabilities): Add optional argument BUS. |
| 1764 | 2057 | ||
| 1765 | 2012-07-27 Tassilo Horn <tsdh@gnu.org> | 2058 | 2012-07-27 Tassilo Horn <tsdh@gnu.org> |
| 1766 | 2059 | ||
| @@ -1880,7 +2173,7 @@ | |||
| 1880 | ses-cell-set-formula or ses-set-cell to change the cell and handle | 2173 | ses-cell-set-formula or ses-set-cell to change the cell and handle |
| 1881 | the undo at the same time, but rather use lower level new macros | 2174 | the undo at the same time, but rather use lower level new macros |
| 1882 | `ses-cell-formula-aset' and `ses-cell-references-aset' and handle | 2175 | `ses-cell-formula-aset' and `ses-cell-references-aset' and handle |
| 1883 | the undo directly. Refresh the mode line. | 2176 | the undo directly. Refresh the mode line. |
| 1884 | 2177 | ||
| 1885 | 2012-07-21 Leo Liu <sdl.web@gmail.com> | 2178 | 2012-07-21 Leo Liu <sdl.web@gmail.com> |
| 1886 | 2179 | ||
| @@ -5296,13 +5589,13 @@ | |||
| 5296 | * progmodes/verilog-mode.el (font-lock-keywords): | 5589 | * progmodes/verilog-mode.el (font-lock-keywords): |
| 5297 | Fix mis-highligting auto. Reported by Craig Barner. | 5590 | Fix mis-highligting auto. Reported by Craig Barner. |
| 5298 | (verilog-auto, verilog-auto-undef): Add AUTOUNDEF to remove | 5591 | (verilog-auto, verilog-auto-undef): Add AUTOUNDEF to remove |
| 5299 | defines from global name space. Reported by Dan Dever. | 5592 | defines from global name space. Reported by Dan Dever. |
| 5300 | (verilog-auto-reset, verilog-auto-reset-widths) | 5593 | (verilog-auto-reset, verilog-auto-reset-widths) |
| 5301 | (verilog-auto-tieoff): Support using unbased numbers for | 5594 | (verilog-auto-tieoff): Support using unbased numbers for |
| 5302 | AUTORESET and AUTOTIEOFF. | 5595 | AUTORESET and AUTOTIEOFF. |
| 5303 | (verilog-submit-bug-report): Update variable list. | 5596 | (verilog-submit-bug-report): Update variable list. |
| 5304 | (verilog-read-auto-params): Fix AUTOINPUT regexps containing | 5597 | (verilog-read-auto-params): Fix AUTOINPUT regexps containing |
| 5305 | parenthesis from not matching. Reported by Michael Rytting. | 5598 | parenthesis from not matching. Reported by Michael Rytting. |
| 5306 | (verilog-auto-template-lint): Fix hash error when linting modules | 5599 | (verilog-auto-template-lint): Fix hash error when linting modules |
| 5307 | with no used templates. | 5600 | with no used templates. |
| 5308 | (verilog-warn, verilog-warn-error) | 5601 | (verilog-warn, verilog-warn-error) |
| @@ -5312,12 +5605,12 @@ | |||
| 5312 | (verilog-read-auto-template): Add `verilog-auto-template-warn-unused' | 5605 | (verilog-read-auto-template): Add `verilog-auto-template-warn-unused' |
| 5313 | to report unused template errors. Reported by Brad Dobbie. | 5606 | to report unused template errors. Reported by Brad Dobbie. |
| 5314 | (verilog-read-decls): Fix AUTOWIRE etc on supply0, supply1 type | 5607 | (verilog-read-decls): Fix AUTOWIRE etc on supply0, supply1 type |
| 5315 | nets, bug438. Reported by Vns Blore. | 5608 | nets, bug438. Reported by Vns Blore. |
| 5316 | (verilog-auto-inout-module, verilog-auto-reg) | 5609 | (verilog-auto-inout-module, verilog-auto-reg) |
| 5317 | (verilog-read-decls, verilog-read-sub-decls-sig) | 5610 | (verilog-read-decls, verilog-read-sub-decls-sig) |
| 5318 | (verilog-signals-edit-wire-reg, verilog-signals-with): | 5611 | (verilog-signals-edit-wire-reg, verilog-signals-with): |
| 5319 | Fix passing of Verilog data types in ANSI input/output ports | 5612 | Fix passing of Verilog data types in ANSI input/output ports |
| 5320 | such as "output logic" into the AUTOs. Special case "wire" and | 5613 | such as "output logic" into the AUTOs. Special case "wire" and |
| 5321 | "reg" for backwards compatibility presuming Verilog 2001. | 5614 | "reg" for backwards compatibility presuming Verilog 2001. |
| 5322 | (verilog-auto-ascii-enum): Add "auto enum" as alias. | 5615 | (verilog-auto-ascii-enum): Add "auto enum" as alias. |
| 5323 | (verilog-preprocess): Fix replication of preprocess output. | 5616 | (verilog-preprocess): Fix replication of preprocess output. |
| @@ -5338,7 +5631,7 @@ | |||
| 5338 | (verilog-read-decls): Fix 'parameter type' not appearing in | 5631 | (verilog-read-decls): Fix 'parameter type' not appearing in |
| 5339 | AUTOINSTPARAM, bug340. Reported by Jonathan Greenlaw. | 5632 | AUTOINSTPARAM, bug340. Reported by Jonathan Greenlaw. |
| 5340 | (verilog-auto-logic): Fix when AUTOLOGIC present to properly do | 5633 | (verilog-auto-logic): Fix when AUTOLOGIC present to properly do |
| 5341 | AUTOINPUTs, bug411. Reported by Jonathan Greenlaw. | 5634 | AUTOINPUTs, bug411. Reported by Jonathan Greenlaw. |
| 5342 | (verilog-read-auto-lisp): Avoid syntax-ppss warning on AUTOLISP. | 5635 | (verilog-read-auto-lisp): Avoid syntax-ppss warning on AUTOLISP. |
| 5343 | Reported by David Kravitz. | 5636 | Reported by David Kravitz. |
| 5344 | 5637 | ||
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index e5ca463e8d4..7ba67050337 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el | |||
| @@ -51,33 +51,57 @@ into this list; they also should call `dired-log' to log the errors.") | |||
| 51 | (defconst dired-star-subst-regexp "\\(^\\|[ \t]\\)\\*\\([ \t]\\|$\\)") | 51 | (defconst dired-star-subst-regexp "\\(^\\|[ \t]\\)\\*\\([ \t]\\|$\\)") |
| 52 | (defconst dired-quark-subst-regexp "\\(^\\|[ \t]\\)\\?\\([ \t]\\|$\\)") | 52 | (defconst dired-quark-subst-regexp "\\(^\\|[ \t]\\)\\?\\([ \t]\\|$\\)") |
| 53 | 53 | ||
| 54 | (declare-function diff-latest-backup-file "diff" (fn)) ; actually belongs into files.el | ||
| 55 | |||
| 54 | ;;;###autoload | 56 | ;;;###autoload |
| 55 | (defun dired-diff (file &optional switches) | 57 | (defun dired-diff (file &optional switches) |
| 56 | "Compare file at point with file FILE using `diff'. | 58 | "Compare file at point with file FILE using `diff'. |
| 57 | If called interactively, prompt for FILE; if the file at point | 59 | If called interactively, prompt for FILE. If the file at point |
| 58 | has a backup file, use that as the default. | 60 | has a backup file, use that as the default. If the mark is active |
| 61 | in Transient Mark mode, use the file at the mark as the default. | ||
| 62 | \(That's the mark set by \\[set-mark-command], not by Dired's | ||
| 63 | \\[dired-mark] command.) | ||
| 64 | |||
| 65 | FILE is the first file given to `diff'. The file at point | ||
| 66 | is the second file given to `diff'. | ||
| 59 | 67 | ||
| 60 | FILE is the first file given to `diff'. | 68 | With prefix arg, prompt for second argument SWITCHES, which is |
| 61 | With prefix arg, prompt for second argument SWITCHES, | 69 | the string of command switches for the third argument of `diff'." |
| 62 | which is the string of command switches for `diff'." | ||
| 63 | (interactive | 70 | (interactive |
| 64 | (let* ((current (dired-get-filename t)) | 71 | (let* ((current (dired-get-filename t)) |
| 65 | (oldf (file-newest-backup current)) | 72 | ;; Get the latest existing backup file. |
| 66 | (dir (if oldf (file-name-directory oldf)))) | 73 | (oldf (diff-latest-backup-file current)) |
| 67 | (list (read-file-name | 74 | ;; Get the file at the mark. |
| 68 | (format "Diff %s with%s: " | 75 | (file-at-mark (if (and transient-mark-mode mark-active) |
| 69 | (file-name-nondirectory current) | 76 | (save-excursion (goto-char (mark t)) |
| 70 | (if oldf | 77 | (dired-get-filename t t)))) |
| 71 | (concat " (default " | 78 | (default-file (or file-at-mark |
| 72 | (file-name-nondirectory oldf) | 79 | (and oldf (file-name-nondirectory oldf)))) |
| 73 | ")") | 80 | ;; Use it as default if it's not the same as the current file, |
| 74 | "")) | 81 | ;; and the target dir is current or there is a default file. |
| 75 | dir oldf t) | 82 | (default (if (and (not (equal default-file current)) |
| 76 | (if current-prefix-arg | 83 | (or (equal (dired-dwim-target-directory) |
| 77 | (read-string "Options for diff: " | 84 | (dired-current-directory)) |
| 78 | (if (stringp diff-switches) | 85 | default-file)) |
| 79 | diff-switches | 86 | default-file)) |
| 80 | (mapconcat 'identity diff-switches " "))))))) | 87 | (target-dir (if default |
| 88 | (dired-current-directory) | ||
| 89 | (dired-dwim-target-directory))) | ||
| 90 | (defaults (dired-dwim-target-defaults (list current) target-dir))) | ||
| 91 | (list | ||
| 92 | (minibuffer-with-setup-hook | ||
| 93 | (lambda () | ||
| 94 | (set (make-local-variable 'minibuffer-default-add-function) nil) | ||
| 95 | (setq minibuffer-default defaults)) | ||
| 96 | (read-file-name | ||
| 97 | (format "Diff %s with%s: " current | ||
| 98 | (if default (format " (default %s)" default) "")) | ||
| 99 | target-dir default t)) | ||
| 100 | (if current-prefix-arg | ||
| 101 | (read-string "Options for diff: " | ||
| 102 | (if (stringp diff-switches) | ||
| 103 | diff-switches | ||
| 104 | (mapconcat 'identity diff-switches " "))))))) | ||
| 81 | (let ((current (dired-get-filename t))) | 105 | (let ((current (dired-get-filename t))) |
| 82 | (when (or (equal (expand-file-name file) | 106 | (when (or (equal (expand-file-name file) |
| 83 | (expand-file-name current)) | 107 | (expand-file-name current)) |
| @@ -223,10 +247,17 @@ List has a form of (file-name full-file-name (attribute-list))." | |||
| 223 | ;; OP-SYMBOL is the type of operation (for use in `dired-mark-pop-up'). | 247 | ;; OP-SYMBOL is the type of operation (for use in `dired-mark-pop-up'). |
| 224 | ;; ARG describes which files to use, as in `dired-get-marked-files'. | 248 | ;; ARG describes which files to use, as in `dired-get-marked-files'. |
| 225 | (let* ((files (dired-get-marked-files t arg)) | 249 | (let* ((files (dired-get-marked-files t arg)) |
| 226 | (default (and (eq op-symbol 'touch) | 250 | ;; The source of default file attributes is the file at point. |
| 227 | (stringp (car files)) | 251 | (default-file (dired-get-filename t)) |
| 228 | (format-time-string "%Y%m%d%H%M.%S" | 252 | (default (when default-file |
| 229 | (nth 5 (file-attributes (car files)))))) | 253 | (cond ((eq op-symbol 'touch) |
| 254 | (format-time-string | ||
| 255 | "%Y%m%d%H%M.%S" | ||
| 256 | (nth 5 (file-attributes default-file)))) | ||
| 257 | ((eq op-symbol 'chown) | ||
| 258 | (nth 2 (file-attributes default-file 'string))) | ||
| 259 | ((eq op-symbol 'chgrp) | ||
| 260 | (nth 3 (file-attributes default-file 'string)))))) | ||
| 230 | (prompt (concat "Change " attribute-name " of %s to" | 261 | (prompt (concat "Change " attribute-name " of %s to" |
| 231 | (if (eq op-symbol 'touch) | 262 | (if (eq op-symbol 'touch) |
| 232 | " (default now): " | 263 | " (default now): " |
| @@ -263,11 +294,15 @@ List has a form of (file-name full-file-name (attribute-list))." | |||
| 263 | ;;;###autoload | 294 | ;;;###autoload |
| 264 | (defun dired-do-chmod (&optional arg) | 295 | (defun dired-do-chmod (&optional arg) |
| 265 | "Change the mode of the marked (or next ARG) files. | 296 | "Change the mode of the marked (or next ARG) files. |
| 266 | Symbolic modes like `g+w' are allowed." | 297 | Symbolic modes like `g+w' are allowed. |
| 298 | Type M-n to pull the file attributes of the file at point | ||
| 299 | into the minibuffer." | ||
| 267 | (interactive "P") | 300 | (interactive "P") |
| 268 | (let* ((files (dired-get-marked-files t arg)) | 301 | (let* ((files (dired-get-marked-files t arg)) |
| 269 | (modestr (and (stringp (car files)) | 302 | ;; The source of default file attributes is the file at point. |
| 270 | (nth 8 (file-attributes (car files))))) | 303 | (default-file (dired-get-filename t)) |
| 304 | (modestr (when default-file | ||
| 305 | (nth 8 (file-attributes default-file)))) | ||
| 271 | (default | 306 | (default |
| 272 | (and (stringp modestr) | 307 | (and (stringp modestr) |
| 273 | (string-match "^.\\(...\\)\\(...\\)\\(...\\)$" modestr) | 308 | (string-match "^.\\(...\\)\\(...\\)\\(...\\)$" modestr) |
| @@ -300,7 +335,9 @@ Symbolic modes like `g+w' are allowed." | |||
| 300 | 335 | ||
| 301 | ;;;###autoload | 336 | ;;;###autoload |
| 302 | (defun dired-do-chgrp (&optional arg) | 337 | (defun dired-do-chgrp (&optional arg) |
| 303 | "Change the group of the marked (or next ARG) files." | 338 | "Change the group of the marked (or next ARG) files. |
| 339 | Type M-n to pull the file attributes of the file at point | ||
| 340 | into the minibuffer." | ||
| 304 | (interactive "P") | 341 | (interactive "P") |
| 305 | (if (memq system-type '(ms-dos windows-nt)) | 342 | (if (memq system-type '(ms-dos windows-nt)) |
| 306 | (error "chgrp not supported on this system")) | 343 | (error "chgrp not supported on this system")) |
| @@ -308,7 +345,9 @@ Symbolic modes like `g+w' are allowed." | |||
| 308 | 345 | ||
| 309 | ;;;###autoload | 346 | ;;;###autoload |
| 310 | (defun dired-do-chown (&optional arg) | 347 | (defun dired-do-chown (&optional arg) |
| 311 | "Change the owner of the marked (or next ARG) files." | 348 | "Change the owner of the marked (or next ARG) files. |
| 349 | Type M-n to pull the file attributes of the file at point | ||
| 350 | into the minibuffer." | ||
| 312 | (interactive "P") | 351 | (interactive "P") |
| 313 | (if (memq system-type '(ms-dos windows-nt)) | 352 | (if (memq system-type '(ms-dos windows-nt)) |
| 314 | (error "chown not supported on this system")) | 353 | (error "chown not supported on this system")) |
| @@ -317,7 +356,9 @@ Symbolic modes like `g+w' are allowed." | |||
| 317 | ;;;###autoload | 356 | ;;;###autoload |
| 318 | (defun dired-do-touch (&optional arg) | 357 | (defun dired-do-touch (&optional arg) |
| 319 | "Change the timestamp of the marked (or next ARG) files. | 358 | "Change the timestamp of the marked (or next ARG) files. |
| 320 | This calls touch." | 359 | This calls touch. |
| 360 | Type M-n to pull the file attributes of the file at point | ||
| 361 | into the minibuffer." | ||
| 321 | (interactive "P") | 362 | (interactive "P") |
| 322 | (dired-do-chxxx "Timestamp" dired-touch-program 'touch arg)) | 363 | (dired-do-chxxx "Timestamp" dired-touch-program 'touch arg)) |
| 323 | 364 | ||
diff --git a/lisp/dired.el b/lisp/dired.el index 54921a4ea66..0f453fe8f5d 100644 --- a/lisp/dired.el +++ b/lisp/dired.el | |||
| @@ -3097,21 +3097,37 @@ argument or confirmation)." | |||
| 3097 | (defun dired-mark (arg) | 3097 | (defun dired-mark (arg) |
| 3098 | "Mark the current (or next ARG) files. | 3098 | "Mark the current (or next ARG) files. |
| 3099 | If on a subdir headerline, mark all its files except `.' and `..'. | 3099 | If on a subdir headerline, mark all its files except `.' and `..'. |
| 3100 | If the region is active in Transient Mark mode, mark all files | ||
| 3101 | in the active region. | ||
| 3100 | 3102 | ||
| 3101 | Use \\[dired-unmark-all-files] to remove all marks | 3103 | Use \\[dired-unmark-all-files] to remove all marks |
| 3102 | and \\[dired-unmark] on a subdir to remove the marks in | 3104 | and \\[dired-unmark] on a subdir to remove the marks in |
| 3103 | this subdir." | 3105 | this subdir." |
| 3104 | (interactive "P") | 3106 | (interactive "P") |
| 3105 | (if (dired-get-subdir) | 3107 | (cond |
| 3106 | (save-excursion (dired-mark-subdir-files)) | 3108 | ;; Mark files in the active region. |
| 3109 | ((and transient-mark-mode mark-active) | ||
| 3110 | (save-excursion | ||
| 3111 | (let ((beg (region-beginning)) | ||
| 3112 | (end (region-end))) | ||
| 3113 | (dired-mark-files-in-region | ||
| 3114 | (progn (goto-char beg) (line-beginning-position)) | ||
| 3115 | (progn (goto-char end) (line-beginning-position)))))) | ||
| 3116 | ;; Mark subdir files from the subdir headerline. | ||
| 3117 | ((dired-get-subdir) | ||
| 3118 | (save-excursion (dired-mark-subdir-files))) | ||
| 3119 | ;; Mark the current (or next ARG) files. | ||
| 3120 | (t | ||
| 3107 | (let ((inhibit-read-only t)) | 3121 | (let ((inhibit-read-only t)) |
| 3108 | (dired-repeat-over-lines | 3122 | (dired-repeat-over-lines |
| 3109 | (prefix-numeric-value arg) | 3123 | (prefix-numeric-value arg) |
| 3110 | (function (lambda () (delete-char 1) (insert dired-marker-char))))))) | 3124 | (function (lambda () (delete-char 1) (insert dired-marker-char)))))))) |
| 3111 | 3125 | ||
| 3112 | (defun dired-unmark (arg) | 3126 | (defun dired-unmark (arg) |
| 3113 | "Unmark the current (or next ARG) files. | 3127 | "Unmark the current (or next ARG) files. |
| 3114 | If looking at a subdir, unmark all its files except `.' and `..'." | 3128 | If looking at a subdir, unmark all its files except `.' and `..'. |
| 3129 | If the region is active in Transient Mark mode, unmark all files | ||
| 3130 | in the active region." | ||
| 3115 | (interactive "P") | 3131 | (interactive "P") |
| 3116 | (let ((dired-marker-char ?\040)) | 3132 | (let ((dired-marker-char ?\040)) |
| 3117 | (dired-mark arg))) | 3133 | (dired-mark arg))) |
| @@ -3119,8 +3135,9 @@ If looking at a subdir, unmark all its files except `.' and `..'." | |||
| 3119 | (defun dired-flag-file-deletion (arg) | 3135 | (defun dired-flag-file-deletion (arg) |
| 3120 | "In Dired, flag the current line's file for deletion. | 3136 | "In Dired, flag the current line's file for deletion. |
| 3121 | With prefix arg, repeat over several lines. | 3137 | With prefix arg, repeat over several lines. |
| 3122 | 3138 | If on a subdir headerline, flag all its files except `.' and `..'. | |
| 3123 | If on a subdir headerline, mark all its files except `.' and `..'." | 3139 | If the region is active in Transient Mark mode, flag all files |
| 3140 | in the active region." | ||
| 3124 | (interactive "P") | 3141 | (interactive "P") |
| 3125 | (let ((dired-marker-char dired-del-marker)) | 3142 | (let ((dired-marker-char dired-del-marker)) |
| 3126 | (dired-mark arg))) | 3143 | (dired-mark arg))) |
| @@ -3128,7 +3145,9 @@ If on a subdir headerline, mark all its files except `.' and `..'." | |||
| 3128 | (defun dired-unmark-backward (arg) | 3145 | (defun dired-unmark-backward (arg) |
| 3129 | "In Dired, move up lines and remove marks or deletion flags there. | 3146 | "In Dired, move up lines and remove marks or deletion flags there. |
| 3130 | Optional prefix ARG says how many lines to unmark/unflag; default | 3147 | Optional prefix ARG says how many lines to unmark/unflag; default |
| 3131 | is one line." | 3148 | is one line. |
| 3149 | If the region is active in Transient Mark mode, unmark all files | ||
| 3150 | in the active region." | ||
| 3132 | (interactive "p") | 3151 | (interactive "p") |
| 3133 | (dired-unmark (- arg))) | 3152 | (dired-unmark (- arg))) |
| 3134 | 3153 | ||
| @@ -3744,17 +3763,22 @@ Ask means pop up a menu for the user to select one of copy, move or link." | |||
| 3744 | ;;;;;; dired-run-shell-command dired-do-shell-command dired-do-async-shell-command | 3763 | ;;;;;; dired-run-shell-command dired-do-shell-command dired-do-async-shell-command |
| 3745 | ;;;;;; dired-clean-directory dired-do-print dired-do-touch dired-do-chown | 3764 | ;;;;;; dired-clean-directory dired-do-print dired-do-touch dired-do-chown |
| 3746 | ;;;;;; dired-do-chgrp dired-do-chmod dired-compare-directories dired-backup-diff | 3765 | ;;;;;; dired-do-chgrp dired-do-chmod dired-compare-directories dired-backup-diff |
| 3747 | ;;;;;; dired-diff) "dired-aux" "dired-aux.el" "3c768e470d5d053d0049e0286ce38da7") | 3766 | ;;;;;; dired-diff) "dired-aux" "dired-aux.el" "2a883f0d481a8d0292eb90c09ae36a8e") |
| 3748 | ;;; Generated autoloads from dired-aux.el | 3767 | ;;; Generated autoloads from dired-aux.el |
| 3749 | 3768 | ||
| 3750 | (autoload 'dired-diff "dired-aux" "\ | 3769 | (autoload 'dired-diff "dired-aux" "\ |
| 3751 | Compare file at point with file FILE using `diff'. | 3770 | Compare file at point with file FILE using `diff'. |
| 3752 | If called interactively, prompt for FILE; if the file at point | 3771 | If called interactively, prompt for FILE. If the file at point |
| 3753 | has a backup file, use that as the default. | 3772 | has a backup file, use that as the default. If the mark is active |
| 3773 | in Transient Mark mode, use the file at the mark as the default. | ||
| 3774 | \(That's the mark set by \\[set-mark-command], not by Dired's | ||
| 3775 | \\[dired-mark] command.) | ||
| 3776 | |||
| 3777 | FILE is the first file given to `diff'. The file at point | ||
| 3778 | is the second file given to `diff'. | ||
| 3754 | 3779 | ||
| 3755 | FILE is the first file given to `diff'. | 3780 | With prefix arg, prompt for second argument SWITCHES, which is |
| 3756 | With prefix arg, prompt for second argument SWITCHES, | 3781 | the string of command switches for the third argument of `diff'. |
| 3757 | which is the string of command switches for `diff'. | ||
| 3758 | 3782 | ||
| 3759 | \(fn FILE &optional SWITCHES)" t nil) | 3783 | \(fn FILE &optional SWITCHES)" t nil) |
| 3760 | 3784 | ||
| @@ -3798,22 +3822,30 @@ Examples of PREDICATE: | |||
| 3798 | (autoload 'dired-do-chmod "dired-aux" "\ | 3822 | (autoload 'dired-do-chmod "dired-aux" "\ |
| 3799 | Change the mode of the marked (or next ARG) files. | 3823 | Change the mode of the marked (or next ARG) files. |
| 3800 | Symbolic modes like `g+w' are allowed. | 3824 | Symbolic modes like `g+w' are allowed. |
| 3825 | Type M-n to pull the file attributes of the file at point | ||
| 3826 | into the minibuffer. | ||
| 3801 | 3827 | ||
| 3802 | \(fn &optional ARG)" t nil) | 3828 | \(fn &optional ARG)" t nil) |
| 3803 | 3829 | ||
| 3804 | (autoload 'dired-do-chgrp "dired-aux" "\ | 3830 | (autoload 'dired-do-chgrp "dired-aux" "\ |
| 3805 | Change the group of the marked (or next ARG) files. | 3831 | Change the group of the marked (or next ARG) files. |
| 3832 | Type M-n to pull the file attributes of the file at point | ||
| 3833 | into the minibuffer. | ||
| 3806 | 3834 | ||
| 3807 | \(fn &optional ARG)" t nil) | 3835 | \(fn &optional ARG)" t nil) |
| 3808 | 3836 | ||
| 3809 | (autoload 'dired-do-chown "dired-aux" "\ | 3837 | (autoload 'dired-do-chown "dired-aux" "\ |
| 3810 | Change the owner of the marked (or next ARG) files. | 3838 | Change the owner of the marked (or next ARG) files. |
| 3839 | Type M-n to pull the file attributes of the file at point | ||
| 3840 | into the minibuffer. | ||
| 3811 | 3841 | ||
| 3812 | \(fn &optional ARG)" t nil) | 3842 | \(fn &optional ARG)" t nil) |
| 3813 | 3843 | ||
| 3814 | (autoload 'dired-do-touch "dired-aux" "\ | 3844 | (autoload 'dired-do-touch "dired-aux" "\ |
| 3815 | Change the timestamp of the marked (or next ARG) files. | 3845 | Change the timestamp of the marked (or next ARG) files. |
| 3816 | This calls touch. | 3846 | This calls touch. |
| 3847 | Type M-n to pull the file attributes of the file at point | ||
| 3848 | into the minibuffer. | ||
| 3817 | 3849 | ||
| 3818 | \(fn &optional ARG)" t nil) | 3850 | \(fn &optional ARG)" t nil) |
| 3819 | 3851 | ||
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 5606e71dea4..828cd6e72e7 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -4550,7 +4550,7 @@ encoded string (and the same mask) will decode the string." | |||
| 4550 | ;;; Start of automatically extracted autoloads. | 4550 | ;;; Start of automatically extracted autoloads. |
| 4551 | 4551 | ||
| 4552 | ;;;### (autoloads (rmail-edit-current-message) "rmailedit" "rmailedit.el" | 4552 | ;;;### (autoloads (rmail-edit-current-message) "rmailedit" "rmailedit.el" |
| 4553 | ;;;;;; "7d558f958574f6003fa474ce2f3c80a8") | 4553 | ;;;;;; "78b8b7d5c679935c118d595d473d7c5e") |
| 4554 | ;;; Generated autoloads from rmailedit.el | 4554 | ;;; Generated autoloads from rmailedit.el |
| 4555 | 4555 | ||
| 4556 | (autoload 'rmail-edit-current-message "rmailedit" "\ | 4556 | (autoload 'rmail-edit-current-message "rmailedit" "\ |
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index 77ec8084ea2..0f02e81cbad 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el | |||
| @@ -1112,8 +1112,9 @@ See `add-log-current-defun-function'." | |||
| 1112 | (goto-char end) | 1112 | (goto-char end) |
| 1113 | (when (eq (char-before) ?\}) | 1113 | (when (eq (char-before) ?\}) |
| 1114 | (delete-char -1) | 1114 | (delete-char -1) |
| 1115 | (skip-chars-backward " \t") | 1115 | (when (save-excursion |
| 1116 | (when (not (bolp)) | 1116 | (skip-chars-backward " \t") |
| 1117 | (not (bolp))) | ||
| 1117 | (insert "\n")) | 1118 | (insert "\n")) |
| 1118 | (insert "end") | 1119 | (insert "end") |
| 1119 | (setq end-marker (point-marker)) | 1120 | (setq end-marker (point-marker)) |
| @@ -1137,16 +1138,35 @@ See `add-log-current-defun-function'." | |||
| 1137 | t))) | 1138 | t))) |
| 1138 | 1139 | ||
| 1139 | (defun ruby-do-end-to-brace (orig end) | 1140 | (defun ruby-do-end-to-brace (orig end) |
| 1140 | (goto-char (- end 3)) | 1141 | (let (beg-marker end-marker beg-pos end-pos) |
| 1141 | (when (looking-at ruby-block-end-re) | 1142 | (goto-char (- end 3)) |
| 1142 | (delete-char 3) | 1143 | (when (looking-at ruby-block-end-re) |
| 1143 | (insert "}") | 1144 | (delete-char 3) |
| 1144 | (goto-char orig) | 1145 | (setq end-marker (point-marker)) |
| 1145 | (delete-char 2) | 1146 | (insert "}") |
| 1146 | (insert "{") | 1147 | (goto-char orig) |
| 1147 | (if (looking-at "\\s +|") | 1148 | (delete-char 2) |
| 1148 | (delete-char (- (match-end 0) (match-beginning 0) 1))) | 1149 | (insert "{") |
| 1149 | t)) | 1150 | (setq beg-marker (point-marker)) |
| 1151 | (when (looking-at "\\s +|") | ||
| 1152 | (delete-char (- (match-end 0) (match-beginning 0) 1)) | ||
| 1153 | (forward-char) | ||
| 1154 | (re-search-forward "|" (line-end-position) t)) | ||
| 1155 | (save-excursion | ||
| 1156 | (skip-chars-forward " \t\n\r") | ||
| 1157 | (setq beg-pos (point)) | ||
| 1158 | (goto-char end-marker) | ||
| 1159 | (skip-chars-backward " \t\n\r") | ||
| 1160 | (setq end-pos (point))) | ||
| 1161 | (when (or | ||
| 1162 | (< end-pos beg-pos) | ||
| 1163 | (and (= (line-number-at-pos beg-pos) (line-number-at-pos end-pos)) | ||
| 1164 | (< (+ (current-column) (- end-pos beg-pos) 2) fill-column))) | ||
| 1165 | (just-one-space -1) | ||
| 1166 | (goto-char end-marker) | ||
| 1167 | (just-one-space -1)) | ||
| 1168 | (goto-char beg-marker) | ||
| 1169 | t))) | ||
| 1150 | 1170 | ||
| 1151 | (defun ruby-toggle-block () | 1171 | (defun ruby-toggle-block () |
| 1152 | "Toggle block type from do-end to braces or back. | 1172 | "Toggle block type from do-end to braces or back. |
diff --git a/nt/ChangeLog b/nt/ChangeLog index 106f0e91695..311a10f66c5 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-09-18 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * configure.bat: Include stddef.h before gif_lib.h, to have size_t | ||
| 4 | defined, as needed by giflib-5.0.0. (Bug#12464) | ||
| 5 | |||
| 1 | 2012-09-17 Juanma Barranquero <lekktu@gmail.com> | 6 | 2012-09-17 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 7 | ||
| 3 | * config.nt: Sync with autogen/config.in. | 8 | * config.nt: Sync with autogen/config.in. |
diff --git a/nt/configure.bat b/nt/configure.bat index 5890b12d02e..7fedff411bc 100755 --- a/nt/configure.bat +++ b/nt/configure.bat | |||
| @@ -627,7 +627,10 @@ rm -f junk.c junk.obj | |||
| 627 | if (%gifsupport%) == (N) goto gifDone | 627 | if (%gifsupport%) == (N) goto gifDone |
| 628 | 628 | ||
| 629 | echo Checking for libgif... | 629 | echo Checking for libgif... |
| 630 | echo #include "gif_lib.h" >junk.c | 630 | rem giflib-5.0.0 needs size_t defined before gif_lib.h is included |
| 631 | rem redirection characters need to be protected from the shell | ||
| 632 | echo #include ^<stddef.h^> >junk.c | ||
| 633 | echo #include "gif_lib.h" >>junk.c | ||
| 631 | echo main (){} >>junk.c | 634 | echo main (){} >>junk.c |
| 632 | rem -o option is ignored with cl, but allows result to be consistent. | 635 | rem -o option is ignored with cl, but allows result to be consistent. |
| 633 | echo %COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >>config.log | 636 | echo %COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >>config.log |
diff --git a/src/emacsgtkfixed.c b/src/emacsgtkfixed.c index d23f3e21f24..c190862ab7d 100644 --- a/src/emacsgtkfixed.c +++ b/src/emacsgtkfixed.c | |||
| @@ -35,26 +35,26 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 35 | # pragma GCC diagnostic ignored "-Wunused-local-typedefs" | 35 | # pragma GCC diagnostic ignored "-Wunused-local-typedefs" |
| 36 | #endif | 36 | #endif |
| 37 | 37 | ||
| 38 | #define EMACS_TYPE_FIXED emacs_fixed_get_type () | 38 | //#define EMACS_TYPE_FIXED emacs_fixed_get_type () |
| 39 | #define EMACS_FIXED(obj) \ | 39 | /* #define EMACS_FIXED(obj) \ */ |
| 40 | G_TYPE_CHECK_INSTANCE_CAST (obj, EMACS_TYPE_FIXED, EmacsFixed) | 40 | /* G_TYPE_CHECK_INSTANCE_CAST (obj, EMACS_TYPE_FIXED, EmacsFixed) */ |
| 41 | 41 | ||
| 42 | typedef struct _EmacsFixed EmacsFixed; | 42 | typedef struct _EmacsFixed EmacsFixed; |
| 43 | typedef struct _EmacsFixedPrivate EmacsFixedPrivate; | 43 | typedef struct _EmacsFixedPrivate EmacsFixedPrivate; |
| 44 | typedef struct _EmacsFixedClass EmacsFixedClass; | 44 | typedef struct _EmacsFixedClass EmacsFixedClass; |
| 45 | 45 | ||
| 46 | struct _EmacsFixed | 46 | /* struct _EmacsFixed */ |
| 47 | { | 47 | /* { */ |
| 48 | GtkFixed container; | 48 | /* GtkFixed container; */ |
| 49 | 49 | ||
| 50 | /*< private >*/ | 50 | /* /\*< private >*\/ */ |
| 51 | EmacsFixedPrivate *priv; | 51 | /* EmacsFixedPrivate *priv; */ |
| 52 | }; | 52 | /* }; */ |
| 53 | 53 | ||
| 54 | struct _EmacsFixedClass | 54 | /* struct _EmacsFixedClass */ |
| 55 | { | 55 | /* { */ |
| 56 | GtkFixedClass parent_class; | 56 | /* GtkFixedClass parent_class; */ |
| 57 | }; | 57 | /* }; */ |
| 58 | 58 | ||
| 59 | struct _EmacsFixedPrivate | 59 | struct _EmacsFixedPrivate |
| 60 | { | 60 | { |
diff --git a/src/emacsgtkfixed.h b/src/emacsgtkfixed.h index 90fb37e521b..b18c541081f 100644 --- a/src/emacsgtkfixed.h +++ b/src/emacsgtkfixed.h | |||
| @@ -34,7 +34,7 @@ struct frame; | |||
| 34 | #define EMACS_IS_FIXED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EMACS_TYPE_FIXED)) | 34 | #define EMACS_IS_FIXED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EMACS_TYPE_FIXED)) |
| 35 | #define EMACS_FIXED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EMACS_TYPE_FIXED, EmacsFixedClass)) | 35 | #define EMACS_FIXED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EMACS_TYPE_FIXED, EmacsFixedClass)) |
| 36 | 36 | ||
| 37 | typedef struct _EmacsFixed EmacsFixed; | 37 | //typedef struct _EmacsFixed EmacsFixed; |
| 38 | typedef struct _EmacsFixedPrivate EmacsFixedPrivate; | 38 | typedef struct _EmacsFixedPrivate EmacsFixedPrivate; |
| 39 | typedef struct _EmacsFixedClass EmacsFixedClass; | 39 | typedef struct _EmacsFixedClass EmacsFixedClass; |
| 40 | 40 | ||
diff --git a/test/automated/ruby-mode-tests.el b/test/automated/ruby-mode-tests.el index e711b52fb9c..ba3040577b1 100644 --- a/test/automated/ruby-mode-tests.el +++ b/test/automated/ruby-mode-tests.el | |||
| @@ -219,12 +219,16 @@ VALUES-PLIST is a list with alternating index and value elements." | |||
| 219 | (should (string= "foo do |b|\nend" (buffer-string))))) | 219 | (should (string= "foo do |b|\nend" (buffer-string))))) |
| 220 | 220 | ||
| 221 | (ert-deftest ruby-toggle-block-to-brace () | 221 | (ert-deftest ruby-toggle-block-to-brace () |
| 222 | (with-temp-buffer | 222 | (let ((pairs '((16 . "foo {|b| b + 2 }") |
| 223 | (insert "foo do |b|\nend") | 223 | (15 . "foo {|b|\n b + 2\n}")))) |
| 224 | (ruby-mode) | 224 | (dolist (pair pairs) |
| 225 | (beginning-of-line) | 225 | (with-temp-buffer |
| 226 | (ruby-toggle-block) | 226 | (let ((fill-column (car pair))) |
| 227 | (should (string= "foo {|b|\n}" (buffer-string))))) | 227 | (insert "foo do |b|\n b + 2\nend") |
| 228 | (ruby-mode) | ||
| 229 | (beginning-of-line) | ||
| 230 | (ruby-toggle-block) | ||
| 231 | (should (string= (cdr pair) (buffer-string)))))))) | ||
| 228 | 232 | ||
| 229 | (ert-deftest ruby-toggle-block-to-multiline () | 233 | (ert-deftest ruby-toggle-block-to-multiline () |
| 230 | (with-temp-buffer | 234 | (with-temp-buffer |