edit search string and begin search from current location











up vote
2
down vote

favorite












I use C-s to start an incremental search. Sometimes I want to change the search string and either restart the search entirely from the beginning of the document or (other times) just change the search string and proceed from current location. How does one do this?










share|improve this question









New contributor




Alex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























    up vote
    2
    down vote

    favorite












    I use C-s to start an incremental search. Sometimes I want to change the search string and either restart the search entirely from the beginning of the document or (other times) just change the search string and proceed from current location. How does one do this?










    share|improve this question









    New contributor




    Alex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      I use C-s to start an incremental search. Sometimes I want to change the search string and either restart the search entirely from the beginning of the document or (other times) just change the search string and proceed from current location. How does one do this?










      share|improve this question









      New contributor




      Alex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I use C-s to start an incremental search. Sometimes I want to change the search string and either restart the search entirely from the beginning of the document or (other times) just change the search string and proceed from current location. How does one do this?







      search isearch






      share|improve this question









      New contributor




      Alex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      Alex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited 3 hours ago









      Drew

      46.3k461103




      46.3k461103






      New contributor




      Alex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 3 hours ago









      Alex

      1133




      1133




      New contributor




      Alex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Alex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Alex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted












          1. During Isearch M-e is bound to isearch-edit-string. It pauses Isearch and puts the current search string in the minibuffer so you can edit it. Just use C-s again to resume searching from the current position but with the new search string.



            (I know it looks like your search string is already always in the minibuffer during Isearch, but it is not. I you use some kind of indicator of minibuffer depth then you can see the difference. For example, I use a standalone minibuffer frame, and its background changes when the minibuffer is active. And it changes to a different hue for each recursive edit (minibuffer depth). And it changes to yet another hue for Isearch.)




          2. You can use C-h C-h b during Isearch to see a list of all of the Isearch key bindings (where you can find M-e).



            If you use Isearch+ then just C-h shows you detailed help, including bindings such as M-e.



            If you use library help-fns+.el then C-h M-k isearch-mode-map shows you all keys bound on that keymap, in human-readable form.



          3. With Isearch+ you can also interrupt Isearch completely, do some editing or whatever, and then resume where you left off. To do that, use C-x o (isearchp-open-recursive-edit). Resume searching with exit-recursive-edit (bound to C-M-c).







          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "583"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });






            Alex is a new contributor. Be nice, and check out our Code of Conduct.










             

            draft saved


            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2femacs.stackexchange.com%2fquestions%2f46179%2fedit-search-string-and-begin-search-from-current-location%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote



            accepted












            1. During Isearch M-e is bound to isearch-edit-string. It pauses Isearch and puts the current search string in the minibuffer so you can edit it. Just use C-s again to resume searching from the current position but with the new search string.



              (I know it looks like your search string is already always in the minibuffer during Isearch, but it is not. I you use some kind of indicator of minibuffer depth then you can see the difference. For example, I use a standalone minibuffer frame, and its background changes when the minibuffer is active. And it changes to a different hue for each recursive edit (minibuffer depth). And it changes to yet another hue for Isearch.)




            2. You can use C-h C-h b during Isearch to see a list of all of the Isearch key bindings (where you can find M-e).



              If you use Isearch+ then just C-h shows you detailed help, including bindings such as M-e.



              If you use library help-fns+.el then C-h M-k isearch-mode-map shows you all keys bound on that keymap, in human-readable form.



            3. With Isearch+ you can also interrupt Isearch completely, do some editing or whatever, and then resume where you left off. To do that, use C-x o (isearchp-open-recursive-edit). Resume searching with exit-recursive-edit (bound to C-M-c).







            share|improve this answer



























              up vote
              2
              down vote



              accepted












              1. During Isearch M-e is bound to isearch-edit-string. It pauses Isearch and puts the current search string in the minibuffer so you can edit it. Just use C-s again to resume searching from the current position but with the new search string.



                (I know it looks like your search string is already always in the minibuffer during Isearch, but it is not. I you use some kind of indicator of minibuffer depth then you can see the difference. For example, I use a standalone minibuffer frame, and its background changes when the minibuffer is active. And it changes to a different hue for each recursive edit (minibuffer depth). And it changes to yet another hue for Isearch.)




              2. You can use C-h C-h b during Isearch to see a list of all of the Isearch key bindings (where you can find M-e).



                If you use Isearch+ then just C-h shows you detailed help, including bindings such as M-e.



                If you use library help-fns+.el then C-h M-k isearch-mode-map shows you all keys bound on that keymap, in human-readable form.



              3. With Isearch+ you can also interrupt Isearch completely, do some editing or whatever, and then resume where you left off. To do that, use C-x o (isearchp-open-recursive-edit). Resume searching with exit-recursive-edit (bound to C-M-c).







              share|improve this answer

























                up vote
                2
                down vote



                accepted







                up vote
                2
                down vote



                accepted








                1. During Isearch M-e is bound to isearch-edit-string. It pauses Isearch and puts the current search string in the minibuffer so you can edit it. Just use C-s again to resume searching from the current position but with the new search string.



                  (I know it looks like your search string is already always in the minibuffer during Isearch, but it is not. I you use some kind of indicator of minibuffer depth then you can see the difference. For example, I use a standalone minibuffer frame, and its background changes when the minibuffer is active. And it changes to a different hue for each recursive edit (minibuffer depth). And it changes to yet another hue for Isearch.)




                2. You can use C-h C-h b during Isearch to see a list of all of the Isearch key bindings (where you can find M-e).



                  If you use Isearch+ then just C-h shows you detailed help, including bindings such as M-e.



                  If you use library help-fns+.el then C-h M-k isearch-mode-map shows you all keys bound on that keymap, in human-readable form.



                3. With Isearch+ you can also interrupt Isearch completely, do some editing or whatever, and then resume where you left off. To do that, use C-x o (isearchp-open-recursive-edit). Resume searching with exit-recursive-edit (bound to C-M-c).







                share|improve this answer
















                1. During Isearch M-e is bound to isearch-edit-string. It pauses Isearch and puts the current search string in the minibuffer so you can edit it. Just use C-s again to resume searching from the current position but with the new search string.



                  (I know it looks like your search string is already always in the minibuffer during Isearch, but it is not. I you use some kind of indicator of minibuffer depth then you can see the difference. For example, I use a standalone minibuffer frame, and its background changes when the minibuffer is active. And it changes to a different hue for each recursive edit (minibuffer depth). And it changes to yet another hue for Isearch.)




                2. You can use C-h C-h b during Isearch to see a list of all of the Isearch key bindings (where you can find M-e).



                  If you use Isearch+ then just C-h shows you detailed help, including bindings such as M-e.



                  If you use library help-fns+.el then C-h M-k isearch-mode-map shows you all keys bound on that keymap, in human-readable form.



                3. With Isearch+ you can also interrupt Isearch completely, do some editing or whatever, and then resume where you left off. To do that, use C-x o (isearchp-open-recursive-edit). Resume searching with exit-recursive-edit (bound to C-M-c).








                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited 3 hours ago

























                answered 3 hours ago









                Drew

                46.3k461103




                46.3k461103






















                    Alex is a new contributor. Be nice, and check out our Code of Conduct.










                     

                    draft saved


                    draft discarded


















                    Alex is a new contributor. Be nice, and check out our Code of Conduct.













                    Alex is a new contributor. Be nice, and check out our Code of Conduct.












                    Alex is a new contributor. Be nice, and check out our Code of Conduct.















                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2femacs.stackexchange.com%2fquestions%2f46179%2fedit-search-string-and-begin-search-from-current-location%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    404 Error Contact Form 7 ajax form submitting

                    How to know if a Active Directory user can login interactively

                    TypeError: fit_transform() missing 1 required positional argument: 'X'