1. 02 Sep, 2015 2 commits
    • Stefan Monnier's avatar
      Generalize the prefix-command machinery of C-u · 5dc644a6
      Stefan Monnier authored
      * lisp/simple.el (prefix-command-echo-keystrokes-functions)
      (prefix-command-preserve-state-hook): New hooks.
      (internal-echo-keystrokes-prefix): New function.
      (prefix-command--needs-update, prefix-command--last-echo): New vars.
      (prefix-command-update, prefix-command-preserve): New functions.
      (reset-this-command-lengths): New compatibility definition.
      (universal-argument--mode): Call prefix-command-update.
      (universal-argument, universal-argument-more, negative-argument)
      (digit-argument): Call prefix-command-preserve-state.
      
      * src/keyboard.c: Call internal-echo-keystrokes-prefix to build
      the "prefix argument" to echo.
      (this_command_key_count_reset, before_command_key_count)
      (before_command_echo_length): Delete variables.
      (echo_add_key): Always add a space.
      (echo_char): Remove.
      (echo_dash): Don't give up when this_command_key_count is 0, since that
      is now the case after a prefix command.
      (echo_update): New function, extracted from echo_now.
      (echo_now): Use it.
      (add_command_key, read_char, record_menu_key): Remove old disabled code.
      (command_loop_1): Don't refrain from pushing an undo boundary when
      prefix-arg is set.  Remove other prefix-arg special case, now handled
      directly in the prefix commands instead.  But call echo_now if there's
      a prefix state to echo.
      (read_char, record_menu_key): Use echo_update instead of echo_char.
      (read_key_sequence): Use echo_now rather than echo_dash/echo_char.
      (Freset_this_command_lengths): Delete function.
      (syms_of_keyboard): Define Qinternal_echo_keystrokes_prefix.
      (syms_of_keyboard): Don't defsubr Sreset_this_command_lengths.
      
      * lisp/simple.el: Use those new hooks for C-u.
      (universal-argument--description): New function.
      (prefix-command-echo-keystrokes-functions): Use it.
      (universal-argument--preserve): New function.
      (prefix-command-preserve-state-hook): Use it.
      (command-execute): Call prefix-command-update if needed.
      
      * lisp/kmacro.el (kmacro-step-edit-prefix-commands)
      (kmacro-step-edit-prefix-index): Delete variables.
      (kmacro-step-edit-query, kmacro-step-edit-insert): Remove ad-hoc
      support for prefix arg commands.
      (kmacro-step-edit-macro): Don't bind kmacro-step-edit-prefix-index.
      
      * lisp/emulation/cua-base.el (cua--prefix-override-replay)
      (cua--shift-control-prefix): Use prefix-command-preserve-state.
      Remove now unused arg `arg'.
      (cua--prefix-override-handler, cua--prefix-repeat-handler)
      (cua--shift-control-c-prefix, cua--shift-control-x-prefix):
      Update accordingly.
      (cua--prefix-override-timeout): Don't call reset-this-command-lengths
      any more.
      (cua--keep-active, cua-exchange-point-and-mark): Don't set mark-active
      if the mark is not set.
      5dc644a6
    • Paul Eggert's avatar
      Rework quoting in tutorial · afe1cf00
      Paul Eggert authored
      * doc/lispintro/emacs-lisp-intro.texi (Sample let Expression)
      (if in more detail, type-of-animal in detail, else): Rework the
      early example to use " rather than ' so that we don’t burden
      complete novices with the low-priority detail of text quoting style.
      (Complete zap-to-char, kill-region, Complete copy-region-as-kill)
      (kill-new function, kill-ring-yank-pointer)
      (Complete forward-sentence, Loading Files)
      (Code for current-kill, Code for current-kill, yank):
      Resurrect the Emacs 22 versions of the code, which uses grave
      quoting style in doc strings.
      (Complete zap-to-char): Mention how quoting works in doc strings.
      afe1cf00
  2. 01 Sep, 2015 17 commits
  3. 31 Aug, 2015 20 commits
    • Rüdiger Sonderfeld's avatar
      hideif.el: Recognize .h++ as C++ header. · 5c0fb39c
      Rüdiger Sonderfeld authored
      * lisp/progmodes/hideif.el (hide-ifdef-header-regexp): Add .h++.
      5c0fb39c
    • Rüdiger Sonderfeld's avatar
      28854f27
    • Rüdiger Sonderfeld's avatar
      isearch: Document character folding mode. · 8307c06e
      Rüdiger Sonderfeld authored
      * isearch.el (isearch-forward): Mention `isearch-toggle-character-fold'
      in docstring.
      8307c06e
    • Paul Eggert's avatar
      Quoting fixes in ERC and Eshell · 244c417a
      Paul Eggert authored
      * lisp/erc/erc-autoaway.el (erc-autoaway-set-away):
      * lisp/erc/erc-backend.el (define-erc-response-handler):
      * lisp/erc/erc-fill.el (erc-fill-static-center):
      * lisp/eshell/em-dirs.el (eshell-save-some-last-dir):
      * lisp/eshell/em-glob.el (eshell-glob-entries):
      * lisp/eshell/em-hist.el (eshell-save-some-history):
      * lisp/eshell/em-unix.el (eshell-remove-entries, eshell/rm)
      (eshell-shuffle-files):
      * lisp/eshell/esh-cmd.el (eshell-do-eval):
      * lisp/eshell/esh-proc.el (eshell-process-interact)
      (eshell-query-kill-processes):
      Respect ‘text-quoting-style’ in diagnostics and doc strings.
      244c417a
    • Paul Eggert's avatar
      Quoting fixes in Gnus · 86f69200
      Paul Eggert authored
      * lisp/gnus/gnus-agent.el:
      (gnus-agent-possibly-synchronize-flags-server):
      * lisp/gnus/gnus-art.el (gnus-article-browse-delete-temp-files):
      * lisp/gnus/gnus-eform.el (gnus-edit-form):
      * lisp/gnus/gnus-group.el (gnus-group-edit-group)
      (gnus-group-nnimap-edit-acl):
      * lisp/gnus/gnus-topic.el (gnus-topic-edit-parameters):
      * lisp/gnus/mail-source.el (mail-source-delete-old-incoming):
      * lisp/gnus/message.el (message-strip-subject-encoded-words)
      (message-check-recipients, message-send-form-letter):
      * lisp/gnus/mm-decode.el (mm-display-part):
      * lisp/gnus/mm-uu.el (mm-uu-pgp-signed-extract-1):
      * lisp/gnus/mml-smime.el (mml-smime-get-dns-cert)
      (mml-smime-get-ldap-cert):
      * lisp/gnus/spam-report.el (spam-report-process-queue):
      Respect ‘text-quoting-style’ in diagnostics.
      * lisp/gnus/gnus-art.el (article-display-face)
      * lisp/gnus/gnus-fun.el (gnus-display-x-face-in-from):
      Use straight quoting in email.
      * lisp/gnus/rfc2231.el (rfc2231-decode-encoded-string):
      Escape apostrophes in doc strings.
      86f69200
    • Paul Eggert's avatar
      Quoting fixes in lisp mail, mh-e, net, url · 8bbff0d6
      Paul Eggert authored
      * lisp/mail/emacsbug.el (report-emacs-bug)
      (report-emacs-bug-hook): Use straight quotes in outgoing email,
      * lisp/mail/feedmail.el (feedmail-message-action-help-blat):
      * lisp/mail/rmail.el (rmail-unknown-mail-followup-to):
      * lisp/mail/rmailout.el (rmail-output-read-file-name):
      * lisp/net/imap.el (imap-interactive-login):
      * lisp/net/tls.el (open-tls-stream):
      * lisp/url/url-auth.el (url-register-auth-scheme):
      Respect ‘text-quoting-style’ in diagnostics.
      * lisp/mh-e/mh-e.el (mh-sortm-args):
      Quote docstring example using text quotes, not as a Lisp quote.
      8bbff0d6
    • Stephen Leake's avatar
      Fix some byte-compiler warnings in EDE · 0ff60ec8
      Stephen Leake authored
      This fixes a bug that caused ede-generic-new-autoloader to overwrite the
      existing autoloader list, rather than add to it.
      
      * lisp/cedet/ede/auto.el (ede-project-class-files): Delete obsolete name
      argument to eieio class constructor.
      (ede-show-supported-projects): New.
      (ede-add-project-autoload): Replace obsolete `eieio-object-name-string'
      with (oref ... name).
      (ede-auto-load-project): Use slot name, not initarg key.
      
      * lisp/cedet/ede/generic.el (ede-generic-load,
      ede-generic-find-matching-target): Use slot name, not initarg key.
      (ede-find-target): Use oref-default on class name.
      (ede-generic-new-autoloader): Delete obsolete name argument to eieio
      class constructor.
      (ede-enable-generic-projects): Make project type names unique.
      0ff60ec8
    • Eli Zaretskii's avatar
      Fix directory accessibility tests for w32 network volumes · e634dacc
      Eli Zaretskii authored
      * src/w32.c (faccessat): Don't fail with network volumes without a
      share.
      (w32_accessible_directory_p): Handle network volumes without a
      share.
      e634dacc
    • Eli Zaretskii's avatar
      Fix handling long file names in readdir on MS-Windows · 5ee3ef8e
      Eli Zaretskii authored
      * src/w32.c (sys_readdir): Append "\*" to the directory after
      converting it to UTF-16/ANSI, not before, to avoid overflowing the
      260-character limit on file names in filename_to_utf16/ansi.
      5ee3ef8e
    • Eli Zaretskii's avatar
      Make file-accessible-directory-p reliable on MS-Windows · 697be62c
      Eli Zaretskii authored
      * src/w32.c (w32_accessible_directory_p): New function.
      * src/w32.h (w32_accessible_directory_p): Add prototype.
      * src/fileio.c (file_accessible_directory_p) [WINDOWSNT]: Call
      w32_accessible_directory_p to test a directory for accessibility
      by the current user.  (Bug#21346)
      (Ffile_accessible_directory_p): Remove the w32 specific caveat
      from the doc string.
      697be62c
    • Martin Rudalics's avatar
      Don't call do_pending_window_change in signal handlers (Bug#21380) · 8af8355c
      Martin Rudalics authored
      * src/gtkutil.c (xg_frame_resized):
      * src/xterm.c (x_set_window_size):
      * src/w32term.c (x_set_window_size): Don't call
      do_pending_window_change.
      8af8355c
    • Paul Eggert's avatar
      Quoting fixes in lisp/org · 6cd2629b
      Paul Eggert authored
      * lisp/org/org-agenda.el (org-search-view, org-todo-list)
      (org-tags-view):
      * lisp/org/org-capture.el (org-capture-mode)
      * lisp/org/org-ctags.el (org-ctags-visit-buffer-or-file)
      (org-ctags-ask-append-topic):
      * lisp/org/org.el (org-time-string-to-time)
      (org-time-string-to-absolute):
      * lisp/org/org-ctags.el (org-ctags-visit-buffer-or-file)
      (org-ctags-ask-append-topic):
      * lisp/org/org.el (org-time-string-to-time)
      (org-time-string-to-absolute):
      Respect ‘text-quoting-style’ in diagnostics.
      * lisp/org/org-agenda.el (org-agenda-custom-commands)
      (org-agenda-dim-blocked-tasks): Plural of TODO is TODOs, not TODO’s.
      * lisp/org/org-capture.el (org-capture-fill-template):
      Avoid contraction in output file that might be ASCII.
      * lisp/org/org-compat.el (format-message):
      Define if not already defined, for backward compatibility.
      * lisp/org/org-src.el (org-edit-src-save):
      * lisp/org/org.el (org-cycle, org-ctrl-c-ctrl-c):
      Escape apostrophes in diagnostics.
      6cd2629b
    • Paul Eggert's avatar
      Treat “instead” strings as docstrings · 41ed99a3
      Paul Eggert authored
      * lisp/emacs-lisp/bytecomp.el (byte-compile-form):
      * lisp/emacs-lisp/macroexp.el (macroexp--obsolete-warning):
      Substitute quotes in instead strings.
      41ed99a3
    • NicolasPetton's avatar
      Better documentation of seq-let · 8d76c007
      NicolasPetton authored
      * doc/lispref/sequences.texi (Sequence Functions): Rephrase the
      documentation of seq-let.
      8d76c007
    • Paul Eggert's avatar
      * lisp/international/ccl.el: Fix quoting. · 6514fe88
      Paul Eggert authored
      6514fe88
    • Paul Eggert's avatar
      Quoting fixes in lisp/international and lisp/leim · 9ffb6ce9
      Paul Eggert authored
      * lisp/international/ccl.el (ccl-dump, ccl-dump-call):
      * lisp/international/ja-dic-utl.el (skkdic-lookup-key):
      * lisp/international/mule-cmds.el:
      (select-safe-coding-system-interactively, leim-list-file-name):
      * lisp/international/quail.el (quail-use-package, quail-help):
      * lisp/international/titdic-cnv.el (tit-process-header)
      (miscdic-convert):
      Respect text quoting style in doc strings and diagnostics.
      * lisp/international/quail.el (lisp/international/quail.el):
      * lisp/leim/quail/ethiopic.el ("ethiopic"):
      Escape apostrophes in doc strings.
      9ffb6ce9
    • Paul Eggert's avatar
      Make ‘text-quoting-style’ a plain defvar · d1729604
      Paul Eggert authored
      It doesn’t need customization, as it’s likely useful only by experts.
      Suggested by Stefan Monnier in:
      http://lists.gnu.org/archive/html/emacs-devel/2015-08/msg01020.html
      * lisp/cus-start.el: Remove doc.c section for builtin customized vars.
      d1729604
    • Paul Eggert's avatar
      Quoting fixes in lisp/textmodes · 2cac2e2e
      Paul Eggert authored
      * lisp/textmodes/bibtex.el (bibtex-validate)
      (bibtex-validate-globally, bibtex-search-entries):
      * lisp/textmodes/ispell.el (ispell-command-loop):
      * lisp/textmodes/page-ext.el (search-pages, pages-directory):
      * lisp/textmodes/texinfmt.el (texinfmt-version)
      (texinfo-format-region, texinfo-format-buffer-1):
      * lisp/textmodes/two-column.el (2C-split):
      Respect text quoting style in doc strings and diagnostics.
      * lisp/textmodes/conf-mode.el (conf-mode-map, conf-quote-normal):
      * lisp/textmodes/sgml-mode.el (sgml-specials, sgml-mode):
      Escape apostrophes in doc strings.
      2cac2e2e
    • Paul Eggert's avatar
      Documentation fixes re quotes · b5335522
      Paul Eggert authored
      Prefer curved quotes in examples if users will typically see
      curved quotes when the examples run.
      Mention format-message when appropriate.
      Don’t use @code in examples.
      Quote an apostrophe with @kbd.
      b5335522
    • Paul Eggert's avatar
      Quoting fixes in lisp/progmodes · 4c24b9e3
      Paul Eggert authored
      * lisp/progmodes/cc-engine.el (c-bos-report-error):
      * lisp/progmodes/cpp.el (cpp-edit-reset):
      * lisp/progmodes/ebrowse.el (ebrowse-tags-apropos):
      * lisp/progmodes/etags.el (etags-tags-apropos-additional)
      (etags-tags-apropos, list-tags, tags-apropos):
      * lisp/progmodes/executable.el (executable-set-magic):
      * lisp/progmodes/octave.el (octave-sync-function-file-names)
      (octave-help, octave-find-definition-default-filename)
      (octave-find-definition):
      Respect text quoting style in doc strings and diagnostics.
      * lisp/progmodes/cc-langs.el (c-populate-syntax-table):
      * lisp/progmodes/verilog-mode.el (verilog-auto-reset-widths):
      * lisp/progmodes/vhdl-mode.el (vhdl-electric-quote):
      Escape apostrophes in doc strings.
      * lisp/progmodes/cmacexp.el (c-macro-expansion):
      Use straight quoting in ASCII comment.
      * lisp/progmodes/idlwave.el (idlwave-auto-fill-split-string)
      (idlwave-pad-keyword):
      * lisp/progmodes/vhdl-mode.el (vhdl-widget-directory-validate)
      (vhdl-electric-open-bracket, vhdl-electric-close-bracket):
      (vhdl-electric-semicolon, vhdl-electric-comma)
      (vhdl-electric-period, vhdl-electric-equal):
      Use directed quotes in diagnostics and doc strings.
      4c24b9e3
  4. 30 Aug, 2015 1 commit