emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* searching for links [8.3.3 (8.3.3-17-gce80a0-elpaplus @ c:/USR/FJM/APP/.emacs.d/elpa/org-20160118/)]
@ 2016-01-28 21:50 Francis J. Monari, Esquire
  2016-01-28 22:45 ` Kyle Meyer
  2016-02-01 21:07 ` Nick Dokos
  0 siblings, 2 replies; 4+ messages in thread
From: Francis J. Monari, Esquire @ 2016-01-28 21:50 UTC (permalink / raw)
  To: emacs-orgmode

To: emacs-orgmode@gnu.org
Subject: searching for links [8.3.3 (8.3.3-17-gce80a0-elpaplus @
c:/USR/FJM/APP/.emacs.d/elpa/org-20160118/)]
From: monarifjmk@verizon.net (F. J. Monari)
--text follows this line--

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

     http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.
------------------------------------------------------------------------

Due to file relocation on the server, I have a number of broken links in
an org document.  (problem: broken links.)

How can I / Is it possible to search and replace on links?
(expectation: I would like to use search and replace to fix the links.)

I have tried search and replace, but emacs advises me that links have
been filtered out.  (issue: emacs reports that results from the search
are filtered-out.)

The answer might be a "works as expected".  I would like to remain
within the org framework (but using standard search and replace) and
accomplish this task.

(I thought about forcing the files into a different mode, but I do not
want to risk the org file structure.)

Emacs  : GNU Emacs 24.5.1 (i686-pc-mingw32)
 of 2015-04-11 on LEG570
Package: Org-mode version 8.3.3 (8.3.3-17-gce80a0-elpaplus @
c:/USR/FJM/APP/.emacs.d/elpa/org-20160118/)

-- 
Francis J. Monari, Esquire
McKernan, McKernan & Godino
113 North Sixth Street
Camden, New Jersey 08102-1269
856-964-7759 ext. 19 (voice)
856-964-9620 (fax)
francismonari@mckernangodino.com ("main", "primary")
office@mckernangodino.com ("office")

ATTENTION: This e-mail and the materials accompanying it convey and
contain privileged and confidential information belonging to the sender
which is legally privileged.  The transmittal sheet, the materials, and
the information they contain are intended only for the use of the
individual(s) or entity(ies) named above.  If you are not the intended
recipient, you are hereby notified that any disclosure, copying,
distribution, or any reliance on the e-mail, the materials accompanying
it, or the information they contain is strictly prohibited, and that
review by any individual other than the intended recipient shall not
constitute waiver of the attorney/client privilege.  If you have
received the materials in error, please immediately notify us by
telephone at 856-964-7759 or by reply email.  We will arrange for the
return of the materials to us.  Please delete the copy of this message
on your server.  Very few methods of communication are 100% secure,
please exercise appropriate care when using or replying to this
message.  Thank you.

I.R.S. CIRCULAR 230 NOTICE: To comply with requirements imposed by the
Internal Revenue Service (I.R.S.) please be informed that the advice
contained in this communication was not intended or written to be used
and cannot be used for the purpose of avoiding penalties that may be
imposed by the I.R.S..

McKernan, McKernan & Godino does not attempt to sweep e-mail and
attachments for viruses.  It does not guarantee that either are
virus-free and accepts no liability or any damage sustained as a result
of viruses.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: searching for links [8.3.3 (8.3.3-17-gce80a0-elpaplus @ c:/USR/FJM/APP/.emacs.d/elpa/org-20160118/)]
  2016-01-28 21:50 searching for links [8.3.3 (8.3.3-17-gce80a0-elpaplus @ c:/USR/FJM/APP/.emacs.d/elpa/org-20160118/)] Francis J. Monari, Esquire
@ 2016-01-28 22:45 ` Kyle Meyer
  2016-02-01 19:43   ` Francis J. Monari, Esquire
  2016-02-01 21:07 ` Nick Dokos
  1 sibling, 1 reply; 4+ messages in thread
From: Kyle Meyer @ 2016-01-28 22:45 UTC (permalink / raw)
  To: Francis J. Monari, Esquire; +Cc: emacs-orgmode

Hello,

"Francis J. Monari, Esquire" <monarifj.esq@juno.com> writes:

[...]

> Due to file relocation on the server, I have a number of broken links in
> an org document.  (problem: broken links.)
>
> How can I / Is it possible to search and replace on links?
> (expectation: I would like to use search and replace to fix the links.)
>
> I have tried search and replace, but emacs advises me that links have
> been filtered out.  (issue: emacs reports that results from the search
> are filtered-out.)

isearch filters these out by default.  To avoid this, you can set
search-invisible to t, but then you don't see what you're replacing.

Another option is to toggle literal link display with
org-toggle-link-display, and then run the search and replace as usual.

> The answer might be a "works as expected".  I would like to remain
> within the org framework (but using standard search and replace) and
> accomplish this task.
>
> (I thought about forcing the files into a different mode, but I do not
> want to risk the org file structure.)

I don't really see any danger in that because it's just plain text and
it's querying you about what to replace, so I think that's fine too for
a one-off search and replace.

--
Kyle

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: searching for links [8.3.3 (8.3.3-17-gce80a0-elpaplus @ c:/USR/FJM/APP/.emacs.d/elpa/org-20160118/)]
  2016-01-28 22:45 ` Kyle Meyer
@ 2016-02-01 19:43   ` Francis J. Monari, Esquire
  0 siblings, 0 replies; 4+ messages in thread
From: Francis J. Monari, Esquire @ 2016-02-01 19:43 UTC (permalink / raw)
  To: Kyle Meyer; +Cc: emacs-orgmode

Kyle,

Thank you.

I also noted that reveal-mode works as well.

I am thinking that maybe I want to write a sentence or two for the manual.

Thank you again.

Frank.


Francis J. Monari, Esquire
McKernan, McKernan & Godino
113 North Sixth Street
Camden, New Jersey 08102-1269
856-964-7759 ext. 19 (voice)
856-964-9620 (fax)
francismonari@mckernangodino.com ("main", "primary")
office@mckernangodino.com ("office")

ATTENTION: This e-mail and the materials accompanying it convey and
contain privileged and confidential information belonging to the sender
which is legally privileged.  The transmittal sheet, the materials, and
the information they contain are intended only for the use of the
individual(s) or entity(ies) named above.  If you are not the intended
recipient, you are hereby notified that any disclosure, copying,
distribution, or any reliance on the e-mail, the materials accompanying
it, or the information they contain is strictly prohibited, and that
review by any individual other than the intended recipient shall not
constitute waiver of the attorney/client privilege.  If you have
received the materials in error, please immediately notify us by
telephone at 856-964-7759 or by reply email.  We will arrange for the
return of the materials to us.  Please delete the copy of this message
on your server.  Very few methods of communication are 100% secure,
please exercise appropriate care when using or replying to this
message.  Thank you.

I.R.S. CIRCULAR 230 NOTICE: To comply with requirements imposed by the
Internal Revenue Service (I.R.S.) please be informed that the advice
contained in this communication was not intended or written to be used
and cannot be used for the purpose of avoiding penalties that may be
imposed by the I.R.S..

McKernan, McKernan & Godino does not attempt to sweep e-mail and
attachments for viruses.  It does not guarantee that either are
virus-free and accepts no liability or any damage sustained as a result
of viruses.

On 1/28/2016 5:45 PM, Kyle Meyer wrote:
> Hello,
> 
> "Francis J. Monari, Esquire" <monarifj.esq@juno.com> writes:
> 
> [...]
> 
>> Due to file relocation on the server, I have a number of broken links in
>> an org document.  (problem: broken links.)
>>
>> How can I / Is it possible to search and replace on links?
>> (expectation: I would like to use search and replace to fix the links.)
>>
>> I have tried search and replace, but emacs advises me that links have
>> been filtered out.  (issue: emacs reports that results from the search
>> are filtered-out.)
> 
> isearch filters these out by default.  To avoid this, you can set
> search-invisible to t, but then you don't see what you're replacing.
> 
> Another option is to toggle literal link display with
> org-toggle-link-display, and then run the search and replace as usual.
> 
>> The answer might be a "works as expected".  I would like to remain
>> within the org framework (but using standard search and replace) and
>> accomplish this task.
>>
>> (I thought about forcing the files into a different mode, but I do not
>> want to risk the org file structure.)
> 
> I don't really see any danger in that because it's just plain text and
> it's querying you about what to replace, so I think that's fine too for
> a one-off search and replace.
> 
> --
> Kyle
> ____________________________________________________________
> Citi Simplicity® Card
> http://thirdpartyoffers.juno.com/TGL3165/56ab7d2b99e6a7d1c671cmp04duc
> 
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: searching for links [8.3.3 (8.3.3-17-gce80a0-elpaplus @ c:/USR/FJM/APP/.emacs.d/elpa/org-20160118/)]
  2016-01-28 21:50 searching for links [8.3.3 (8.3.3-17-gce80a0-elpaplus @ c:/USR/FJM/APP/.emacs.d/elpa/org-20160118/)] Francis J. Monari, Esquire
  2016-01-28 22:45 ` Kyle Meyer
@ 2016-02-01 21:07 ` Nick Dokos
  1 sibling, 0 replies; 4+ messages in thread
From: Nick Dokos @ 2016-02-01 21:07 UTC (permalink / raw)
  To: emacs-orgmode

"Francis J. Monari, Esquire" <monarifj.esq@juno.com> writes:

> Due to file relocation on the server, I have a number of broken links in
> an org document.  (problem: broken links.)
>
> How can I / Is it possible to search and replace on links?
> (expectation: I would like to use search and replace to fix the links.)
>
> I have tried search and replace, but emacs advises me that links have
> been filtered out.  (issue: emacs reports that results from the search
> are filtered-out.)
>
> The answer might be a "works as expected".  I would like to remain
> within the org framework (but using standard search and replace) and
> accomplish this task.
>

Nevertheless, one-time global changes, like this, are best handled by
using tools other than an interactive editor. One of the strengths of
org-mode is that org files are plain-text and can therefore be
manipulated by many tools: I would suggest a simple sed script (sed is
available even on Windows through cygwin I think) - something like this

 sed 's/old/new/g' infile > outfile

It is even more advantageous if you have more than one file to change.
Emacs has mechanisms for doing something to many files, but none of them
beats a simple shell loop:

for x in file1 file2 file3 ;do
   sed 's/old/new/g' $x > $x.new
done

--
Nick

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-02-01 21:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-28 21:50 searching for links [8.3.3 (8.3.3-17-gce80a0-elpaplus @ c:/USR/FJM/APP/.emacs.d/elpa/org-20160118/)] Francis J. Monari, Esquire
2016-01-28 22:45 ` Kyle Meyer
2016-02-01 19:43   ` Francis J. Monari, Esquire
2016-02-01 21:07 ` Nick Dokos

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).